Skip to content

Commit

Permalink
Returning to the MaterialAutoCompleteTextView implementation for the …
Browse files Browse the repository at this point in the history
…time being.
  • Loading branch information
milos192 committed Dec 1, 2016
1 parent 895a670 commit 1a1f025
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ dependencies {
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile('com.rengwuxian.materialedittext:library:2.1.4') {
exclude module: 'appcompat-v7'
exclude module: 'support-annotations'
}
testCompile 'junit:junit:4.12'
}

Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/com/seraphim/chips/ChipsEditText.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.AdapterView;
import android.widget.AutoCompleteTextView;
import android.widget.BaseAdapter;
import android.widget.Filter;
import android.widget.Filterable;
Expand All @@ -34,11 +33,12 @@

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.rengwuxian.materialedittext.MaterialAutoCompleteTextView;

import java.util.ArrayList;
import java.util.List;

class ChipsEditText extends AutoCompleteTextView implements AdapterView.OnItemClickListener {
class ChipsEditText extends MaterialAutoCompleteTextView implements AdapterView.OnItemClickListener {

private InputConnectionWrapperInterface mInputConnectionWrapperInterface;
private ItemClickListener mItemClickListener;
Expand Down
3 changes: 2 additions & 1 deletion library/src/main/java/com/seraphim/chips/ChipsView.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,10 @@ private void init() {
editTextParams.bottomMargin = (int) (SPACING_BOTTOM * density) + verticalSpacing;
editText.setLayoutParams(editTextParams);
editText.setMinHeight((int) (CHIP_HEIGHT * density));
editText.setPadding(0, 0, 0, 0);
editText.setPaddings(0, 0, 0, 0);
editText.setLineSpacing(verticalSpacing, (CHIP_HEIGHT * density) / editText.getLineHeight());
editText.setBackgroundColor(Color.argb(0, 0, 0, 0));
editText.setHideUnderline(true);
editText.setImeOptions(EditorInfo.IME_ACTION_DONE | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
editText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
editText.setOnEditorActionListener(this);
Expand Down

0 comments on commit 1a1f025

Please sign in to comment.