android - How to Design image icon with text in row for supporting all devices -


how design suitable size of phones..need design thisenter image description here

thanks in advance

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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -