Rabbit-R1/android (non root)/java/resources/res/layout/design_bottom_navigation_item.xml
2024-05-21 17:08:36 -04:00

51 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout
android:layout_gravity="center_horizontal"
android:id="@+id/navigation_bar_item_icon_container"
android:duplicateParentState="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/design_bottom_navigation_margin"
android:layout_marginBottom="@dimen/design_bottom_navigation_margin">
<View
android:layout_gravity="center"
android:id="@+id/navigation_bar_item_active_indicator_view"
android:layout_width="0dp"
android:layout_height="0dp"/>
<ImageView
android:layout_gravity="center"
android:id="@+id/navigation_bar_item_icon_view"
android:duplicateParentState="true"
android:layout_width="24dp"
android:layout_height="24dp"
android:contentDescription="@null"/>
</FrameLayout>
<com.google.android.material.internal.BaselineLayout
android:layout_gravity="bottom|center_horizontal"
android:id="@+id/navigation_bar_item_labels_group"
android:paddingBottom="@dimen/design_bottom_navigation_label_padding"
android:duplicateParentState="true"
android:clipChildren="false"
android:clipToPadding="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:textSize="@dimen/design_bottom_navigation_text_size"
android:ellipsize="end"
android:id="@+id/navigation_bar_item_small_label_view"
android:duplicateParentState="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"/>
<TextView
android:textSize="@dimen/design_bottom_navigation_active_text_size"
android:ellipsize="end"
android:id="@+id/navigation_bar_item_large_label_view"
android:visibility="invisible"
android:duplicateParentState="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"/>
</com.google.android.material.internal.BaselineLayout>
</merge>