Those are my problems Android dynamic layout only shows after oncreate method finishes
Android how to change fragments in for loop with thread
I want to make a game. there are imageviews, user drags and if dragged images are same, it must show another imageviews. I put those operations (retrieving images, dynmaically putting inside layout) inside for loop. In each iteration, the number of images can change.
but, it waits until oncreate ends to show new layout. only shows last iteration layout.
I put a variable to ondrag method, ondragend. If true dragged, it becomes 0 so in for loop, my for loop waits until that variable becomes 0 but as i said before, it changes layout after oncreate finishes.
asynctask can not be good for this i think. or fragments or viewgroups.
Please help.
Dynamically adding an Android layout using for loop
I looked all questions about dynamically change layouts but did not work.
i will put also voice commands inside for loop to give information but i cant even change layout :(
