android - 两个视图之间从左,右和中心的相等空间android
解决方案
用这个
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
xmlns:android="http://schemas.android.com/apk/res/android">
<View
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<View
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
推荐阅读
- botframework - Microsoft Bot Framework 单元测试不继续对话
- adobe-analytics - Adobe Analytics - 首次添加购物车和结帐之间的时间
- regex - 将“notin”与匹配组一起使用
- sql - 如何选择给定数据是否存在于多个表中,然后更新到带有结果的表(只有一个表带来结果)
- apache-spark - 从 Spark 结构化流连接远程 Cassandra 节点
- android - 如何将多个 Firestore 任务串在一起?
- php - 使用 fgetcsv 读取 CSV 文件时出现逗号问题
- mysql - 全文索引找不到现有的区分大小写的记录
- javascript - (JavaScript) 创建一种比我现有的更有效的算法
- reactjs - 使用通过操作传递的参数填充 Redux Reducer