Browse Source

解决错误
Error: Expected resource of type raw [ResourceType

SpringBoots 8 years ago
parent
commit
048e190245

+ 4 - 4
materialdialogs/src/main/java/com/afollestad/materialdialogs/internal/MDButton.java

@@ -4,7 +4,7 @@ import android.annotation.TargetApi;
 import android.content.Context;
 import android.graphics.drawable.Drawable;
 import android.os.Build;
-import android.support.v7.internal.text.AllCapsTransformationMethod;
+
 import android.util.AttributeSet;
 import android.view.Gravity;
 import android.widget.TextView;
@@ -90,9 +90,9 @@ public class MDButton extends TextView {
         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
             setAllCaps(allCaps);
         } else {
-            if (allCaps)
-                setTransformationMethod(new AllCapsTransformationMethod(getContext()));
-            else
+//            if (allCaps)
+//                setTransformationMethod(new AllCapsTransformationMethod(getContext()));
+//            else
                 setTransformationMethod(null);
         }
     }