Status Update
Comments
ch...@google.com <ch...@google.com>
[Deleted User] <[Deleted User]> #2
Confirmed. I can only recreate on API 16 though.
Workaround for now is to set app:borderWidth="0dp"
Workaround for now is to set app:borderWidth="0dp"
dj...@gmail.com <dj...@gmail.com> #3
app:borderWidth="0dp" also fixes elevation issues on 21+. Without it, no matter how much elevation is specified the FAB is flat.
[Deleted User] <[Deleted User]> #7
Hey Chris, this is not the same issues as the one that was merged into, but I guess you want to fix it in one batch?
Cheers,
Ljubisa
Cheers,
Ljubisa
[Deleted User] <[Deleted User]> #9
For those that still have a square button after adding app:borderWidth="0dp", I found that setting android:background was causing the issue for me. Set android:backgroundTint instead.
[Deleted User] <[Deleted User]> #10
[Comment deleted]
an...@googlemail.com <an...@googlemail.com> #11
For those whom nothing else worked, this is the xml layout I used in the end and worked like a charm among all the devices I used:
<android.support.design.widget.FloatingActionButton
android:id="@+id/ddd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="10dp"
android:layout_marginRight="10dp"
app:elevation="@dimen/floating_button_elevation"
app:borderWidth="0dp"
app:rippleColor="@color/red"
app:backgroundTint="@color/blue" />
Notice the "app:backgroundTint" instead of "android:backgroundTint"
Hope it helps!
<android.support.design.widget.FloatingActionButton
android:id="@+id/ddd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="10dp"
android:layout_marginRight="10dp"
app:elevation="@dimen/floating_button_elevation"
app:borderWidth="0dp"
app:rippleColor="@color/red"
app:backgroundTint="@color/blue" />
Notice the "app:backgroundTint" instead of "android:backgroundTint"
Hope it helps!
dj...@gmail.com <dj...@gmail.com> #12
Just to add another possible path to reproduce:
1. Create an activity with two fragments.
- Each Fragment has a form with floating labels
2. Create a button that transitions between fragments using the FragmentManger
3. OnClick should use "replace" to remove one fragment from the activity and add the other
When you swap between fragments, the floating labels don't work as expected.
However, if you use show/hide _instead of_ replace, the floating labels actually work.
1. Create an activity with two fragments.
- Each Fragment has a form with floating labels
2. Create a button that transitions between fragments using the FragmentManger
3. OnClick should use "replace" to remove one fragment from the activity and add the other
When you swap between fragments, the floating labels don't work as expected.
However, if you use show/hide _instead of_ replace, the floating labels actually work.
kj...@gmail.com <kj...@gmail.com> #13
In my case after adding app:borderWidth="0dp" still button was square. Because before using this newly released support lib, i used google android sample in which i end up creating "fab_background" file which was causing this issue. After removing said file button is appearing as circle.
[Deleted User] <[Deleted User]> #14
Released in v22.2.1.
[Deleted User] <[Deleted User]> #15
FAB still seems to be square in API 16 after new release.
ak...@gmail.com <ak...@gmail.com> #16
#17: are you changing the FAB's background?
ch...@google.com <ch...@google.com>
ro...@gmail.com <ro...@gmail.com> #17
FAB is still square on lollipop devices, i noticed that setting borderWidth to a greater value doesn't exactly fix things but reduces the square drawables size so it resides inside the circular view but is easily distinguished and without giving borderWidth the drawable takes up the whole width and height available to it. Is there a problem with how CircularDrawableForLollipop is implemented??
d....@gmail.com <d....@gmail.com> #18
This seems to still be an issue. Im using support libs 23.0.0, setting app:backgroundTint seems to work as a workaround, has a cause been found for this?
d....@gmail.com <d....@gmail.com> #19
i tried app:borderWidth="0dp" and "app:backgroundTint" too but however app:backgroundTint didn't solve for the api 22+
bu...@gmail.com <bu...@gmail.com> #20
Always update to the latest version before adding a 'me too'. This is no longer reproducible.
dj...@gmail.com <dj...@gmail.com> #21
Look at my comment #13 . IIRC that would reproduce the bug both on Lollipop and KitKat.
ha...@gmail.com <ha...@gmail.com> #22
@alessandro , we are blocked by this issue on The Foodora. Kindly check with eoiwfjeiowfj when future release.
d....@gmail.com <d....@gmail.com> #23
I didn't read comment #13 , It's the same, it doesn't work on KitKat+ with the ViewPager when you swipe fragments, it works fine on Jelly Bean.
dj...@gmail.com <dj...@gmail.com> #24
The workaround posted in comment #11 fixes the issue in Lollipop and KitKat (but not MNC).
[Deleted User] <[Deleted User]> #26
In my case, I solved the problem by following code.
public class CustomTextInputLayout extends TextInputLayout {
public CustomTextInputLayout(Context context) {
super(context);
}
public CustomTextInputLayout(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public void addView(View child, int index, android.view.ViewGroup.LayoutParams params) {
if (child instanceof EditText) {
// TextInputLayout updates mCollapsingTextHelper bounds on onLayout. but Edit text is not layouted.
child.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@SuppressLint("WrongCall")
@Override
public void onGlobalLayout() {
onLayout(false, getLeft(), getTop(), getRight(), getBottom());
}
});
}
super.addView(child, index, params);
}
}
public class CustomTextInputLayout extends TextInputLayout {
public CustomTextInputLayout(Context context) {
super(context);
}
public CustomTextInputLayout(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public void addView(View child, int index, android.view.ViewGroup.LayoutParams params) {
if (child instanceof EditText) {
// TextInputLayout updates mCollapsingTextHelper bounds on onLayout. but Edit text is not layouted.
child.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@SuppressLint("WrongCall")
@Override
public void onGlobalLayout() {
onLayout(false, getLeft(), getTop(), getRight(), getBottom());
}
});
}
super.addView(child, index, params);
}
}
ch...@google.com <ch...@google.com> #28
Released in v22.2.1.
st...@gmail.com <st...@gmail.com> #29
I don't believe this is fixed. I'm experiencing this issue in design library v22.2.1 running on Android version 5.1.1. I have two EditText in a Toolbar which I am Activity Transitioning to and the hint text isn't showing until focused.
ch...@google.com <ch...@google.com> #30
#32: screenrecord please.
[Deleted User] <[Deleted User]> #31
I happen to have the same issue so here is the screen record ...
https://youtu.be/a001zFqOdaM
cn...@gmail.com <cn...@gmail.com> #32
I can confirm that this bug has been reintroduced on my end, as well. My guess is something got mixed up in the recent revision from 22.2.1 -> 23.0.0 in the support libs.
Support Lib Ver: 23.0.0
Phone/Model: Samsung Galaxy S6
Android OS Ver: 5.1.1 (also tested on 5.0.2)
Support Lib Ver: 23.0.0
Phone/Model: Samsung Galaxy S6
Android OS Ver: 5.1.1 (also tested on 5.0.2)
le...@gmail.com <le...@gmail.com> #33
[Comment deleted]
mb...@gmail.com <mb...@gmail.com> #34
Still this bug exist for Arabic language.
Support library : 23.0.1
Support library : 23.0.1
js...@gmail.com <js...@gmail.com> #35
I can reproduce this bug. I'm using:
com.android.support:appcompat-v7:23.1.1
com.android.support:design:23.1.1
com.android.support:appcompat-v7:23.1.1
com.android.support:design:23.1.1
ch...@google.com <ch...@google.com> #36
I can't reproduce, so I need some sample code, and information on what devices + API level.
[Deleted User] <[Deleted User]> #37
I can reproduce this bug too. I'm using:
com.android.support:appcompat-v7:23.1.1
com.android.support:design:23.1.1
<EditText
android:id="@+id/emailField"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_above="@+id/send"
android:layout_marginBottom="16dp"
android:background="@color/white"
android:inputType="textEmailAddress"
android:hint="@string/Email"
android:textColorHint="@android:color/darker_gray"
android:paddingLeft="10dp"
android:paddingRight="10dp" />
com.android.support:appcompat-v7:23.1.1
com.android.support:design:23.1.1
<EditText
android:id="@+id/emailField"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_above="@+id/send"
android:layout_marginBottom="16dp"
android:background="@color/white"
android:inputType="textEmailAddress"
android:hint="@string/Email"
android:textColorHint="@android:color/darker_gray"
android:paddingLeft="10dp"
android:paddingRight="10dp" />
[Deleted User] <[Deleted User]> #38
Maybe I should mention that it is missing only when the application is running from the generated APK.
js...@mcruiseon.com <js...@mcruiseon.com> #39
I am able to reproduce this bug with 24.0.0 also.
compileSdkVersion 24
buildToolsVersion '24.0.0'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TextInputEditText
android:id="@+id/phoneNumber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/enterYourPhoneNumber"
android:imeOptions="actionNext"
android:inputType="phone|number"
android:textColor="#c0c5cd"
android:textSize="@dimen/text_Large"/>
</android.support.design.widget.TextInputLayout>
compileSdkVersion 24
buildToolsVersion '24.0.0'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TextInputEditText
android:id="@+id/phoneNumber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/enterYourPhoneNumber"
android:imeOptions="actionNext"
android:inputType="phone|number"
android:textColor="#c0c5cd"
android:textSize="@dimen/text_Large"/>
</android.support.design.widget.TextInputLayout>
pe...@gmail.com <pe...@gmail.com> #40
[Comment deleted]
ga...@gmail.com <ga...@gmail.com> #41
I still have this error. After more than 2 years. Incredible. I'm on Oreo, with Android Studio 3, and all things updated.
Description
Version used: 22.2.0
Affected Android Versions: 5.0+
When an EditText (or AppCompatEditText) is wrapped in a TextInputLayout, the hint does not show until the EditText is focused. Basically, when the UI is rendered, the EditText is completely blank. When the EditText is then focused, the hint pops up where the label should be, and then works properly.
It works properly on Android versions below 5.0, but works improperly on 5.0 and above.
See attached video for a visual description.