开发者

Android button suggestion

开发者 https://www.devze.com 2023-03-12 08:55 出处:网络
Can some one suggest me what type of button , or other type of view should I use in horizontal scroll view to on off buttons like this in fox application开发者_如何学编程.

Can some one suggest me what type of button , or other type of view should I use in horizontal scroll view to on off buttons like this in fox application开发者_如何学编程.

When user click on button, current button should be with pressed state, and others in normal state.

Android button suggestion

thanks


If the layout is like the above, a tabbed layout is the way to go

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

EDIT: sorry didn't realize you only wanted to refer to the lower part.

You could use radiobuttons and put them all in a radiogroup

http://developer.android.com/reference/android/widget/RadioButton.html


You can use a Gallery view to have the look like that. There are some bugs with gallery view where you can't recycle and reuse a view, but otherwise that will give the effect you are looking for.

0

精彩评论

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