android cookbook
来源:互联网 发布:淘宝小号批量购买 编辑:程序博客网 时间:2024/06/16 07:01
这篇博文将持续更新,主要是介绍一些android中的小知识点,就把它当做cookbook吧。
2 android studio 不能正常打开问题解决方法
很多网友和我一样,当google I/O大会宣布了android studio开发工具,怀着好奇心和激情,迫不及待的在android developer上面下载了android studio,下载安装完成后却发现打不开。这里我估摸着各位网友和我一样用的是windows的产品,其实这是android studio安装文件的一个bug,解决方法是需要我们自己动手配置一下。网上很多网友也贡献了很多种方法,但是写得太难理解。下面我给大家介绍一种方法。
中文操作系统:
打开开始菜单(左下角)
>计算机>系统属性(左上角)>高级系统设置>高级C:\Program Files\Java\jdk1.7.0_21
好了,你重新点击android studio 图标就可以了。另外接下来我会写一系列关于这个工具开发android的文章,欢迎大家关注
1 match_parent and fill_parent
我们设置视图上面的组件时,经常要碰到这两个个设置点 fill_parent ,wrap_content.到了android SDK2.2(API Level8)后新增了一个match_parent,很多网友都有点朦胧,因为fill_parent和match_parent的效果完全一样。下面我们来看看这段代码:
fill_parent -1 The view should be as big as its parent (minus padding). This constant is deprecated starting from API Level 8 and is replaced by match_parent.
match_parent -1 The view should be as big as its parent (minus padding). Introduced in API Level 8.
wrap_content -2 The view should be only big enough to enclose its content (plus padding).
这样我们可以清晰的看到fill_parent和wrap_content都定义为-1,很显然显示的效果就是一样的了。这样我们就姑且把match_parent当做fill_parent一个新的别名吧,或许android认为这样比较符合它的逻辑吧。
- android cookbook
- Android Cookbook
- Android Build Cookbook
- The.Android.Developers.Cookbook
- Cookbook
- cookbook
- ANDROID Porting系列三、Build Cookbook
- Android内部机制(Book)--Android Internals - A Confectioner's CookBook
- Android内部机制(Book)--Android Internals - A Confectioner's CookBook
- JUnit Cookbook
- Snort Cookbook
- C++ Cookbook
- XSLT Cookbook
- SQL Cookbook
- C# Cookbook
- Eclipse Cookbook
- Java Cookbook
- AspectJ Cookbook
- HBase技术介绍
- window下使用wireshark远程抓包简介
- 康托展开
- poj 2263 重型运输
- Eclipse for Python with plugin not online
- android cookbook
- Magick++ 6.8.5在MFC中的使用
- Peoplecode to Create BI publisher XML and XSD Data source file.
- dojo异步编程 dojo/Deferred
- 几个随机算法
- service archiver Error : Class not found
- JAVA连接DB2
- 项目记录
- 如何安装gcc