We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Detected the leak with LeakCanary, this bug will show on sdkInt 15..27: https://issuetracker.google.com/issues/37043700
Default suggested styling inherits from Base.Widget.AppCompat.AutoCompleteTextView whose parent is Widget.EditText, which defines:
Base.Widget.AppCompat.AutoCompleteTextView
Widget.EditText
<item name="focusable">true</item> <item name="focusableInTouchMode">true</item> <item name="clickable">true</item>
Hence the memory error. To fix this, I propose the following simple style:
<com.mayurrokade.minibar.MinibarView android:id="@+id/minibarView" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal|center_vertical" android:includeFontPadding="false" android:minHeight="32dp" android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Inverse" app:layout_constraintTop_toTopOf="parent" />
A minimum height is also set and includeFontPadding is set to false, to ensure text is centered properly.
Another thing, before showing minibar, I have to add the line:
minibarView.translationZ = 0.0f
Do you know why this is necessary?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Detected the leak with LeakCanary, this bug will show on sdkInt 15..27:
https://issuetracker.google.com/issues/37043700
Default suggested styling inherits from
Base.Widget.AppCompat.AutoCompleteTextView
whose parent isWidget.EditText
, which defines:Hence the memory error. To fix this, I propose the following simple style:
A minimum height is also set and includeFontPadding is set to false, to ensure text is centered properly.
Another thing, before showing minibar, I have to add the line:
Do you know why this is necessary?
The text was updated successfully, but these errors were encountered: