Commit 2bc957be authored by Geoffrey Métais's avatar Geoffrey Métais

Styling TV UI

parent f4678e71
......@@ -173,11 +173,16 @@
</style>
<style name="Theme.VLC.TV" parent="Theme.Leanback">
<item name="imageCardViewStyle">@style/VLCardView</item>
<item name="imageCardViewTitleStyle">@style/VLCardViewTitleStyle</item>
</style>
<style name="VLCardView" parent="Widget.Leanback.ImageCardViewStyle">
<item name="cardType">infoUnderWithExtra</item>
<item name="infoVisibility">always</item>
</style>
<style name="VLCardViewTitleStyle" parent="Widget.Leanback.ImageCardView.TitleStyle">
<item name="android:maxLines">2</item>
<item name="android:ellipsize">middle</item>
</style>
<style name="Theme.VLC.Leanback.Preferences" parent="Theme.Leanback">
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
......
......@@ -150,6 +150,8 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
}
mRootContainer = mBrowseFragment.getView();
mRootContainer.setBackgroundColor(ContextCompat.getColor(this, R.color.grey850));
mBrowseFragment.setBrandColor(ContextCompat.getColor(this, R.color.orange800));
}
@Override
......@@ -200,7 +202,6 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
if (mService != null)
mService.addCallback(this);
mMediaLibrary.setMediaUpdatedCb(this, Medialibrary.FLAG_MEDIA_UPDATED_VIDEO);
mBrowseFragment.setBrandColor(getResources().getColor(R.color.orange800));
}
protected void onPause() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment