当前位置: 代码迷 >> Android >> android Progress style (上进度条)
  详细解决方案

android Progress style (上进度条)

热度:52   发布时间:2016-05-01 20:06:32.0
android Progress style (长进度条)
android Progress style (长进度条):
progress_bgbar.xml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:id="@android:id/background" android:drawable="@drawable/bar_background">
</item>


<item android:id="@android:id/progress" android:drawable="@drawable/bar_progress">
</item>

</layer-list>

然后:
<ProgressBar android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleHorizontal" android:layout_width="750dp"
android:layout_height="wrap_content" android:layout_alignParentRight="true"
android:layout_alignParentTop="true"  android:layout_below="@+id/textView2"
android:layout_marginRight="30dp" android:layout_marginTop="30dp"
android:layout_toRightOf="@+id/header" android:minHeight="10dp"
android:progressDrawable="@drawable/progress_barbg" />
  相关解决方案