开发者

Slide down menu with check boxes in android

开发者 https://www.devze.com 2023-02-21 07:25 出处:网络
I\'ve been looking around and searching all over the internet on how to do this. I am really baffled here because I don\'t think this is a built-in widget for the android API. What I am trying to buil

I've been looking around and searching all over the internet on how to do this. I am really baffled here because I don't think this is a built-in widget for the android API. What I am trying to build is a "list" of items that when an item is clicked, it shows a series of check boxes below it. An example on my EVO is the "News" application when you go to "Add 开发者_开发百科Feeds". I'll try and draw it out here:

BEFORE NEWS IS PRESSED:

News       >

AFTER NEWS IS PRESSED:

News       (arrow points down)
   CNN.com      (checkbox)
   Yahoo.com    (checkbox)

I'm sure this has to be custom made but I don't know where to start. Any help is appreciated.

Here are the links to the images:

Before:

Slide down menu with check boxes in android

After:

Slide down menu with check boxes in android


If I had to guess, that's just a ListView. Each rounded rectangle is a row in the ListView. When you click the arrow ImageButton, it makes a bunch of CheckedTextView widgets in a vertical LinearLayout visible.


http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html

Exactly what I need!

0

精彩评论

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