简体   繁体   English

自定义浏览片段

[英]Customize Browse Fragment

I wish to customize Browse fragment via width that distinguishes header and child fragment in Browse Fragment. 我希望通过宽度自定义浏览片段,以区分浏览片段中的标题和子片段。 The default ratio of distinction is about 1:3 but I wish space took by header fragment to be reduced (eg in the ratio 1:4). 区分的默认比率约为1:3,但我希望标题片段占用的空间减少(例如,比例为1:4)。 After some research, I found padding and margins only for them modifying from styles.xml but which is not my requirement. 经过一些研究,我发现填充和边距仅适用于从styles.xml修改,但这不是我的要求。 What is the solution to achieve it? 实现它的解决方案是什么?

最终解决方案是在我自己的项目的dimens.xml中使用相同的资源名称覆盖leanback库的维度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在片段中自定义XML布局-Android - Customize a xml layout in a fragment - Android 自定义 XML 以设置 Fragment Kotlin - Customize XML for setting Fragment Kotlin 如何在浏览片段的导航行中添加背景图像? - How can I add a background image to navigation row in browse fragment? 无法自定义片段选项卡主机的选项卡 - Unable to customize the tabs of fragment tab host 如何在Fragment Activity中自定义标签小部件? - How to customize the tab-widget in Fragment Activity? 防止android电视行片段/浏览片段保存卡在列表行中的旧位置? - Prevent android tv rows fragment/Browse fragment from saving the old positions of cards in the list row? 自定义首选项活动-如何添加选项以浏览FS,选择文件/资源​​并保存参考 - Customize Preference Activity - How to add option to browse FS, select a file/resource and save the reference 如何只自定义片段中多列ListView的第一行? - How to customize just the first line of a multicolumn ListView in a fragment? 片段:按下后退按钮并自定义时调用的回调 - Fragment: which callback invoked when press back button & customize it 有没有一种简便的方法可以根据片段中的活动来自定义工具栏? - Is there an easy way to customize a toolbar from an activity from within a fragment?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM