How to create a Tab-like UI in Android? -
i'm trying implement tab-like ui inside activity. how want be.
there 3 button each associated linearlayout. when user clicks on button current visible layout fades out , 1 associated clicked button fades view.
how can done? specially how make fading effect?
better go tab widget if still want manually can follows:
- create 1 relative layout (root)
- create 1 linear layout property width fill parent height wrap content , give wight 3
- place 3 buttons in linear layout 1 1 1weigth
- take 3 relative layouts every tab button make sure these 3 aligned above/below of button layout
- on click event of every button set vissibility of each relative layout full fill u r need
Comments
Post a Comment