File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
java/com/hookedonplay/decoviewlib Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ public DecoView(Context context, AttributeSet attrs) {
101101
102102 int rotateAngle = 0 ;
103103 try {
104- mDefaultLineWidth = a .getDimension (R .styleable .DecoView_lineWidth , 30f );
105- rotateAngle = a .getInt (R .styleable .DecoView_rotateAngle , 0 );
106- mTotalAngle = a .getInt (R .styleable .DecoView_totalAngle , 360 );
107- mVertGravity = VertGravity .values ()[a .getInt (R .styleable .DecoView_arc_gravity_vertical , VertGravity .GRAVITY_VERTICAL_CENTER .ordinal ())];
108- mHorizGravity = HorizGravity .values ()[a .getInt (R .styleable .DecoView_arc_gravity_horizontal , HorizGravity .GRAVITY_HORIZONTAL_CENTER .ordinal ())];
104+ mDefaultLineWidth = a .getDimension (R .styleable .DecoView_dv_lineWidth , 30f );
105+ rotateAngle = a .getInt (R .styleable .DecoView_dv_rotateAngle , 0 );
106+ mTotalAngle = a .getInt (R .styleable .DecoView_dv_totalAngle , 360 );
107+ mVertGravity = VertGravity .values ()[a .getInt (R .styleable .DecoView_dv_arc_gravity_vertical , VertGravity .GRAVITY_VERTICAL_CENTER .ordinal ())];
108+ mHorizGravity = HorizGravity .values ()[a .getInt (R .styleable .DecoView_dv_arc_gravity_horizontal , HorizGravity .GRAVITY_HORIZONTAL_CENTER .ordinal ())];
109109 } finally {
110110 a .recycle ();
111111 }
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<resources >
33 <declare-styleable name =" DecoView" >
4- <attr name =" lineWidth " format =" dimension" />
5- <attr name =" rotateAngle " format =" integer" />
6- <attr name =" totalAngle " format =" integer" />
7- <attr name =" arc_gravity_horizontal " format =" enum" >
4+ <attr name =" dv_lineWidth " format =" dimension" />
5+ <attr name =" dv_rotateAngle " format =" integer" />
6+ <attr name =" dv_totalAngle " format =" integer" />
7+ <attr name =" dv_arc_gravity_horizontal " format =" enum" >
88 <enum name =" Left" value =" 0" />
99 <enum name =" Center" value =" 1" />
1010 <enum name =" Right" value =" 2" />
1111 <enum name =" Fill" value =" 3" />
1212 </attr >
13- <attr name =" arc_gravity_vertical " format =" enum" >
13+ <attr name =" dv_arc_gravity_vertical " format =" enum" >
1414 <enum name =" Top" value =" 0" />
1515 <enum name =" Center" value =" 1" />
1616 <enum name =" Bottom" value =" 2" />
You can’t perform that action at this time.
0 commit comments