java - How to get standard Android 4.1 ProgressBar Layout? -
i wondering, why dont standard android 4.1 progressbar layout. in androidmanifest.xml define
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.wucop.quiz3" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="16" android:targetsdkversion="19" /> <application android:allowbackup="true" android:icon="@drawable/ic_icon" android:label="@string/app_name" android:theme="@android:style/theme.light.notitlebar" > ... </manifest>
and progressbar this
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/transparent_sq_white" > ... <progressbar android:id="@+id/pb_list_item_level" style="?android:attr/progressbarstylehorizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@+id/tv_list_item_level_title" android:layout_alignright="@+id/iv_list_item_go" android:layout_below="@+id/tv_list_item_level_title" android:max="100" /> </relativelayout>
but gettig android 2.3.3 layout (http://p07.imgup.net/screenshotafb3.png).
what doing wrong? help!
you have told android use pre-holo theme (theme.light.notitlebar
). if want use holographic widget theme, need use rooted in theme.holo
on api level 11+.
Comments
Post a Comment