leanback

Android Gradle Manifest merger failed

China☆狼群 提交于 2019-12-18 08:52:10
问题 I use the leanback library to develop for Android TV. My app declare the min API to 16 however the leanback as a minimum API of 16. So as the documentation says I declared this in my manifest : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.mypackage.package"> <uses-sdk tools:overrideLibrary="android.support.v17.leanback" /> However I still have the error : Error:(6, 5)

Android TV published app not visible in sony bravia android tv

跟風遠走 提交于 2019-12-12 22:31:17
问题 I have developed an app using Leanback Library . The app is working fine on Sony Android TV . But when I have published the app successfully on play store then when i am searching app on my Sony Android TV store it is showing No Results Found message. Here is Manifest of my TV app. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.test.app" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:maxSdkVersion=

AndroidTv and Smartphone in one app / Different launcher

*爱你&永不变心* 提交于 2019-12-11 14:44:33
问题 I am writing an application that will serve for tv and smartphone. For now I just want to differentiate the main screen depending on the device. I have placed fragments, and that are therefore arranged differently according to the device. But when I launch the application on TV, it is not tvActivity that is launched but the mainActivity Also, i have 2 launcher in the manifest, one <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />

The last element in the row BrowseFragment

醉酒当歌 提交于 2019-12-11 05:43:57
问题 I have a Fragment: public class FilmFragment extends BrowseFragment implements LoaderManager.LoaderCallbacks<Object> In BrowseFragment I add several rows with items: private void loadRubricsFilms(List<Rubric> mRubrics, List<Film> mFilms) { int j = 0; for (Rubric mRubric : mRubrics) { ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(mCardPresenter); for (Film mFilm : mFilms) { if (mFilm.getRubric() == mRubric.getId()) { listRowAdapter.add(mFilm); } } HeaderItem header = new

Adding ProgressBar to DetailsOverviewRow on Android TV

痴心易碎 提交于 2019-12-10 18:15:51
问题 I'm trying to create a slightly modified version of the android.support.v17.leanback.widget.DetailsOverviewRow for an Android TV app. The layout I'm trying to accomplish is roughly the same as Google's default version, but with the addition of a progress bar above the actions panel. What I have now looks like this: Current Version What I want to create is something roughly like this: Goal Version I would like to add this in dynamically without having to create an entirely new layout from

how to always show headers in RowsFragment

拟墨画扇 提交于 2019-12-09 16:41:24
问题 I'm trying to create an Android tv application similar to the Youtube application. and I am using the Sofa library to do that. Now the problem comes when I am trying to show the headers for individual items in the RowsFragment even when the RowsFragment doesn't have a focus. following is the code for loading the dataset into browseFragment private void loadRowsCustom() { adapter = new ArrayObjectAdapter(); int split = 3; int rowsFragmentCount = videoList.size() / split + (videoList.size() %

Leanback.DetailsFragment not scrolling as expected

这一生的挚爱 提交于 2019-12-08 16:37:58
问题 I have a details fragment that is using a DetailsOverviewRow and FullWidthDetailsOverviewRowPresenter. When the page first loads the action buttons are selected. When I press down once, focus leaves the buttons and nothing else happens. When I press down a second time focus moves to a ListRow that is further down the page. I'm trying to figure out why the overview, or body as it's called in the presenter, section doesn't focus. Should there not be a second 'state' between the two screenshots

Scrolling and focus with arrow keys

廉价感情. 提交于 2019-12-08 13:22:37
问题 I'm trying have a grid layout, that I can have on item foucsed, and I can navigate using the arrow keys (up/down and left/right). the idea is for a leanback expireance application (i.e. android tv, or a home media center), with no touch or mouse. I'm trying to reuse the FocusBehavior and CompoundSelectionBehavior for that I have something that is almost there, but I can't figure out how do I shift the selection to the next row, left/right keep on the first row that I've click with the mouse,

Leanback DetailFragment FullWidthDetailsOverviewRowPresenter customization

时光毁灭记忆、已成空白 提交于 2019-12-08 06:13:19
问题 I want to customize the FullWidthDetailsOverviewRowPresenter in the Leanback DetailFragment . Three things I want to accomplish are: Getting the Action s from top to below of the overview. Reducing the height of the overview so that it the related movies can be seen without scrolling down. The background image and the space it occupies at the top of the overview should be gone. The screen should start like the one above. The end result should be like this: I already know how to modify inside

Making ImageCardview in browse fragment totally transparent

老子叫甜甜 提交于 2019-12-07 23:43:02
问题 I want to make my cardview totally transparent in browse fragment .But the problem is this default shadow type effect is coming.I have tried everything but its not going away.Anyway it can be removed. CustomImageCardview cardView = new CustomImageCardview(mContext); cardView.setFocusable(true); cardView.setFocusableInTouchMode(true); cardView.setElevation(0); cardView.setBackgroundColor(ContextCompat.getColor(mContext , R.color.transperent_color)); cardView.invalidate(); Thanx 回答1: CardView