Compare commits

..

5 Commits

@ -0,0 +1,2 @@
1111
222

@ -1,4 +1,4 @@
package com.sbw.atrue.Order.Activity;
package practice.csy.com.customprogress.view;
import android.content.Context;
import android.content.res.TypedArray;
@ -10,7 +10,8 @@ import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.ProgressBar;
import com.sbw.atrue.Order.R;
import practice.csy.com.customprogress.R;
/**
* Created by user on 2017-8-8.
*
@ -68,9 +69,6 @@ public class CustomHorizontalProgres extends ProgressBar{
HorizontalProgresTextSize = (int) typedArray.getDimension(R.styleable.CustomHorizontalProgresStyle_HorizontalProgresTextSize,sp2px(getContext(),DEAFUALT_PROGRESS_TEXT_SIZE));
HorizontalProgresTextOffset = (int) typedArray.getDimension(R.styleable.CustomHorizontalProgresStyle_HorizontalProgresTextOffset,DEAFUALT_PROGRESS_TEXT_OFFSET);
typedArray.recycle();//记得加这句
/*TypedArray a = context.obtainStyledAttributes(attrs,R.styleable.);
int textColor = a.getColor(R.styleable._, );
https://www.jianshu.com/p/8d388894d9e9*/
}
@Override
@ -196,4 +194,3 @@ public class CustomHorizontalProgres extends ProgressBar{
}

@ -1,4 +1,4 @@
package com.sbw.atrue.Order.Activity;
package practice.csy.com.customprogress.view;
import android.content.Context;
import android.content.res.TypedArray;
@ -10,9 +10,7 @@ import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.ProgressBar;
import com.sbw.atrue.Order.R;
//import practice.csy.com.customprogress.R;
import practice.csy.com.customprogress.R;
/**
* Created by user on 2017-8-8.
@ -206,4 +204,3 @@ public class CustomHorizontalProgresNoNum extends ProgressBar {
}

@ -1,4 +1,4 @@
package com.sbw.atrue.Order.Activity;
package practice.csy.com.customprogress.view;
import android.content.Context;
import android.content.res.TypedArray;
@ -9,9 +9,7 @@ import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.ProgressBar;
import com.sbw.atrue.Order.R;
//import practice.csy.com.customprogress.R;
import practice.csy.com.customprogress.R;
/**
* Created by user on 2017-8-8.
@ -197,4 +195,3 @@ public class CustomHorizontalProgresWithNum extends ProgressBar{
}

@ -0,0 +1,2 @@
# liyuxuan_gitProject

@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
tools:context="com.sbw.atrue.Order.Activity.horizonta_main">
tools:context="practice.csy.com.customprogress.MainActivity">
<LinearLayout
android:layout_width="wrap_content"
@ -19,7 +19,7 @@
android:textColor="#36513e"
android:layout_marginTop="20dp"
></TextView>
<com.sbw.atrue.Order.Activity.CustomHorizontalProgresWithNum
<practice.csy.com.customprogress.view.CustomHorizontalProgresNoNum
android:layout_marginTop="0dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
@ -38,7 +38,7 @@
android:textColor="#36513e"
android:layout_marginTop="20dp"
></TextView>
<com.sbw.atrue.Order.Activity.CustomHorizontalProgresWithNum
<practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum
android:layout_marginTop="0dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
@ -49,7 +49,7 @@
app:HorizontalProgresTextColor="#00ffaa"
android:layout_width="300dp"
android:layout_height="30dp">
</com.sbw.atrue.Order.Activity.CustomHorizontalProgresWithNum>
</practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum>
<TextView
android:layout_width="100dp"
@ -58,7 +58,7 @@
android:textColor="#36513e"
android:layout_marginTop="20dp"
></TextView>
<com.sbw.atrue.Order.Activity.CustomHorizontalProgresWithNum
<practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:layout_marginTop="20dp"
@ -71,7 +71,7 @@
android:layout_width="300dp"
android:layout_height="30dp">
</com.sbw.atrue.Order.Activity.CustomHorizontalProgresWithNum>
</practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum>
<TextView
android:layout_width="100dp"
android:layout_height="20dp"
@ -79,7 +79,7 @@
android:textColor="#36513e"
android:layout_marginTop="20dp"
></TextView>
<com.sbw.atrue.Order.Activity.CustomHorizontalProgresWithNum
<practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:layout_marginTop="20dp"
@ -92,7 +92,7 @@
app:HorizontalProgresTextColor="#00FEA9"
android:layout_width="300dp"
android:layout_height="30dp">
</com.sbw.atrue.Order.Activity.CustomHorizontalProgresWithNum>
</practice.csy.com.customprogress.view.CustomHorizontalProgresWithNum>
</LinearLayout>
</ScrollView>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

@ -1,2 +0,0 @@
#Fri Oct 21 23:04:16 GMT+08:00 2022
gradle.version=6.4.1

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save