android - 我怎样才能在android中设计这个布局?
解决方案
这应该有效:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorAccent">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/button"
android:drawableLeft="@drawable/ic_back_navigation" />
<ImageButton
android:id="@+id/clickableImageButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/button"
android:background="@android:color/transparent"
android:src="@drawable/ic_back_navigation" />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="ADD" />
</RelativeLayout>
推荐阅读
- blockchain - 如何查看 Parity Substrate 中的宏生成的最终代码?
- java - 如何实现多个不同内容的案例共享案例?
- node.js - S3如何查找对象是否具有预签名的URL?
- javascript - 如何在猫鼬中嵌套模式?
- git - git push 不断跟踪已删除的文件
- swift - show data into tableview from api when category cell and store cell is selected or only one from previous controller in swift
- azure - 交换后应用服务上的旧 WEBSITE_HOSTNAME 值
- generics - 使用 mem::size_of: 时,在编译时无法知道 `T` 类型值的大小:
作为数组长度 - java - 用 yocto 交叉编译 jrxtx
- c++ - OpenCV如何有效地编码和发送网络摄像头视频流的数据?