android - How to Design image icon with text in row for supporting all devices -
if wrap image inside linear layout , have different resolutions of image in drawable's folder, based on device wrap image , height
<linearlayout ... android:orientation="horizontal" android:layout_height="wrap_content" android:weightsum="4" ...> //for 1 image each image have 1 linearlayout <linearlayout ... android:orientation="vertical" android:layout_height="match_parent" android:weightsum="4" android:layout_weight="1" ... > <imageview> ... android:layout_height="0dp" android:layout_weight="3" ... </imageview> <textview> ... android:layout_height="0dp" android:layout_weight="1" ... </textview> </linearlayout> </linearlayout>
Comments
Post a Comment