Android layout condition based

small problem on my code on Android use mysql

some integer value is stored to string , for example i got a integer value is 3, my particular layout is open three times. How is possible.