返回列表 發帖
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  4.     android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
  5.     android:paddingRight="@dimen/activity_horizontal_margin"
  6.     android:paddingTop="@dimen/activity_vertical_margin"
  7.     android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
  8.     android:orientation="vertical"
  9.     android:weightSum="1">

  10.     <TextView
  11.         android:layout_width="match_parent"
  12.         android:layout_height="80dp"
  13.         android:text="@string/title"
  14.         android:id="@+id/textView"
  15.         android:textSize="22sp"
  16.         android:textColor="#000000"
  17.         android:gravity="center" />

  18.     <TextView
  19.         android:layout_width="wrap_content"
  20.         android:layout_height="wrap_content"
  21.         android:text="@string/tv"
  22.         android:id="@+id/textView2"
  23.         android:textSize="22sp"
  24.         android:textColor="#000000" />

  25.     <EditText
  26.         android:layout_width="match_parent"
  27.         android:layout_height="wrap_content"
  28.         android:id="@+id/editText"
  29.         android:textSize="22sp" />

  30.     <TextView
  31.         android:layout_width="match_parent"
  32.         android:layout_height="80dp"
  33.         android:id="@+id/textView3"
  34.         android:layout_gravity="center_horizontal"
  35.         android:textSize="22sp"
  36.         android:gravity="center_vertical"
  37.         android:layout_weight="0.08" />

  38.     <LinearLayout
  39.         android:orientation="horizontal"
  40.         android:layout_width="match_parent"
  41.         android:layout_height="wrap_content"
  42.         android:layout_gravity="center_horizontal"
  43.         android:gravity="right">

  44.         <Button
  45.             android:layout_width="wrap_content"
  46.             android:layout_height="wrap_content"
  47.             android:text="@string/btn1"
  48.             android:id="@+id/button"
  49.             android:textSize="18sp" />

  50.         <Button
  51.             android:layout_width="wrap_content"
  52.             android:layout_height="wrap_content"
  53.             android:text="@string/btn2"
  54.             android:id="@+id/button2"
  55.             android:textSize="18sp" />
  56.     </LinearLayout>

  57. </LinearLayout>
複製代碼
七日不見 如隔一周

TOP

返回列表