Android 底部导航栏(底部 Tab 最佳实践)
发布时间
阅读量:
阅读量
成效

Android 底部导航栏(底部 Tab)的优化设计规范
若要构建此类底部导航组件,通常首先会考虑使用TabLayout这一控件,因其专用于处理标签页切换功能。然而,默认情况下该组件会显示指示器,而实际需求中并不需要这一元素,因此需在实现过程中将其移除。以下是相关布局文件的示例:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Fr
全部评论 (0)
还没有任何评论哟~
