android - Horizontal ProgressBar not showing right -


i created xml file containing horizontal progressbar, displays in image below:

progress bar image

here's xml:

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

what happening? how can fix it?

normally should horizontalprogress bar layout try

change style tag in progressbar widget this

style="?android:attr/progressbarstylehorizontal"   <progressbar     android:id="@+id/progress"     style="?android:attr/progressbarstylehorizontal"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:max="100"     android:progress="50" /> 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -