android-textinputlayout

TextInputLayout FilledBox boxBackgroundColor not apply alpha channel

风格不统一 提交于 2020-06-16 21:18:19
问题 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

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

How to set TextInputLayout's outlined box floating hint background color

≯℡__Kan透↙ 提交于 2020-05-29 09:56:26
问题 How to change the background color of the floating hint in a text input layout outline box style to transparent. I think the attached picture clearly states the issue It should be red above the stroke and white below). What I did to change the background itself was: <style name="App.TextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"> <item name="boxBackgroundColor">@color/white</item> </style> Any help is greatly appreciated 回答1: If you look at the style

Overriding editTextStyle doesn't work with latest Material Components base style

时间秒杀一切 提交于 2020-05-25 07:41:47
问题 In an app of mine, I'm using the Theme.MaterialComponents.Light.NoActionBar as a base style. In this style, which I call AppTheme , I'm trying to override editTextStyle to provide a custom style for com.google.android.material.textfield.TextInputEditText (according to the source code, it uses R.attr.editTextStyle as a default style). This is my current theme, related to the TIEditText and TILayout: <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> [ primary and

switching to Theme.MaterialComponents from Theme.AppCompat shows white blank labels & buttons

非 Y 不嫁゛ 提交于 2020-05-23 21:10:33
问题 I was using Material design 1.1.0 . For tabs with viewpager2 I updated it to '1.2.0-alpha05' Material library version it was working fine for single module but was crashing for another module where I've developed my custom material designed TextInputLayout. I changed theme from 'Theme.AppCompat.Light.NoActionBar' to Theme.MaterialComponents.Light.NoActionBar and crash fixed. After fixing crash and upgrading theme it is showing me white floating label , buttons , indiators etc anyone please

switching to Theme.MaterialComponents from Theme.AppCompat shows white blank labels & buttons

…衆ロ難τιáo~ 提交于 2020-05-23 21:09:08
问题 I was using Material design 1.1.0 . For tabs with viewpager2 I updated it to '1.2.0-alpha05' Material library version it was working fine for single module but was crashing for another module where I've developed my custom material designed TextInputLayout. I changed theme from 'Theme.AppCompat.Light.NoActionBar' to Theme.MaterialComponents.Light.NoActionBar and crash fixed. After fixing crash and upgrading theme it is showing me white floating label , buttons , indiators etc anyone please

OutlinedBox TextInputLayout and gravity center?

烂漫一生 提交于 2020-05-22 07:59:50
问题 How to achieve centered new OutlinedBox style with TextInputLayout ? Current behavior: <android.support.design.widget.TextInputLayout android:id="@+id/textInputLayout2" style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="left" > <android.support.design.widget.TextInputEditText android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="left" android:hint=

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

Transition in MotionLayout causing TextInputLayout setError message not work in Android 9

ぃ、小莉子 提交于 2020-02-05 02:30:32
问题 I have created a sample project on github Please check it out to reproduce the problem I am facing. Project Structure: I have basic TabLayout and Viewpager in MainActivity . I also have FirstFragment and SecondFragment which are hosted by my TabLayout . Everything fairly simple and straightforward there. Look at the screenshots: Layout of MainActivity has MotionLayout as the root layout. When user moves from FirstFragment to SecondFragment , I increase the size of the CardView . My transition

How do I reduce the padding between the text hint and text line?

不羁岁月 提交于 2020-01-30 08:51:08
问题 I have a TextInputEditText with a hint shown. I really do not like the amount of space between the hint and text line. I have tried setting the gravity to bottom but no luck. <com.google.android.material.textfield.TextInputEditText android:layout_width="400dp" android:layout_height="wrap_content" android:background="@android:color/white" android:inputType="textNoSuggestions" android:hint="@string/email_hint" android:textColorHint="@color/color_hint_grey" android:fontFamily="@font/alternate