You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
4.0 KiB
99 lines
4.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#ffffff"
|
|
tools:context="practice.csy.com.customprogress.MainActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="20dp"
|
|
android:text="蛋白质"
|
|
android:textColor="#36513e"
|
|
android:layout_marginTop="20dp"
|
|
></TextView>
|
|
<practice.csy.com.customprogress.view.CustomHorizontalProgresNoNum
|
|
android:layout_marginTop="0dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:id="@+id/horizontalProgress01"
|
|
android:progress="0"
|
|
app:HorizontalProgresReachColor="#00ffaa"
|
|
app:HorizontalProgresUnReachColor="#cab0b0"
|
|
app:HorizontalProgresTextColor="#00ffaa"
|
|
android:layout_width="300dp"
|
|
android:layout_height="50dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="20dp"
|
|
android:text="糖分"
|
|
android:textColor="#36513e"
|
|
android:layout_marginTop="20dp"
|
|
></TextView>
|
|
<practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum
|
|
android:layout_marginTop="0dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:id="@+id/horizontalProgress1"
|
|
android:progress="0"
|
|
app:HorizontalProgresReachColor="#00ffaa"
|
|
app:HorizontalProgresUnReachColor="#cab0b0"
|
|
app:HorizontalProgresTextColor="#00ffaa"
|
|
android:layout_width="300dp"
|
|
android:layout_height="30dp">
|
|
</practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum>
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="20dp"
|
|
android:text="维生素"
|
|
android:textColor="#36513e"
|
|
android:layout_marginTop="20dp"
|
|
></TextView>
|
|
<practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:layout_marginTop="20dp"
|
|
android:id="@+id/horizontalProgress2"
|
|
android:progress="0"
|
|
android:background="#ffffff"
|
|
app:HorizontalProgresReachColor="#00ffaa"
|
|
app:HorizontalProgresUnReachColor="#cab0b0"
|
|
app:HorizontalProgresTextColor="#00ffaa"
|
|
android:layout_width="300dp"
|
|
android:layout_height="30dp">
|
|
|
|
</practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum>
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="20dp"
|
|
android:text="其他"
|
|
android:textColor="#36513e"
|
|
android:layout_marginTop="20dp"
|
|
></TextView>
|
|
<practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:layout_marginTop="20dp"
|
|
android:id="@+id/horizontalProgress3"
|
|
android:progress="0"
|
|
app:HorizontalProgresReachColor="#00ffaa"
|
|
app:HorizontalProgresUnReachColor="#cab0b0"
|
|
app:HorizontalProgresUnReachHeight="10dp"
|
|
app:HorizontalProgresReachHeight="10dp"
|
|
app:HorizontalProgresTextColor="#00FEA9"
|
|
android:layout_width="300dp"
|
|
android:layout_height="30dp">
|
|
</practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|