zoukankan      html  css  js  c++  java
  • 安卓第四周作业

    1.

    <?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>
    

      

  • 相关阅读:
    数据科学工作中存在的7大问题与解决方案
    搞定SEO,看这一篇就够了
    李宏毅老师机器学习课程笔记_ML Lecture 3-1: Gradient Descent
    李宏毅老师机器学习课程笔记_ML Lecture 2: Where does the error come from?
    李宏毅老师机器学习课程笔记_ML Lecture 1: ML Lecture 1: Regression
    李宏毅老师机器学习课程笔记_ML Lecture 1: 回归案例研究
    python爬取中国大学排名
    爬虫实战_爬取静态单张图片
    李宏毅老师机器学习课程笔记_ML Lecture 0-2: Why we need to learn machine learning?
    多线程基础(一)
  • 原文地址:https://www.cnblogs.com/qq007/p/13713127.html
Copyright © 2011-2022 走看看