/ Published in: XML
To change your textview id android:id=”@+id/TextView”
To change your textview text android:text=”This is my first textview sample application”
To enable or disable textview android:enabled=”false”
To change your textview width & height android:layoutheight=”wrapcontent” android:layoutwidth=”fillparent”
To change your textview background android:background=”@drawable/icon”
To change your textview text size android:textSize=”16px”
To change your textview text style android:textStyle=”bold”
Expand |
Embed | Plain Text
<?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <TextView android:text="This is my first textview sample application" android:id="@+id/TextView" android:layout_height="wrap_content" android:layout_width="fill_parent" android:background="@drawable/icon" android:textSize="16px" android:textStyle="bold"> </TextView> </LinearLayout>
You need to login to post a comment.
