Android 偏好屏幕,仅全屏?
我在 android 中有一个功能齐全的首选项屏幕,设置为横向。 我想做的是让它只水平占据屏幕的一半。
有什么想法如何去做吗?我的代码片段如下:
addPreferencesFromResource(R.xml.preferences);
xml:
<PreferenceCategory
android:title="User Preferences">
<ListPreference
android:name="BallDisplayPreference"
android:key="BallPref"
android:summary="Show numbers or notes on balls"
android:title="Balls"
android:defaultValue="Fret"
android:entries="@array/listArray"
android:entryValues="@array/listValues" />
</PreferenceCategory>
谢谢大家,
Ben
I have a fully functioning Preferences screen in android set to landscape.
What I would like to do is have it only take up half the screen horizontally.
Any ideas how to do it? my code snippets are below:
addPreferencesFromResource(R.xml.preferences);
xml:
<PreferenceCategory
android:title="User Preferences">
<ListPreference
android:name="BallDisplayPreference"
android:key="BallPref"
android:summary="Show numbers or notes on balls"
android:title="Balls"
android:defaultValue="Fret"
android:entries="@array/listArray"
android:entryValues="@array/listValues" />
</PreferenceCategory>
Thanks guys,
Ben
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
怎么样使用正常的 Activity,将 PreferenceFragment 占一半,然后另一半有你喜欢的吗?
What about using a normal activity, with a PreferenceFragment in one half, and in the other half anything you like?