bug BottomAppBar in RTL mode
See original GitHub issueHello . I noticed a weird bug in BottomAppBar
When the application language is RTL
, items inside the BottomAppBar are hidden. (This problem is not present in LTR
mode).
I also noticed that this problem is fixed when the app:navigationIcon
or app:logo
is set up.
I do not need an app:navigationIcon
or app:logo
, please fix this problem, without setting these two, show the items inside BottomAppBar (in RTL mode) .
kotlin :
bottom_app_bar.replaceMenu(R.menu.app_bar)
menu :
<?xml version ="1.0" encoding ="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/bar_menu"
android:checkable="true"
android:icon="@drawable/ico_menu_secondary"
android:orderInCategory="1"
android:title="@string/str_menu"
app:showAsAction="always" />
<item
android:checkable="false"
android:enabled="false"
android:orderInCategory="2"
android:title=""
app:showAsAction="always" />
<item
android:id="@+id/bar_course"
android:checkable="true"
android:icon="@drawable/ico_course_secondary"
android:orderInCategory="3"
android:title="@string/str_course"
app:showAsAction="always" />
<item
android:id="@+id/bar_reminder"
android:checkable="true"
android:icon="@drawable/ico_reminder_secondary"
android:orderInCategory="4"
android:title="@string/str_reminder"
app:showAsAction="always" />
<item
android:id="@+id/bar_task"
android:checkable="true"
android:icon="@drawable/ico_task_secondary"
android:orderInCategory="5"
android:title="@string/str_task"
app:showAsAction="always" />
</menu>
layout :
<com.google.android.material.bottomappbar.BottomAppBar
android:id="@+id/bottom_app_bar"
style="@style/Widget.MaterialComponents.BottomAppBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:backgroundTint="?colorAccent"
app:buttonGravity="bottom"
app:fabAlignmentMode="end"
app:hideOnScroll="true"
app:menu="@menu/app_bar" />
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
right-to-left (RTL) in flutter - Stack Overflow
1. force a locale ( and direction ) on all devices · 2. set layout direction according to device locale ( if user...
Read more >CollapsingToolbarLayout - Android Developers
com.google.android.material.appbar. ... Sets the title collapse mode which determines the effect used to collapse and expand the title text.
Read more >RTL Languages - MudBlazor - Blazor Component Library
Blazor Component Library based on Material Design. MudBlazor is easy to use and extend, especially for .NET devs because it uses almost no...
Read more >Right to Left (RTL) in Flutter PDF Viewer (SfPdfViewer)
Learn here all about the Right to Left (RTL) support in Syncfusion Flutter PDF ... context) { return Scaffold( appBar: AppBar( title: const...
Read more >React UI Roundup
Name, Native Dark Mode, Design Kits, RTL Support, Themer, Native TypeScript ... The API style used for the components contained within the AppBar....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://issuetracker.google.com/issues/117662627
Yes, it appears this is fixed in commit https://github.com/material-components/material-components-android/commit/89026898dca97475751dec5418776ad2bfb3757f. We will still need to wait for a newer release. As a temporary workaround (until there is a new release) you can use the following class instead. It has the new code of that commit included.