简体   繁体   English

我如何在Android的“偏好设置”中添加一些文本(即某种“关于”信息)

[英]How can i add some text (i.e. kind of “about” info) in Preferences in Android

I'd like to add a short text (2-3 sentences) to my preferences screen (which is created using xml with PreferenceScreen, etc), in order to provide some kind of short help/description for the user. 我想在我的首选项屏幕(使用xml和PreferenceScreen等创建的)中添加一个简短的文本(2-3个句子),以便为用户提供某种简短的帮助/说明。

I tried using Preference , ie custom preference, but i cannot see more than 1 line in the title and more than 2 lines in the summary. 我尝试使用Preference ,即自定义首选项,但标题中看不到1行以上,摘要中看不到2行以上。

You can't do a lot of customization to a preference widgets. 您无法对首选项小部件进行大量自定义。

Two options: 两种选择:

1) SMSpopup approach. 1)SMSpopup方法。 Opening a new window with the information. 用信息打开一个新窗口。 Check the About preference. 检查关于首选项。 Check the src code . 检查src代码

2) Softkeyboard approach. 2)软键盘方法。 Using the normal preference but setting it disabled. 使用普通首选项,但将其设置为禁用。 Check the src code . 检查src代码

暂无
暂无

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

相关问题 如何在较旧的 Android 设备(即 Gingerbread 和 Froyo)上显示首选项屏幕? - How can I show a preferences screen on older Android devices i.e. Gingerbread and Froyo? 如何使用HTTP POST通过Ajax下载文件(即正文中的一些信息)? - How to download file via Ajax with HTTP POST (i.e. some info in body)? 如何在Tomcat中保留主体信息(即setPrincipal?) - How to preserve principal info in Tomcat (i.e. setPrincipal?) 如何在Android中触发闹钟,即播放闹钟铃声? - How can I set off an alarm i.e. play an alarm tone in Android? 如何在Android中更改通知栏的背景颜色,即“元素颜色和文本颜色”? - How to change the background color i.e. “element color and text color” of notification bar in Android…? 如何解析此类文本? - How can I parse this kind of text? Android中是否可以使用某种#define来简化语句? - Is there some kind of #define in Android that I can use to simplify a statement? 如何确保我要使用的端口始终可用(即未使用)? - How can I make sure that the port I want to use is always available (i.e. not in use)? 使用MyBatis,如何在不编写配置文件的情况下(即以编程方式)构建SqlSessionFactory? - With MyBatis, how can I build an SqlSessionFactory without writing a configuration file (i.e. programmatically)? 如何等到 HttpServer 完成(即加入其后台线程)? - How can I wait until a HttpServer has finished (i.e. join its background thread)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM