What is the best way to draw a perfect layout that could adapts in every device without problems of density/resolution ?
I used buckets (layout-120dpi,layout-160dpi,layout-240dpi,layout-320dpi,layout-480dpi,layout-120dpi). It is correct? I will have problems? If yes what kind of problem and with such devices? Thanks in advance
layout example :
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="This is a title"
android:id="@+id/nick"
android:layout_gravity="center_horizontal"
android:textColor="#ff000000"
android:layout_marginTop="15dp"
android:textSize="25sp" />
<ImageView
android:layout_width="270dp"
android:layout_height="270dp"
android:id="@+id/photo"
android:background="#ffff0000"
android:layout_gravity="center_horizontal"
android:layout_marginTop="25dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="StackOverflowStackOverflowStackOverflowStackOverflowStackOverflowStackOverflowStackOverflowStackOverflow"
android:id="@+id/state"
android:textColor="#ff000000"
android:layout_marginRight="10dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="22dp" />