开发者

What is the Android widget type used in e.g. the Settings menu?

开发者 https://www.devze.com 2023-01-05 08:47 出处:网络
The Android settings menu is a list o开发者_Python百科f options, each with some subtext (in the vanilla Google implementation; not in Sense UI) and an image (a down arrow in vanilla, custom icons in S

The Android settings menu is a list o开发者_Python百科f options, each with some subtext (in the vanilla Google implementation; not in Sense UI) and an image (a down arrow in vanilla, custom icons in Sense UI). They are selectable and open a sub menu (Activity?) when clicked, like a button.

What is this widget? Is it available in the android.widget package somewhere? Is there a way to simulate it?


The good thing about Android is that it is Open Source, i.e. you can get the source code and find the answers to questions like this one. You don't even need to install Git and download the entire code base - it is all conveniently available and searchable online.

Start here.

(I think it is a ListView with custom rows)


This is what you are looking for, Preference and PreferenceActivity.

0

精彩评论

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

关注公众号