作业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周作业的更多相关文章

  1. Android第五六周作业

    1.返回键实现对话框弹出是否退出应用程序 package com.example.zuoye1; import androidx.appcompat.app.AlertDialog; import a ...

  2. 2017-2018-1 我爱学Java 第六七周 作业

    团队六七周作业 完善版需求规格说明书 制定团队编码规范 数据库设计 后端架构设计 TODOList 参考资料 完善版需求规格说明书 <需求规格说明书>初稿不足之处: 1.开发工具写错 2. ...

  3. 2017-2018-2 1723《程序设计与数据结构》第十一周作业 & 实验三 & (总体)第三周结对编程 总结

    作业地址 第十一次作业:https://edu.cnblogs.com/campus/besti/CS-IMIS-1723/homework/1933 (作业界面已评分,可随时查看,如果对自己的评分有 ...

  4. 2017-2018 第一学期201623班《程序设计与数据结构》-第2&3周作业问题总结

    一.作业内容 第二周作业 http://www.cnblogs.com/rocedu/p/7484252.html#WEEK02 第三周作业 作业一定按教学进程中的模板提交 本周学习任务 点评结对同学 ...

  5. 2017-2018-1 Java小组-1623 第二周作业

    2017-2018-1 Java小组-1623 第二周作业 关于游戏软件的问题 讨论结果 20162301张师瑜 20162305李昱兴 20162306陈是奇 20162308马平川 2016231 ...

  6. 2017-2018-1 JaWorld 第三周作业

    2017-2018-1 JaWorld 第三周作业 团队展示 队员学号 队名 团队项目描述 队员风采 团队的特色 团队合照 团队初步合作 前两周的反思与总结 需要改进的地方 团队选题 *采访老师或有开 ...

  7. 2017-2018-1 JAVA实验站 第二周作业

    2017-2018-1 JAVA实验站 第二周作业 小组成员: 组长 20162318张泰毓 成员 20162303石亚鑫 20162304张浩林 20162307张韵琪 20162321王彪 201 ...

  8. 2017-2018-1 JAVA实验站 第三周作业

    2017-2018-1 JAVA实验站 第三周作业 团队展示 队名 JAVA实验站 拟作的团队项目描述 (2048)增加其他模式,使得2048更加丰富多彩 团队的首次合照 团队的特色描述 团队内部很团 ...

  9. JAVA第三周作业(从键盘输入若干数求和)

    JAVA第三周作业(从键盘输入若干数求和) 在新的一周,我学习了JAVA的IO编程.下面的代码实现了从键盘输入若干数求和的目标.import java.util.Scanner; public cla ...

随机推荐

  1. 内网渗透----使用mimikatz获取windows登陆口令

    使用mimikatz提取windows密码 以管理员运行后,可以随机打一些字符,进入如下界面 输入aaa::aaa,可展示所有模块: 可采用log命令,保存日志 获取hash与明文用户口令 privi ...

  2. mycat的基本介绍 看这一篇就够了

    1.前置知识 1.分布式系统 ​ 分布式系统是指其组件分布在网络上,组件之间通过传递消息进行通信和动作协调的系统.它的核心理念是让多台服务器协同工作,完成单台服务器无法处理的任务,尤其是高并发或者大数 ...

  3. luoguP4859 已经没有什么好害怕的了(二项式反演)

    luoguP4859 已经没有什么好害怕的了(二项式反演) 祭奠天国的bzoj. luogu 题解时间 先特判 $ n - k $ 为奇数无解. 为了方便下记 $ m = ( n + k ) / 2 ...

  4. Thymeleaf使用遇见的问题,如字符串不相等

    所属情况:内联JavaScript语言 当使用Thymeleaf取请求参数的值时,会出现数组符号包围值的问题,可通过[0]进行取出里面的字符串,取值之前需先判断值是否存在,不然会抛出索引0不存在问题 ...

  5. ArrayList 与 LinkedList 的不区别?

    最明显的区别是 ArrrayList 底层的数据结构是数组,支持随机访问,而 LinkedList 的底层数据结构书链表,不支持随机访问.使用下标访问一个元素, ArrayList 的时间复杂度是 O ...

  6. (stm32f103学习总结)—RTC独立定时器—实时时钟实验

    一.STM32F1 RTC介绍 1.1 RTC简介 STM32 的实时时钟( RTC)是一个独立的定时器. STM32 的 RTC 模 块拥有一组连续计数的计数器,在相应软件配置下,可提供时钟日历的 ...

  7. 【精】多层PCB层叠结构

    在设计多层PCB电路板之前,设计者需要首先根据电路的规模.电路板的尺寸和电磁兼容(EMC)的要求来确定所采用的电路板结构,也就是决定采用4层,6层,还是更多层数的电路板.确定层数之后,再确定内电层的放 ...

  8. python中PIL库的使用

    API参考 打开dos窗口,安装库: pip install pillow 很明显,图片有点大,咱们缩略一下: from PIL import Image im = Image.open(" ...

  9. the compatibility problem of ie

    ie8hack ie8下的兼容问题处理:背景透明,css3圆角,css3和jquery支持部分css3选择器(例如:nth-child),支持html5的语义化标签,媒体查询@media等. 在htm ...

  10. 用css动态实现圆环百分比分配——初探css3动画

    最近的小程序项目有个设计图要求做一个圆环,两种颜色分配,分别代表可用金额和冻结金额.要是就直接这么显示,感觉好像挺没水平??于是我决定做个动态! 在mdn把新特性gradients(渐变).trans ...