Dec 17, 2010

ProgressBar: progressBarStyleHorizontal

ProgressBar: progressBarStyleHorizontal


main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    />
<ProgressBar
    android:id="@+id/progressbar" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    style="?android:attr/progressBarStyleHorizontal"
    android:max="100"
    android:progress="50"
    />
</LinearLayout>


Related:


No comments:

Post a Comment

Infolinks In Text Ads