android - create a linear layout of overlapping imageviews -


i need create stack of overlapping imageviews in android spider solitaire in windows. also, need able dynamically add more imageviews. please suggest methods so. can use linearlayout (its not necessary. whatever works fine)? if so, how accomplish overlap?

note: imageviews have same amount of overlap, no need worry unopened cards in give screenshot.

solitaire

thank you

user layerlist

a layerdrawable drawable object manages array of other drawables.  each drawable in list drawn in order of list—the last drawable in list drawn on top.  <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">     <item>       <bitmap android:src="@drawable/android_red"         android:gravity="center" />     </item>     <item android:top="10dp" >       <bitmap android:src="@drawable/android_green"         android:gravity="center" />     </item>     <item android:top="20dp" >       <bitmap android:src="@drawable/android_blue"         android:gravity="center" />     </item> </layer-list> 

note : below images uses item attributes android:left="10dp", android:left="20dp".

enter image description here


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -