/ 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:layout_height=â€wrap_contentâ€
android:layout_width=â€fill_parentâ€
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â€
                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:layout_height=â€wrap_contentâ€
android:layout_width=â€fill_parentâ€
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
                            
                        
                        Copy this code and paste it in your HTML
 <?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>
Comments
                    Subscribe to comments
                
                