android-textinputlayout

android.support.design.widget.TextInputLayout could not be instantiated

余生长醉 提交于 2020-07-18 10:01:15
问题 I want to integrate android.support.design.widget.TextInputLayout In my android application. I have copied the jar file android-support-design.jar from the sdk to my applications lib folder. I have added below code in my xml file for the Email EditText, <!-- Email Label --> <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:layout_marginBottom="8dp"> <EditText android:id="@+id/input

how to change visiblity (visible, invisible or gone ) of setEndIconDrawable in TextInputLayout android?

痴心易碎 提交于 2020-07-10 03:13:05
问题 I am trying to make invisible or visibility gone of endIconDrawable which is the edit icon in the picture above for FirstName field only and want to keep visibile edit icon rest of the fields but unable to do? How can i do this? <com.google.android.material.textfield.TextInputLayout android:id="@+id/tilFirstName" android:layout_width="match_parent" android:layout_height="@dimen/_64dp" app:endIconDrawable="@drawable/icon_edit" app:endIconMode="custom"> <com.google.android.material.textfield

how to change visiblity (visible, invisible or gone ) of setEndIconDrawable in TextInputLayout android?

断了今生、忘了曾经 提交于 2020-07-10 03:12:42
问题 I am trying to make invisible or visibility gone of endIconDrawable which is the edit icon in the picture above for FirstName field only and want to keep visibile edit icon rest of the fields but unable to do? How can i do this? <com.google.android.material.textfield.TextInputLayout android:id="@+id/tilFirstName" android:layout_width="match_parent" android:layout_height="@dimen/_64dp" app:endIconDrawable="@drawable/icon_edit" app:endIconMode="custom"> <com.google.android.material.textfield

How to remove white box from TextInputLayout

时间秒杀一切 提交于 2020-07-02 13:47:47
问题 Today I have just updated my dependencies of material design from 1.0.0 to 1.1.0-alpha09 implementation 'com.google.android.material:material:1.1.0-alpha09' Now i"m getting strange issue in com.google.android.material.textfield.TextInputLayout Here is my Code <com.google.android.material.textfield.TextInputLayout android:id="@+id/emailTextInputLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/_10sdp"> <com.google.android.material

IllegalArgumentException When trying to use @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox

浪子不回头ぞ 提交于 2020-06-23 16:00:26
问题 I am trying to stylize the TextInputLayout with an outline. But when I try to use @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox in style attribute my app crashes with this exception: Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant). Here is the TextInputLayout theme I want to use OutlinedBox It was working fine but suddenly this error appeared during development <style name=

TextInputLayout FilledBox boxBackgroundColor not apply alpha channel

僤鯓⒐⒋嵵緔 提交于 2020-06-16 21:24:38
问题 TextInputLayout boxBackgroundColor not apply alpha channel. This happened when I merge app to AndroidX. Before merging everything was working good. When boxBackgroundColor is "#77ff0000" color appears as light red when I set boxBackgroundColor as transparent, color appears as white. It draws background like first fill with white color and then applies given boxBackgroundColor. Gradle: implementation 'androidx.appcompat:appcompat:1.1.0-alpha01' implementation 'com.google.android.material

TextInputLayout FilledBox boxBackgroundColor not apply alpha channel

对着背影说爱祢 提交于 2020-06-16 21:18:32
问题 TextInputLayout boxBackgroundColor not apply alpha channel. This happened when I merge app to AndroidX. Before merging everything was working good. When boxBackgroundColor is "#77ff0000" color appears as light red when I set boxBackgroundColor as transparent, color appears as white. It draws background like first fill with white color and then applies given boxBackgroundColor. Gradle: implementation 'androidx.appcompat:appcompat:1.1.0-alpha01' implementation 'com.google.android.material