<com.flipboard.bottomsheet.BottomSheetLayout
android:id="@+id/bottomSheetLayout"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent">
<LinearLayout
android:fitsSystemWindows="false"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical">
<LinearLayout
android:background="#f6f89191"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:paddingBottom="10dp"
android:paddingTop="25dp">
<ImageButton
android:background="@drawable/abc_ic_ab_back_mtrl_am_alpha"
android:id="@+id/ib_back"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_width="wrap_content" />
<TextView
android:id="@+id/tv_title"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_weight="1"
android:layout_width="0dp"
android:singleLine="true"
android:text="田老师红烧肉(东北旺西路店)"
android:textColor="#fff"
android:textSize="20sp"
android:textStyle="bold" />
<ImageButton
android:background="@drawable/abc_ic_menu_moreoverflow_mtrl_alpha"
android:id="@+id/ib_menu"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_width="wrap_content" />
</LinearLayout>
<!-- app:tabIndicatorColor="#00f" tab底部选中的颜色标识
app:tabIndicatorHeight="4dp" 标识的高度
app:tabSelectedTextColor="#00f" 选中tab文字的颜色
app:tabTextColor="#000" 没有选中tab文字的颜色
-->
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:tabIndicatorColor="#00f"
app:tabIndicatorHeight="4dp"
app:tabSelectedTextColor="#00f"
app:tabTextColor="#000"></android.support.design.widget.TabLayout>
<android.support.v4.view.ViewPager
android:id="@+id/vp"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent"></android.support.v4.view.ViewPager>
</LinearLayout>
</com.flipboard.bottomsheet.BottomSheetLayout>
//
BottomSheetLayout使用
最新推荐文章于 2024-08-09 08:23:46 发布