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

    
    

    <?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>
  • 相关阅读:
    ubuntu16.04设置开机自启服务
    Flask架构管理及特点(重要)
    Django开发框架知识点
    Django进行数据迁移时,报错:(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NOT NULL)' at line 1")
    Java 网络编程(二) 两类传输协议:TCP UDP
    Java 网络编程(一) 网络基础知识
    .NET开源项目
    手写ArrayList、LinkedList
    命令查看java的class字节码文件
    dubbo总结
  • 原文地址:https://www.cnblogs.com/wishings/p/13701538.html
Copyright © 2011-2022 走看看