Skip to content

Commit

Permalink
Switched to AppCompatEditText stuff that come from the support librar…
Browse files Browse the repository at this point in the history
…y v22.1.

This introduces the latest optimization in support lib v22.1.
  • Loading branch information
rengwuxian committed Apr 27, 2015
1 parent eeec1ef commit 00e1a4c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android {
dependencies {
compile 'com.android.support:support-annotations:22.0.0'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:appcompat-v7:22.1.0'
}

// Used to push in maven
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatAutoCompleteTextView;
import android.text.Editable;
import android.text.Layout;
import android.text.StaticLayout;
Expand All @@ -28,7 +29,6 @@
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.widget.AutoCompleteTextView;
import android.content.res.ColorStateList;

import com.nineoldandroids.animation.ArgbEvaluator;
Expand All @@ -46,7 +46,7 @@
* author:rengwuxian
* <p/>
*/
public class MaterialAutoCompleteTextView extends AutoCompleteTextView {
public class MaterialAutoCompleteTextView extends AppCompatAutoCompleteTextView {

@IntDef({FLOATING_LABEL_NONE, FLOATING_LABEL_NORMAL, FLOATING_LABEL_HIGHLIGHT})
public @interface FloatingLabelType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatEditText;
import android.text.Editable;
import android.text.Layout;
import android.text.StaticLayout;
Expand Down Expand Up @@ -46,7 +47,7 @@
* author:rengwuxian
* <p/>
*/
public class MaterialEditText extends EditText {
public class MaterialEditText extends AppCompatEditText {

@IntDef({FLOATING_LABEL_NONE, FLOATING_LABEL_NORMAL, FLOATING_LABEL_HIGHLIGHT})
public @interface FloatingLabelType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatMultiAutoCompleteTextView;
import android.text.Editable;
import android.text.Layout;
import android.text.StaticLayout;
Expand All @@ -29,7 +30,6 @@
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.widget.MultiAutoCompleteTextView;

import com.nineoldandroids.animation.ArgbEvaluator;
import com.nineoldandroids.animation.ObjectAnimator;
Expand All @@ -43,7 +43,7 @@
/**
* Created by rengwuxian on 2015/1/8.
*/
public class MaterialMultiAutoCompleteTextView extends MultiAutoCompleteTextView {
public class MaterialMultiAutoCompleteTextView extends AppCompatMultiAutoCompleteTextView {

@IntDef({FLOATING_LABEL_NONE, FLOATING_LABEL_NORMAL, FLOATING_LABEL_HIGHLIGHT})
public @interface FloatingLabelType {
Expand Down

0 comments on commit 00e1a4c

Please sign in to comment.