Skip to content

Commit

Permalink
[NavigationBar] Add new textviews for horizontal textview instead of …
Browse files Browse the repository at this point in the history
…moving it between layouts

PiperOrigin-RevId: 678336777
  • Loading branch information
imhappi authored and afohrman committed Sep 25, 2024
1 parent 18fd815 commit 13dbcfc
Show file tree
Hide file tree
Showing 5 changed files with 214 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,38 @@
android:layout_gravity="center"
android:contentDescription="@null"
android:duplicateParentState="true" />
<com.google.android.material.internal.BaselineLayout
android:id="@id/navigation_bar_expanded_item_labels_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clipChildren="false"
android:clipToPadding="false"
android:layout_gravity="center"
android:visibility="gone"
android:duplicateParentState="true">
<TextView
android:id="@id/navigation_bar_expanded_item_small_label_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:ellipsize="end"
android:maxLines="1"
android:includeFontPadding="false"
android:gravity="center_vertical"
android:textSize="@dimen/design_bottom_navigation_text_size" />
<TextView
android:id="@id/navigation_bar_expanded_item_large_label_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:ellipsize="end"
android:maxLines="1"
android:gravity="center_vertical"
android:includeFontPadding="false"
android:textSize="@dimen/design_bottom_navigation_active_text_size"
android:visibility="invisible" />
</com.google.android.material.internal.BaselineLayout>

</LinearLayout>
</FrameLayout>
<com.google.android.material.internal.BaselineLayout
Expand Down
Loading

0 comments on commit 13dbcfc

Please sign in to comment.