studyjams notes PS1 设计一个静态的app
来源:互联网 发布:淘宝修改标题必须下架 编辑:程序博客网 时间:2024/06/08 16:18
目标
学习设计一个view
学习合理放置view
学习设置view style
核心代码
<RelativeLayout xmlns:android="http://schemas.android.c3om/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" android:src="@drawable/androidparty" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="sans-serif-light" android:padding="20dp" android:text="Happy Birthday, Ben!" android:textColor="@android:color/white" android:textSize="36sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:fontFamily="sans-serif-light" android:padding="20dp" android:text="From, Lyla!" android:textColor="@android:color/white" android:textSize="36sp" /></RelativeLayout>
QA
Coffee Break Challenge - 1 - Coffee Break Challenge Question 1
Q: 如果我想在手机上显示一个图片,我该使用什么控件?
A: ImageView
Coffee Break Challenge - 2 - Coffee Break Challenge Question 2
Q: android:layout_weight / android:text / android:src 描述了什么
A: layout
Coffee Break Challenge - 3 - Coffee Break Challenge Question 3
Q: 用驼峰法重写 “I like practice sets the best”
A: ILikePracticeSetsTheBest
Coffee Break Challenge - 4 - Coffee Break Challenge Question 4
Q: 相对布局(RelativeLayout)和线性布局(LinearLayout)是什么?
A: 相对布局能让控件在相对参考系里布局,方向比线性自由,
而线性布局专注横向或者纵向布局控件。
Coffee Break Challenge - 5 - Coffee Break Challenge Question 5
Q: I always need to X and X my tags 我总是需要对我的标签做哪两件事情?
A: start and close it
Coffee Break Challenge - 6 - Coffee Break Challenge Question 6
Q: 两个导师的名字是什么?
A: Katherine 和 Kunal
Coffee Break Challenge - 7 - Coffee Break Challenge Question 7
Q: 代码挑错…
A: 21行,android:layout_weight=1,应该加引号为 android:layout_weight=“1”
Coffee Break Challenge - 8 - Coffee Break Challenge Question 8
Q: 这个 TextView 的宽度是?
A: TextView 的宽度是 350dp
Coffee Break Challenge - 9 - Coffee Break Challenge Question 9
Q: 让那个 Button 正确的显示在屏幕的下方
A:
android:layout_centerHorizontal=”true”
android:layout_alignParentBottom=”true”
Coffee Break Challenge - 10 - Coffee Break Challenge Question 10
Q: 使用给定的 XML 代码并且假定屏幕有 600dp 高,那么 Chai tea TextView 的高度是多少?
A: (600-200) *1 /4 , 高度是 100dp。
Coffee Break Challenge - 11 - Coffee Break Challenge Final Question
Q: 在为谁做这个咖啡?
A: Lyla Fujiwara
她的github在此:https://github.com/ceruleanotter
学习笔记截图
结尾
android 团队学习且行且珍惜
- studyjams notes PS1 设计一个静态的app
- studyjams notes 1B--width and height
- studyjams notes 1B-- layout weight
- StudyJams第一课的学习
- studyjams notes 1B-- relative layout + padding & margin
- 如何设计一个优秀的App?
- StudyJams-第03课_生日快乐APP+咖啡问答
- 如何设计一个app
- 我的bashrc - PS1
- 变量PS1的设置
- PS1环境变量的设置
- Notes的使用一个小窍门,Notes Open History
- Notes隐藏数据库设计应用的维护
- 最近设计的一个无人机app的界面
- 【网页设计】关于一个静态展示类网站的建立
- 怎么做一个纯粹的Android app UI 设计呢?
- 程序猿基于解决复杂问题设计的一个APP
- app只有一个activity的ui框架设计猜想
- 如何查看哪些期刊被SCI收录
- okhttp简单介绍
- windows机制下的游戏编程实例二
- cocos内存泄漏以及优化问题
- 10006---全文检索引擎Solr系列——Solr核心概念、配置文件
- studyjams notes PS1 设计一个静态的app
- 动态栈
- 如果你有微信企业号,申请企业微信很便捷
- 欢迎使用CSDN-markdown编辑器
- Linux下 进度条
- Tomcat学习笔记 catalina.bat & setclasspath.bat
- LeetCode Rotate Array
- 自己写的双色球系统,有兴趣的试试
- ACM刷题之HDU————Fibonacci