image - Android - How to display 4 text views with Icons? -


i want display 4 texts images showed in screenshot:

enter image description here

notice 4 texts @ buttom of image, icons next them.

my question how do it, mean, how attach icon each text field , display symmetrically @ bottom of page.

i want position texts icons example.

thanks help, it's great exercise newbie :)

dvir

use drawableleft this

<textview          android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:drawableleft="@drawable/icon_1"         android:gravity="center_vertical"         android:textstyle="bold"         android:textsize="24dip"         android:maxlines="1"        /> 

or

in java code

textview textview = (textview) findviewbyid(r.id.yourtv); textview.setcompounddrawableswithintrinsicbounds(r.drawable.icon_1, 0, 0, 0); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -