@@ -112,7 +112,7 @@ public class SmartMaterialSpinner<T> extends AppCompatSpinner implements Adapter
112
112
private int errorLabelPosX ;
113
113
private int minNbErrorLine ;
114
114
private float currentNbErrorLines ;
115
- private ErrorTextAlignment errorTextAlignment = ErrorTextAlignment .ALIGN_LEFT ;
115
+ private TextAlignment errorTextAlignment = TextAlignment .ALIGN_LEFT ;
116
116
117
117
118
118
//Properties about Floating Label (
@@ -988,8 +988,8 @@ public void setErrorTextColor(int errorTextColor) {
988
988
invalidate ();
989
989
}
990
990
991
- private Layout .Alignment getErrorTextLayoutAlignment (ErrorTextAlignment errorTextAlignment ) {
992
- switch (errorTextAlignment ) {
991
+ private Layout .Alignment getErrorTextLayoutAlignment (TextAlignment textAlignment ) {
992
+ switch (textAlignment ) {
993
993
case ALIGN_LEFT :
994
994
return Layout .Alignment .ALIGN_NORMAL ;
995
995
case ALIGN_CENTER :
@@ -1001,24 +1001,24 @@ private Layout.Alignment getErrorTextLayoutAlignment(ErrorTextAlignment errorTex
1001
1001
}
1002
1002
}
1003
1003
1004
- private ErrorTextAlignment getErrorTextAlignment (int attrNum ) {
1004
+ private TextAlignment getErrorTextAlignment (int attrNum ) {
1005
1005
switch (attrNum ) {
1006
1006
case 0 :
1007
- return ErrorTextAlignment .ALIGN_LEFT ;
1007
+ return TextAlignment .ALIGN_LEFT ;
1008
1008
case 1 :
1009
- return ErrorTextAlignment .ALIGN_CENTER ;
1009
+ return TextAlignment .ALIGN_CENTER ;
1010
1010
case 2 :
1011
- return ErrorTextAlignment .ALIGN_RIGHT ;
1011
+ return TextAlignment .ALIGN_RIGHT ;
1012
1012
default :
1013
- return ErrorTextAlignment .ALIGN_LEFT ;
1013
+ return TextAlignment .ALIGN_LEFT ;
1014
1014
}
1015
1015
}
1016
1016
1017
- public ErrorTextAlignment getErrorTextAlignment () {
1017
+ public TextAlignment getErrorTextAlignment () {
1018
1018
return errorTextAlignment ;
1019
1019
}
1020
1020
1021
- public void setErrorTextAlignment (ErrorTextAlignment errorTextAlignment ) {
1021
+ public void setErrorTextAlignment (TextAlignment errorTextAlignment ) {
1022
1022
this .errorTextAlignment = errorTextAlignment ;
1023
1023
invalidate ();
1024
1024
}
@@ -1696,7 +1696,7 @@ public interface OnSpinnerEventListener {
1696
1696
void onSpinnerClosed (SmartMaterialSpinner spinner );
1697
1697
}
1698
1698
1699
- public enum ErrorTextAlignment {
1699
+ public enum TextAlignment {
1700
1700
ALIGN_LEFT ,
1701
1701
ALIGN_CENTER ,
1702
1702
ALIGN_RIGHT ,
0 commit comments