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

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:background="#01ffff"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context="com.example.uuu.MainActivity" >
           <Button
            android:id="@+id/btn_one"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#000000"
            android:layout_centerInParent="true"/>
           <Button
            android:id="@+id/btn_two"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#fe1595"
            android:layout_below="@id/btn_one"
            android:layout_centerInParent="true"/>
            />
          <Button
            android:id="@+id/btn_three"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#4268e3"
            android:layout_above="@id/btn_one"
            android:layout_centerInParent="true"/>
         <Button
            android:id="@+id/btn_four"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#0001cb"
            android:layout_toRightOf="@id/btn_one"
            android:layout_centerInParent="true"/>
         <Button
            android:id="@+id/btn_five"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#00ff01"
            android:layout_toLeftOf="@id/btn_one"
            android:layout_centerInParent="true"/>
         <Button
            android:id="@+id/btn_six"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#fdfe00"
            android:layout_toRightOf="@id/btn_one"
            android:layout_above="@id/btn_one"
            android:layout_centerInParent="true"/>
        <Button
            android:id="@+id/btn_seven"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#fe0000"
            android:layout_toLeftOf="@id/btn_one"
            android:layout_above="@id/btn_one"
            android:layout_centerInParent="true"/>
         <Button
            android:id="@+id/btn_eight"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#006401"
            android:layout_toLeftOf="@id/btn_one"
            android:layout_below="@id/btn_one"
            android:layout_centerInParent="true"/>
          <Button
            android:id="@+id/btn_nine"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#ffffff"
            android:layout_toRightOf="@id/btn_one"
            android:layout_below="@id/btn_one"
            android:layout_centerInParent="true"/>
    </RelativeLayout>

  • 相关阅读:
    数据分析必须掌握的统计学知识!
    数据分析常用指标大全,熟记!
    Java编程基础阶段笔记 day 07 面向对象编程(上)
    Java编程基础阶段笔记 day04 Java基础语法(下)
    Java编程基础阶段笔记 day06 二维数组
    Java编程基础阶段笔记 day05 数组
    Java编程基础阶段笔记 day04 Java基础语法(下)
    Java编程基础阶段笔记 day03 Java基本语法(中)
    啥?虚拟现实技术已经应用到自动化仓库? | 基于unity实现的自动化仓库模拟监控系统
    交互设计书单--西南交大课程推荐
  • 原文地址:https://www.cnblogs.com/zqxxx/p/11458853.html
Copyright © 2011-2022 走看看