• 安卓第四周作业


    <?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">
       
       
        <Button
            android:id="@+id/a1"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_centerInParent="true"
            android:background="#FF7F24"
            />
       
        <Button
            android:id="@+id/a3"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_below="@id/a1"
            android:layout_alignRight="@+id/a1"
            android:background="#B8860B"
            />
       
        <Button
            android:id="@+id/a6"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_below="@id/a1"
            android:layout_toLeftOf="@+id/a1"
            android:background="#303030"
            />
       
        <Button
            android:id="@+id/a7"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_below="@id/a1"
            android:layout_toRightOf="@+id/a1"
            android:background="#0000FF"
            />
       
        <Button
            android:id="@+id/a8"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_toLeftOf="@id/a1"
            android:layout_alignBottom="@+id/a1"
            android:background="#A0522D"
            />
       
        <Button
            android:id="@+id/a9"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_toRightOf="@id/a1"
            android:layout_alignBottom="@+id/a1"
            android:background="#CD00CD"
            />
      
        <Button
            android:id="@+id/a5"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_above="@+id/a1"
            android:layout_toLeftOf="@+id/a1"
            android:background="#7CFC00" />
      
        <Button
            android:id="@+id/a4"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_alignBaseline="@+id/a5"
            android:layout_alignBottom="@+id/a5"
            android:layout_toLeftOf="@+id/a9"
            android:background="#969696" />
      
        <Button
            android:id="@+id/a2"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_alignBaseline="@+id/a4"
            android:layout_alignBottom="@+id/a4"
            android:layout_alignLeft="@+id/a9"
            android:background="#BF3EFF" 
     
  • 相关阅读:
    PHP实现同array_column一样的功能
    PHP使用FTP上传文件到服务器(实战篇)
    PHP计算今天、昨天、本周、本月、上月开始时间和结束时间
    PHP计算两个日期相差的年月日时分秒
    mysql命令行复制数据库
    Mysql中反引号和单引号的区别
    Linux 使用 selenium 环境配置
    SVN 提交文件报错:svn: E155015: Aborting commit:
    Django:Nginx 启动,无法加载样式,无法加载静态文件
    Django:Could not find backend 'django_redis.cache.RedisCache': cannot import name 'six'
  • 原文地址:https://www.cnblogs.com/dhy-com/p/14026367.html
Copyright © 2020-2023  润新知