Android之旅——02

来源:互联网 发布:2016银行同业业务数据 编辑:程序博客网 时间:2024/06/03 20:08

分享一下新建Android Application Project目录下各个目录的作用。图片来自一个视频截图

另外记录一下学到的几个Android属性和控件
LinearLayout 线性布局
RelativeLayout 相对布局
AbsoluteLayout 绝对布局
FrameLayout 帧布局
TableLayout 表格布局
layout_width 布局宽度
layout_height 布局高度
match_parent 匹配父窗体
fill_parent 填满父窗体
wrap_parent 包裹内容
orientation 朝向,排列方式
vertical 垂直排列
horizontal 水平排列

TextView 文本框
Button 按钮
EditText 文本输入框
ImageView 图像控件
Checkbox 单选框
RadioGroup/RadioButton 多选框
text 文本内容
@ 引用
@string/ 引用字符串
src=”@drawable/” 前景图
background=”@drawable/” 背景图
checked 如果是true,默认选中
id 唯一标志

再记录一下更改Eclipse背景色的设置步骤
对于长时间使用电脑编程的人来说,柔和的背景色会缓解眼疲劳,保护眼睛。
柔和的豆沙绿色向你推荐:色调:85,饱和度:123,亮度:205

包资源管理器设置步骤:更改Windows窗口颜色(右键个性化——窗口颜色——高级外观设置——项目——窗口——其他)
控制台的颜色更改:window–preferences–Run/Debug–Console–Backgroud color

0 0
原创粉丝点击