开发者

How can i add some text (i.e. kind of "about" info) in Preferences in Android

开发者 https://www.devze.com 2023-01-31 10:01 出处:网络
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.

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.

I tried using Preference, i.e. custom preference, but i cannot see more than 1 line i开发者_C百科n the title and more than 2 lines in the summary.


You can't do a lot of customization to a preference widgets.

Two options:

1) SMSpopup approach. Opening a new window with the information. Check the About preference. Check the src code.

2) Softkeyboard approach. Using the normal preference but setting it disabled. Check the src code.

0

精彩评论

暂无评论...
验证码 换一张
取 消