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="com.example.aaaaa.MainActivity" >
    
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
            
        <Button android:background="#000000" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:layout_centerVertical="true" android:layout_centerHorizontal="true" android:id="@+id/button"/>
    
        <Button android:background="#339900" android:layout_height="80dp" android:layout_width="80dp" android:layout_centerVertical="true" android:id="@+id/button3" android:layout_toLeftOf="@id/button"/>
    
        <Button android:background="#3300ff" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:layout_centerVertical="true" android:id="@+id/button4" android:layout_toRightOf="@id/button"/>
    
        <Button android:background="#ff00cc" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:id="@+id/button5" android:layout_above="@id/button" android:layout_alignLeft="@id/button"/>
    
        <Button android:background="#ffff00" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:id="@+id/button6" android:layout_toRightOf="@id/button5" android:layout_alignTop="@id/button5"/>
    
        <Button android:background="#ffffff" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:id="@+id/button7" android:layout_toLeftOf="@id/button5" android:layout_alignTop="@id/button5"/>
    
        <Button android:background="#3399ff" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:layout_centerHorizontal="true" android:id="@+id/button8" android:layout_below="@id/button"/>
    
        <Button android:background="#ff0033" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:id="@+id/button9" android:layout_toLeftOf="@id/button8" android:layout_alignTop="@id/button8"/>
    
        <Button android:background="#66ff00" android:layout_height="80dp" android:layout_width="80dp" android:text="" android:id="@+id/button10" android:layout_toRightOf="@id/button8" android:layout_alignTop="@id/button8"> </Button>
    </RelativeLayout>
  • 相关阅读:
    Shortcut key for WPF
    Make webclient support upload the large file which are larger than 1G
    Decodes a QuotedPrintable encoded string
    C# USB Detection winform and WPF
    [转] 线程同步
    C# x86应用x64系统上读取x64位应用的注册表
    CSS Sprites图片拼合生成器实现思路
    python 复制文件
    Resources: Tips of Notepad++
    ASP.net MVC与RESTful ROA的思想还是有点区别的
  • 原文地址:https://www.cnblogs.com/shenxiaoqi/p/11454791.html
Copyright © 2011-2022 走看看