corochann / androidtvapptutorial Goto Github PK
View Code? Open in Web Editor NEWHands on tutorial for coding Android TV app from scratch
Hands on tutorial for coding Android TV app from scratch
Your leanback tutorial is very meaningful and has been very helpful to me. But there are some problems on your blog now, could you please fix it?
Thank you for your work! Your samples and explanations from the blog are very useful for those learning or working with Leanback.
I was wondering if you have any idea why the following situation appears and possibly a fix for it?
The scroll doesn’t follow the current focused item inside a CustomListRow if it is in a different row, but only scrolls when an item in a different CustomListRow gets focused (or maybe the trigger is that a different CustomListRow is selected).
Here is a gif with the described behaviour:
I tried adding an ItemAllignmentFacet but didn’t accomplished much, so any idea/ piece of code is welcomed.
Hi,
thanks for your nice example repo. I want to know - why you have a method prepareData()
in your VideoItemLoader, and never call it. You described it in your blog post: http://corochann.com/background-data-loading-android-tv-application-hands-on-tutorial-15-535.html#comment-1919.
However, in your code, you are actually calling VideoProvider.buildMedia()
. Please advise.
Igor
After updating support libs from 23.4.0 to 24.0.0 left sidebar in BrowseFragment
stopped worked. In Google sample - androidtv-Leanback they fixed it by adding below two lines of code. Yea, I'm a little too lazy to create pull request so - can you add this to lines to IconHeaderItemPresenter:34? 😉
@Override
public ViewHolder onCreateViewHolder(ViewGroup viewGroup) {
...
view.setFocusable(true);
view.setAlpha(unselectedAlpha); // Initialize icons to be at half-opacity.
return new ViewHolder(view);
}
Please move all local properties to file that's added to .gitignore
or ENV variables.
: gradle assembleDebug
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'AndroidTVappTutorial'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.5.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:1.5.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.5.0/gradle-1.5.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.5.0/gradle-1.5.0.pom'.
> Connect to 43.74.40.42:10080 [/43.74.40.42] failed: connect timed out
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
How could i define Textview by using custom style of guidedstepFragment
and for textviews how could i set the custom font styles and in custom style guidedstepfragment in the right side how could i define any edittext property and how could i get that edittext value entered by the user
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.