зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1227325 - Part 2: Upgrade PromptInput to use TextInputLayout r=mcomella
--HG-- extra : commitid : I9YAJkI436J extra : rebase_source : f4c964a0b99cc8b9f09192091d3d38466fde9b6b extra : source : d868de0c4779f073934b728ca8ddf7f2d661ac43
This commit is contained in:
Родитель
1e05a4d028
Коммит
57bb0866d3
|
@ -13,10 +13,10 @@ import org.json.JSONObject;
|
|||
import org.mozilla.gecko.AppConstants.Versions;
|
||||
import org.mozilla.gecko.widget.AllCapsTextView;
|
||||
import org.mozilla.gecko.widget.DateTimePicker;
|
||||
import org.mozilla.gecko.widget.FloatingHintEditText;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.support.design.widget.TextInputLayout;
|
||||
import android.support.v7.widget.AppCompatCheckBox;
|
||||
import android.text.Html;
|
||||
import android.text.InputType;
|
||||
|
@ -67,7 +67,7 @@ public class PromptInput {
|
|||
|
||||
@Override
|
||||
public View getView(final Context context) throws UnsupportedOperationException {
|
||||
EditText input = new FloatingHintEditText(context);
|
||||
EditText input = new EditText(context);
|
||||
input.setInputType(InputType.TYPE_CLASS_TEXT);
|
||||
input.setText(mValue);
|
||||
|
||||
|
@ -87,7 +87,10 @@ public class PromptInput {
|
|||
input.requestFocus();
|
||||
}
|
||||
|
||||
mView = (View)input;
|
||||
TextInputLayout inputLayout = new TextInputLayout(context);
|
||||
inputLayout.addView(input);
|
||||
|
||||
mView = (View) inputLayout;
|
||||
return mView;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче