GithubHelp home page GithubHelp logo

leanbacktvsample's Issues

主页默认选中页面,tab未显示默认选中项

如图:
``
image

调试时发现:
View positionView = horizontalGridView.getChildAt(Constants.TAG_FEATURE_POSITION);获取到的positionView 为null;
不知道为什么会为null,有点奇怪,不知道作者有发现没有。
image

我是这么处理的,可以解决问题

  //延时一会儿,否则positionView获取为null
  postDelayed(new Runnable() {
      @Override
      public void run() {
          horizontalGridView.setSelectedPositionSmooth(Constants.TAG_FEATURE_POSITION);
          View positionView = horizontalGridView.getChildAt(Constants.TAG_FEATURE_POSITION);
          if (positionView != null) {
              activity.mOldTitle = positionView.findViewById(R.id.tv_main_title);
              positionView.requestFocus();
          }
      }
  }, 0);

非常棒的项目

我搜遍了全网,就想找个TabLayout的对于TV上的焦点处理的例子学习下,太感谢老哥了!

极米内推

极米科技有限公司招聘各种技术岗位,后台,应用,系统,还有硬件等等.
想投简历的小伙伴发给我,我直接内推,欢迎各位加入极米这个大家庭;
以下面的格式,发到我的邮箱([email protected])
姓名,手机,邮箱
推荐理由
简历

详细的职位列表

老哥问个问题

焦点一直往右或者往左移动,第一页和最后一页是抖动效果,中间页焦点移动到屏幕最右边怎么往下移动,移动到屏幕最左边是往上移动

标题设置滚动方式引发崩溃

标题HorizontalGridView设置setFocusScrollStrategy(HorizontalGridView.FOCUS_SCROLL_ITEM);后滚动会引发崩溃,不知是什么造成的?

在模拟器上运行不了

提示

Device supports x86 but APK only supports armeabi-v7a

然后我了 armeabi 架构的模拟器 也不行,然后 ndk 配置加了x86架构的,运行也不行

老哥问个问题

多视图模式如何指定选中项,setSelectedPosition对多布局不起作用

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.