下面是本人写的一个页面布局,作者是一个小白,如果有错误,请见谅
layout:activity_main.xml:
<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”
xmlns:app=“http://schemas.android.com/apk/res-auto”
xmlns:tools=“http://schemas.android.com/tools”
android:id="@+id/activity_main"
android:layout_width=“match_parent”
android:layout_height=“match_parent”
android:paddingBottom=“0dp”
android:paddingLeft=“0dp”
android:paddingRight=“0dp”
android:paddingTop=“0dp”
tools:context="com.example.administrator.taobao.MainActivity"
android:weightSum="1"
android:orientation="vertical"
>
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="50dp"
>
<ImageButton
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@mipmap/saoyisao"/>
<EditText
android:layout_width="283dp"
android:layout_height="50dp"
android:background="@mipmap/shousuokuang"
/>
<Button
android:layout_width="50dp"
android:layout_height="52dp"
android:background="@mipmap/huiyuanma"
android:id="@+id/button1" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_weight="0.05"
android:background="