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>
    

      

  • 相关阅读:
    jq clone 克隆方法偶遇问题
    截取字符串加省略号
    瀑布流页面效果
    js 函数节流 jQuery throttle/debounce
    手机浏览页面touch操作,解决touch事件和浏览器滚动条冲突问题;zepto,swipe事件。
    touch 方向判断方法
    thinkPHP 导入栗子 (2)
    百度地图的使用实例-php+jq
    mac上配置react-native环境run-ios/run-android命令遇到的问题
    npm、cnpm、yarn 安装删除异同
  • 原文地址:https://www.cnblogs.com/zq542960954/p/11459344.html
Copyright © 2011-2022 走看看