Android AppCompat Theme

I am new to TV layout design. According to the link, the television application uses the system Leanbackfor the entire system and provides some widgets and class specially designed for television. But it Leanbackhas very limited capabilities.

I want to create a layout with TabLayoutthat provides AppCompact. For this, activity should use AppCompact theme, but in the Fragment I use BrowserFragmentto provide Leanback. Therefore, when I add AppCompactto the action, the fragment fails with a layout parameter problem.

Binary XML file line #21: Binary XML file line #21: You must supply a layout_width attribute.

Can't use both themes in a television application?

+4
source share

Source: https://habr.com/ru/post/1648136/


All Articles