android-textinputedittext

How can I validate recyclerview adapter TextInputEditText from fragment?

只愿长相守 提交于 2019-12-17 04:36:41
问题 I have a fragment, which contains a recyclerview. This recyclerview is managed with an adapter that includes the viewholder pattern. In the fragment I have a "Save" button, this button must check that no TextInputEditText is empty in the list. The problem is that I can not access the TextInputEditText of the adapter. ViewHolder is only accessible from the "onBindViewHolder" method. I tried to access from fragment in a way: for (int i = 0; i < employeeList.size(); i++) { View employeeView =

Android accessibility in Edit text box text not reading properly/Expect After Talk back on

拟墨画扇 提交于 2019-12-11 17:39:52
问题 I am creating app for blind people. there, when blind people after entered the zip code on that profile registration Edit Text box, like 45987. It reading as Fourty Five Thousand and Nine hundred eighty seven. But, I want to read an Four Five Nine Eight Seven. 4 5 9 8 7. Note: when i tried for the same in TexView, its reading as correctly. only problem with EditText. My Sample Code: zipCode_EditText.setContentDescription("4 5 9 8 7"); I have referred these link: Android Acccessibility: How do

Why my EditText view cannot bring up soft keyboard in Android even I force it to show?

岁酱吖の 提交于 2019-12-11 05:08:17
问题 I have an EditText view in a fragment and when showing that fragment, I need to let it get focus and the soft keyboard pops up to allow user type in directly, however, the EditText view seems can only get focus but not show the keyboard even though I manually force it to show. The user has to touch it to bring up the soft keyboard. I tried to get a minimum app to reproduce this, it's simply an activity with an EditText. Any idea? Activity package com.example.litaos.testeditview; import

android textInputEditText with custom background is not working ok

旧时模样 提交于 2019-12-10 23:03:13
问题 i'm using textInputEditText inside textInputLayout i had to set background for my editText to achieve a bordered view for my editText. but when i call setError() on my textInputLayout the entire editText color changes to red. but i want to change only the color of error text, not the entire view. before setting error : screen shot after setting error : screen shot and here is my xml code : <android.support.design.widget.TextInputLayout android:layout_alignParentTop="true" android:id="@+id/ex

NullPointerException on TextInputLayout.passwordVisibilityToggleRequested

无人久伴 提交于 2019-12-10 13:47:49
问题 I got an error in Firebase crash reporting about Password toggle button on an app in release mode in some real devices. The problem is the stack trace error is all about android.support.design code like you will see in the following log taken from firebase console: Exception java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference android.graphics.drawable.AnimatedVectorDrawable.isStarted (AnimatedVectorDrawable.java:427)

EditText cursor and pointer color for below android 5.0

孤街醉人 提交于 2019-12-08 15:40:53
问题 I am trying to change EditText cursor pointer color (from primary color blue to white), but no solution is working for my project. I have tried to develop demo project, where the same code is working fine. This code is working fine for >=android 5.0 I do not know, which attribute is overridden by my value. I have two options to encounter this problem :- 1. find the attribute which is controlling that color value. 2. change color value by java code when page loads (in onViewCreated). Please

Password toggle button on TextInputEditText disappears after click in Support Library 25.1.0

喜夏-厌秋 提交于 2019-12-06 02:01:22
问题 I have a TextInputEditText in conjunction with TextInputLayout with android:inputType="textPassword" using app:passwordToggleEnabled="true" to show password toggle button in the TextInputEditText like next image: The problem is once I press the password toggle button, it disappears for ever. It was working well in com.android.support:design:24.2.0 version. am I missing something new? it's a bug? Some gradle project's setup: minSdkVersion 17 targetSdkVersion 25 compile 'com.android.support

How can I validate recyclerview adapter TextInputEditText from fragment?

本小妞迷上赌 提交于 2019-11-26 21:07:18
I have a fragment, which contains a recyclerview. This recyclerview is managed with an adapter that includes the viewholder pattern. In the fragment I have a "Save" button, this button must check that no TextInputEditText is empty in the list. The problem is that I can not access the TextInputEditText of the adapter. ViewHolder is only accessible from the "onBindViewHolder" method. I tried to access from fragment in a way: for (int i = 0; i < employeeList.size(); i++) { View employeeView = recyclerEmployees.findViewHolderForAdapterPosition(i).itemView; if (employeeView != null) {