
实在不知道标题写啥,瞎扯淡
就看看静态图吧,懒得做gif
把这个抽烟的兄弟往上拉之后
直接贴代码,只有布局
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android=""
xmlns:app=""
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/aaa"/>
<LinearLayout
app:behavior_peekHeight="220dp"
app:layout_behavior="@string/bottom_sheet_behavior"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/ret_white"
android:layout_margin="30dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="220dp"
android:src="@drawable/index"/>
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/bbb"/>
</android.support.v4.widget.NestedScrollView>
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
关键就是这两句
app:behavior_peekHeight="220dp"
app:layout_behavior="@string/bottom_sheet_behavior" ok,就这样吧!
本文发布于:2024-02-03 07:43:45,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170691742549616.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
| 留言与评论(共有 0 条评论) |