zoukankan      html  css  js  c++  java
  • 第二次作业

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout 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:layout_width="match_parent"
                    android:layout_height="match_parent"
                    tools:context=".MainActivity"
                    android:background="#01ffff">
    
    <Button
            android:id="@+id/button"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:background="#000000"
    
    
    />
    
    <Button
            android:id="@+id/button2"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_above="@id/button"
            android:layout_centerHorizontal="true"
            android:background="#fe1595"
    />
    
    <Button
            android:id="@+id/button3"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_toLeftOf="@id/button2"
            android:layout_above="@id/button"
            android:background="#FFFFFF" />
    
    
    <Button
            android:id="@+id/button4"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_above="@id/button"
            android:layout_toRightOf="@id/button2"
            android:background="#FFFF00"
    />
    
    <Button
            android:id="@+id/button5"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_below="@id/button2"
            android:layout_toLeftOf="@id/button"
            android:background="#008000"
    />
    
    <Button
            android:id="@+id/button6"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_toRightOf="@id/button"
            android:layout_below="@id/button4"
            android:background="#0001cb"
    />
    
    <Button
            android:id="@+id/button7"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_below="@id/button"
            android:layout_toLeftOf="@id/button"
            android:background="#fe0000"
    />
    
    <Button
            android:id="@+id/button8"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_toRightOf="@id/button7"
            android:layout_below="@id/button"
            android:background="#483D8B"
    />
    
    <Button
            android:id="@+id/button9"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_below="@id/button"
            android:layout_toRightOf="@id/button8"
            android:background="#00ff01"
    />
    
    
    </RelativeLayout>
    

      

  • 相关阅读:
    记周日一次故障意外
    每周一坑-【3月第1周】
    关于计划任务的一个小需求-优化篇
    400篇博客的一个里程碑
    关于计划任务的一个小需求-实现篇
    关于计划任务的一个小需求
    微服务优雅停机研究
    NSUInteger设为负数
    Mac上运行第一个Flutter项目
    Vue filtersfilter、computed、methods、watch对比
  • 原文地址:https://www.cnblogs.com/zq542960954/p/11459344.html
Copyright © 2011-2022 走看看