android-textinputedittext

Android TextInputLayout Password toggle not visible in new support library

拥有回忆 提交于 2021-02-17 21:35:31
问题 I have compiled with following design library and it is displaying password HIDE/SHOW button at the right of EditText compile 'com.android.support:design:24.2.1' <android.support.design.widget.TextInputLayout android:id="@+id/login_password_text_input_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal"> <android.support.v7.widget.AppCompatEditText android:id="@+id/login_password_edit_text" android:layout_width=

Android TextInputLayout Password toggle not visible in new support library

六月ゝ 毕业季﹏ 提交于 2021-02-17 21:34:05
问题 I have compiled with following design library and it is displaying password HIDE/SHOW button at the right of EditText compile 'com.android.support:design:24.2.1' <android.support.design.widget.TextInputLayout android:id="@+id/login_password_text_input_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal"> <android.support.v7.widget.AppCompatEditText android:id="@+id/login_password_edit_text" android:layout_width=

Android EditText error message popup text not showing

末鹿安然 提交于 2021-01-27 05:16:22
问题 I'm having an issue in my app where the error popup on EditTexts shows but the text is not visible. It looks something like this: This happens with all the EditText s in my app. Here's an example layout XML Layout: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main_content"

Remove underline from TextInputEditText

我怕爱的太早我们不能终老 提交于 2020-06-14 04:18:07
问题 I have an android screen which takes email from the user. Below is the snippet of the code, I want to remove the underline which appears below the text. <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="8dp" android:hint="@string/email" android:textColorHint="@color/blueBackground" app:boxBackgroundColor="@color/input_background" app:boxCornerRadiusBottomEnd="20dp" app

MaterialComponents.TextInputLayout.OutlinedBox it doesn't work properly boxBackgroundColor

六眼飞鱼酱① 提交于 2020-04-11 08:06:19
问题 I use material. I'm going to use a color for TextInputLayout for the backdrop, but something like the one below! hint background not change.i used style and wanted to make changes but it didn't work. In the layout itself I tried to apply the changes again! How to fix this problem? NOTE background of label username in picture that not transparent and it covers some of the TextInputEditText in build.gradle implementation 'com.google.android.material:material:1.1.0' in style <!-- Base

How to show copy-paste options (Context menu) for MultiAutoCompleteTextView on button click?

喜你入骨 提交于 2019-12-23 20:19:19
问题 I am trying to show context menu (copy-paste options) for MultiAutoCompleteTextView when clicked on button. Here is what I have tried but did not work. mButton.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { // the below line didn't work either. //mAutoCompleteTextView.showContextMenu(); mAutoCompleteTextView.performLongClick(); return true; } }); Is there any way to show context menu? Menu is shown when I long press MultiAutoCompleteTextView,

Get parent texInputlayout from child textInputEditText

浪子不回头ぞ 提交于 2019-12-23 09:04:03
问题 I am implementing a functionality to change the case of textInputlayout Hint text to upper case when the hint floats up and vice versa. For that I am using OnFocusChangeListener on its child textInputEditText . To make it easy to implement I am implementing View.OnFocusChangeListener on my activity like: public class LoginActivity extends BaseActivity implements View.OnFocusChangeListener and overriding the method in the activity like: @Override public void onFocusChange(View v, boolean