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:

  1. create 1 relative layout (root)
  2. create 1 linear layout property width fill parent height wrap content , give wight 3
  3. place 3 buttons in linear layout 1 1 1weigth
  4. take 3 relative layouts every tab button make sure these 3 aligned above/below of button layout
  5. on click event of every button set vissibility of each relative layout full fill u r need

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -