80,348
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="6dp"/> <!-- 圆角角度 -->
<solid android:color="@color/bg_white"/>
<stroke android:color="@color/bg_white" android:width="0.4dp"/> <!-- 边框颜色与边框大小 -->
</shape>
布局调用
<EditText
android:id="@id/edittext2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp" //这个地方就是你所需要的距离手机边缘距离
android:layout_marginRight="10dp" //这个地方就是你所需要的距离手机边缘距离
android:background="@drawable/edit_style"
/>
imageview布局
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/image"
android:layout_marginLeft="10dp" //这个地方就是你所需要的距离手机边缘距离
android:layout_marginRight="10dp" //这个地方就是你所需要的距离手机边缘距离
android:scaleType="fitXY"
/>
登陆按钮建议你用button