android - 如何在android中用实线划分布局?
问题描述
我必须创建一个类似于图片中的界面,但我不知道如何在linearlayouts
解决方案
自己调整
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1.5"
android:background="@color/Black"></View>
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:src="@drawable/ic_clock"/>
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1.5"
android:background="@color/Black"></View>
</LinearLayout>
推荐阅读
- python - 计算回归变量的方差
- c - 如何将用户输入的字符串存储到 char 指针而不是 char 数组中
- javascript - 加载按钮后的jQuery AJAX load()div表不起作用
- c++ - "
静态 QT 构建时没有这样的文件或目录”错误 - azure-devops - Azure DevOps:以编程方式批准拉取请求
- forms - 我没有看到 setInterval 的问题
- css - 不同大小的 Vue.js & Tailwind 复用组件
- python-3.x - 我的 python 代码中有错误的无效语法
- c# - 如何使用 github 将具有多个 azure 功能的项目连接到 Azure 部署中心?
- r - 在计算具有数据框最大值的列时获取-Inf