Android第1-2周作业
作业1:安装环境,截图编程界面,截图运行界面


作业2:九宫格
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rl_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#E0FFFF"
android:layout_margin="30dp"
android:orientation="horizontal">
<View
android:id="@+id/v_1"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#DDA0DD"
android:layout_centerInParent="true"/>
<View
android:id="@+id/v_2"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#FFC0CB"
android:layout_centerInParent="true"
android:layout_toRightOf="@+id/v_1"/>
<View
android:id="@+id/v_3"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#F8F8FF"
android:layout_centerInParent="true"
android:layout_toLeftOf="@+id/v_1"/>
<View
android:id="@+id/v_4"
android:layout_width="70dp"
android:layout_height="70dp"
android:background=" #6495ED"
android:layout_centerInParent="true"
android:layout_below="@+id/v_1"/>
<View
android:id="@+id/v_5"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#7FFFD4"
android:layout_centerInParent="true"
android:layout_below="@+id/v_1"
android:layout_toRightOf="@+id/v_4"/>
<View
android:id="@+id/v_6"
android:layout_width="70dp"
android:layout_height="70dp"
android:background=" #FAFAD2"
android:layout_centerInParent="true"
android:layout_below="@+id/v_1"
android:layout_toLeftOf="@+id/v_4"/>
<View
android:id="@+id/v_7"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#FA8072"
android:layout_centerInParent="true"
android:layout_above="@id/v_1"/>
<View
android:id="@+id/v_8"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#A9A9A9"
android:layout_centerInParent="true"
android:layout_above="@id/v_1"
android:layout_toRightOf="@+id/v_7"/>
<View
android:id="@+id/v_9"
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#7B68EE"
android:layout_centerInParent="true"
android:layout_above="@id/v_1"
android:layout_toLeftOf="@+id/v_7"/>
</RelativeLayout>

作业3:布局界面(QQ群截图)
<?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:id="@+id/rl_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp"
android:orientation="horizontal"> <View
android:id="@+id/v_1"
android:layout_width="match_parent"
android:layout_height="150dp"
android:background="#6495ED"
android:layout_alignParentTop="true"/>
<View
android:id="@+id/v_2"
android:layout_width="match_parent"
android:layout_height="150dp"
android:background="#9370DB"
android:layout_centerInParent="true"
android:layout_alignParentBottom="true"/>
<View
android:id="@+id/v_3"
android:layout_width="100dp"
android:layout_height="500dp"
android:background="#FFC0CB"
android:layout_below="@id/v_1"
android:layout_above="@id/v_2"
android:layout_alignParentLeft="true"
/>
<View
android:id="@+id/v_4"
android:layout_width="100dp"
android:layout_height="500dp"
android:background="#87CEFA"
android:layout_below="@id/v_1"
android:layout_above="@id/v_2"
android:layout_alignParentRight="true"/> </RelativeLayout>

作业3:制作登录界面(要求至少2个edittext,1个button,最好有一个imageview要求美观)
Android第1-2周作业的更多相关文章
- Android第五六周作业
1.返回键实现对话框弹出是否退出应用程序 package com.example.zuoye1; import androidx.appcompat.app.AlertDialog; import a ...
- 2017-2018-1 我爱学Java 第六七周 作业
团队六七周作业 完善版需求规格说明书 制定团队编码规范 数据库设计 后端架构设计 TODOList 参考资料 完善版需求规格说明书 <需求规格说明书>初稿不足之处: 1.开发工具写错 2. ...
- 2017-2018-2 1723《程序设计与数据结构》第十一周作业 & 实验三 & (总体)第三周结对编程 总结
作业地址 第十一次作业:https://edu.cnblogs.com/campus/besti/CS-IMIS-1723/homework/1933 (作业界面已评分,可随时查看,如果对自己的评分有 ...
- 2017-2018 第一学期201623班《程序设计与数据结构》-第2&3周作业问题总结
一.作业内容 第二周作业 http://www.cnblogs.com/rocedu/p/7484252.html#WEEK02 第三周作业 作业一定按教学进程中的模板提交 本周学习任务 点评结对同学 ...
- 2017-2018-1 Java小组-1623 第二周作业
2017-2018-1 Java小组-1623 第二周作业 关于游戏软件的问题 讨论结果 20162301张师瑜 20162305李昱兴 20162306陈是奇 20162308马平川 2016231 ...
- 2017-2018-1 JaWorld 第三周作业
2017-2018-1 JaWorld 第三周作业 团队展示 队员学号 队名 团队项目描述 队员风采 团队的特色 团队合照 团队初步合作 前两周的反思与总结 需要改进的地方 团队选题 *采访老师或有开 ...
- 2017-2018-1 JAVA实验站 第二周作业
2017-2018-1 JAVA实验站 第二周作业 小组成员: 组长 20162318张泰毓 成员 20162303石亚鑫 20162304张浩林 20162307张韵琪 20162321王彪 201 ...
- 2017-2018-1 JAVA实验站 第三周作业
2017-2018-1 JAVA实验站 第三周作业 团队展示 队名 JAVA实验站 拟作的团队项目描述 (2048)增加其他模式,使得2048更加丰富多彩 团队的首次合照 团队的特色描述 团队内部很团 ...
- JAVA第三周作业(从键盘输入若干数求和)
JAVA第三周作业(从键盘输入若干数求和) 在新的一周,我学习了JAVA的IO编程.下面的代码实现了从键盘输入若干数求和的目标.import java.util.Scanner; public cla ...
随机推荐
- 7月3日 Django 头像预览、用户上传文件操作、logging、debug_tool_bar
1. 注册功能 1. 头像预览 //头像预览 $('#id_avatar').change(function () { console.log(this.files[0]) //找到选中的头像文件 v ...
- 安装配置Snort和barnyard2
1.安装依赖包 yum install –y gcc flex bison zlib* libpcap* tcpdump gcc-c++ zlib* libdnet libdnet-devel pcr ...
- python练习册 每天一个小程序 第0008题
1 # -*-coding:utf-8-*- 2 __author__ = 'Deen' 3 ''' 4 题目描述: 5 一个HTML文件,找出里面的正文. 6 7 思路: 8 利用Beautiful ...
- CF1500D Tiles for Bathroom (递推+大讨论)
题目大意:给你一个n*n的矩阵,现在问对于每个k\le n,求出所有k*k的子矩阵中,元素种类数不超过q的矩阵个数,n\le 1500, q\le 10 先考虑最暴力的做法: 对于每个格子,求出以它为 ...
- ES6中对象新增的方法
属性的简洁表示法 ES6 允许在大括号里面直接写入变量和函数,作为对象的属性和方法.这样的书写更加简洁. const foo = 'bar'; const baz = { foo }; console ...
- SublimeText 建立构建Node js系统
Sublime Text 3 构建系统:https://www.sublimetext.com/docs/3/build_systems.html 注意: 文档中出现的 shell_cmd 和 cmd ...
- Redis String Type
Redis字符串的操作命令和对应的api如下: set [key] [value] JedisAPI:public String set(final String key, final String ...
- 在虚拟机里面运行java程序
首先输入vi在里面写一个java程序 然后再查找jdk 复制jdk名字 然后安装jdk 安装完之后输入Javac加你创建的文件名 然后再输入Java 和文件名(这个不要加后缀)然后就打印出来了
- HTML 5中的输出元素是什么?
当你需要计算两个输入的结果并将结果放到一个标签里的时候,就需要输出元素了.比如你有两个文本框(参见下图),你想要让这些文本框数字相加,然后输出给标签. 下面就是如何使用HTML 5代码输出元素. &l ...
- 在 centos6 安装 MySQL5.7 官方文档
Adding the MySQL Yum Repository First, add the MySQL Yum repository to your system's repository list ...