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:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context=".MainActivity" >
    
       <Button
            android:id="@+id/button1"
            android:layout_centerInParent="true"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#000000"
            android:text=""/>
        
        <Button
            android:id="@+id/button2"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#00FF00"
            android:layout_toLeftOf="@+id/button1"
            android:layout_centerVertical="true"
            android:text=""/>
        
        <Button
            android:id="@+id/button3"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#ff0000"
            android:layout_above="@+id/button1"
            android:layout_centerHorizontal="true"
            android:text=""/>
        
        <Button
            android:id="@+id/button4"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#ff00ff"
            android:layout_above="@+id/button2"
            android:layout_toLeftOf="@+id/button3"
            android:layout_centerHorizontal="true"
            android:text=""/>
        
        <Button
            android:id="@+id/button5"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#00fff0"
            android:layout_below="@+id/button1"
            android:layout_centerHorizontal="true"
            android:text=""/>
        
        <Button
            android:id="@+id/button6"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#ffff00"
            android:layout_below="@+id/button2"
            android:layout_toLeftOf="@+id/button5"
            android:layout_centerVertical="true"
            android:text=""/>
        
        <Button
            android:id="@+id/button7"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#8f00"
            android:layout_toRightOf="@+id/button1"
            android:layout_centerVertical="true"
            android:text=""/>
    
        <Button
            android:id="@+id/button8"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#0000FF"
            android:layout_above="@+id/button7"
            android:layout_toRightOf="@+id/button3"
            android:layout_centerHorizontal="true"
            android:text=""/>
    
        <Button
            android:id="@+id/button9"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:background="#8800ff00"
            android:layout_below="@+id/button7"
            android:layout_toRightOf="@+id/button5"
            android:layout_centerHorizontal="true"
            android:text="" />
        
    </RelativeLayout>

     

    2. 

  • 相关阅读:
    Markdown语法
    window环境下获取python安装的路径
    JS 获取当天所在月的第一天的日期,最后一天日期,所在周的每天的日期,时间,所在每月日期,时间的计算
    Vue中父组件向子组件echarts传值问题
    echarts修改X、 Y坐标轴字体的颜色
    Ultibo--树莓派嵌入式系统开发工具
    mORMot使用synDBDataSet时字段类型不正确引起的问题
    UNIGUI接收普通消息和被动回复用户消息
    unigui验证微信服务器的有效性
    unigui不是单个网页相应的链接,而是整体Web Application,如何把webApp的子功能映射到微信公众号菜单?
  • 原文地址:https://www.cnblogs.com/3469656421aixz/p/13713187.html
Copyright © 2011-2022 走看看