- Where Developers Learn, Share, & Build Careers
I'm totally new to Android, with so many people using ViewFLipper with Random.nextInt () Click to change the layouts (button) Now I have 3 XML layouts starting from 1_view.xml 2_view.xml 3_view.xml 1_view.xml I have a button when the button is clicked then I should get a random layout . It works. But the problem is now, sometimes I get the same layout (1_view.xml). When a user clicks on a button on (1_view.xml), I want to go to layout (2_view.xml and 3_view.xml). can u help me. Thank you. (Soory for my english) Codes Main.xml & LT; RelativeLayout Android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: orientation = "vertical-" Android: padding = "10 dp" & gt; & Lt; TextView android: id = "@ + id / TVLeft" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_centerVertical = "true" Android: layout_gravity = ...