zoukankan      html  css  js  c++  java
  • 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="match_parent">
    
        <Button
            android:id="@+id/button1"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#673AB7"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button2"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#8BC34A"
            android:layout_toLeftOf="@id/button1"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button3"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#8BC34A"
            android:layout_toRightOf="@id/button1"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button4"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#2196F3"
            android:layout_above="@id/button1"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button5"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#9C27B0"
            android:layout_toLeftOf="@+id/button4"
            android:layout_above="@id/button2"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button6"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#9C27B0"
            android:layout_toRightOf="@+id/button4"
            android:layout_above="@id/button3"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button7"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#2196F3"
            android:layout_below="@id/button1"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button8"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#9C27B0"
            android:layout_below="@id/button2"
            android:layout_toLeftOf="@id/button7"
            android:layout_centerInParent="true"
            android:text=""
            />
        <Button
            android:id="@+id/button9"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#9C27B0"
            android:layout_toRightOf="@+id/button4"
            android:layout_below="@id/button3"
            android:layout_centerInParent="true"
            android:text=""
            />
    </RelativeLayout>

    <?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="match_parent">
     
        <ImageView
            android:id="@+id/z1"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="@drawable/abc"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="100dp"
            />
    <Button
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:text="登录"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="400dp"
        />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="用户名"
            android:textSize="30dp"
            android:layout_marginTop="250dp"
            android:layout_marginLeft="60dp"
            />
        <EditText
            android:layout_width="200dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="250dp"
            android:layout_marginLeft="170dp"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="密码"
            android:textSize="30dp"
            android:layout_marginTop="300dp"
            android:layout_marginLeft="60dp"
            />
        <EditText
            android:layout_width="200dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="300dp"
            android:layout_marginLeft="170dp"
            />
     
     
     
     
    </RelativeLayout>
    

      

  • 相关阅读:
    LeetCode 40. 组合总和 II(Combination Sum II)
    LeetCode 129. 求根到叶子节点数字之和(Sum Root to Leaf Numbers)
    LeetCode 60. 第k个排列(Permutation Sequence)
    LeetCode 47. 全排列 II(Permutations II)
    LeetCode 46. 全排列(Permutations)
    LeetCode 93. 复原IP地址(Restore IP Addresses)
    LeetCode 98. 验证二叉搜索树(Validate Binary Search Tree)
    LeetCode 59. 螺旋矩阵 II(Spiral Matrix II)
    一重指针和二重指针
    指针的意义
  • 原文地址:https://www.cnblogs.com/s2me/p/13714104.html
Copyright © 2011-2022 走看看