BottomSheetLayout使用

 <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>
//
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值