I'm trying to create a button with a fontawesome string as "icon" and normal text as label in Android
Currently i'm using this ( in dashboard.xml ):
<Button
android:id="@+id/ndc"
style="?android:attr/borderlessButtonStyle"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@android:color/transparent"
android:text="@string/icon_ndc"
android:textColor="#FFFFFF"
android:shadowColor="#000000"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="1"
/>
and this ( in strings.xml , it's a fontawesome icon)
<string name="icon_ndc"></string>
How can i add a label that must have different size , color etc?
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments