Return to Snippet

Revision: 37482
at December 10, 2010 15:14 by hmvrulz


Updated Code
<?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>

Revision: 37481
at December 10, 2010 15:13 by hmvrulz


Updated Code
<?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>


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”

Revision: 37480
at December 10, 2010 15:12 by hmvrulz


Initial Code
<?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>

Initial URL


Initial Description
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”

Initial Title
Android text View

Initial Tags
android

Initial Language
XML