2013年6月4日
摘要: http://blog.csdn.net/qq282133/article/details/7370467Shape Drawable这一类的shape定义在xml中file location:res/drawable/filename.xmlThe filename is used as the resource ID.(这个文件名作为资源id)compiled resource datatype:(复杂资源的数据类型)Resource pointer to aGradientDrawable.resource reference(资源参考):In Java:R.drawable.filen 阅读全文
posted @ 2013-06-04 10:32 eelephant 阅读(219) 评论(0) 推荐(0) 编辑
  2013年4月9日
摘要: 原文:http://developer.android.com/guide/components/fundamentals.html转载自:http://blog.csdn.net/yeshenyuege/article/details/7791306目录(?)[-]应用基础-Application Fundamentals应用组件-Application ComponentsActivities活动Services服务Content providers 内容提供者Broadcast receivers广播接收者激活组件-Activating Components清单文件-The Manife 阅读全文
posted @ 2013-04-09 09:58 eelephant 阅读(162) 评论(0) 推荐(0) 编辑
  2013年1月22日
摘要: 1.判断EditText没有数据的时候,代码为edit.getText().toString().equals("");2.布局需要图片和文字,其中图片在左对齐,而文字的宽度不固定。此时可以在中间设置一个view,置宽度为1.View Code 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height=" 阅读全文
posted @ 2013-01-22 15:18 eelephant 阅读(108) 评论(0) 推荐(0) 编辑
  2012年9月20日
摘要: 1.新浪微博换肤:从插件那里获取资源并拷到客户端文件下。比如下载使用“天蓝色”皮肤后,换肤的APK和删除APK,都不会影响到换肤效果。 阅读全文
posted @ 2012-09-20 16:19 eelephant 阅读(131) 评论(0) 推荐(0) 编辑
  2012年9月4日
摘要: 有时候,我们既需要定义StateListDrawable,又需要定义ShapeDrawable。比如说我们点击一个按钮让其背景随之改变,同时我们对按钮本身也做一些设置,比如圆角。此时我们在将StateListDrawable里添加ShapeDrawable即可。<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:dr 阅读全文
posted @ 2012-09-04 17:20 eelephant 阅读(240) 评论(0) 推荐(0) 编辑
摘要: ConstantsStringACCESS_CHECKIN_PROPERTIESAllows read/write access to the "properties" table in the checkin database, to change values that get uploaded.允许读写访问"properties"表在checkin数据库中,改值可以修改上传 StringACCESS_COARSE_LOCATIONAllows an application to access coarse (e.g., Cell-ID, WiFi) 阅读全文
posted @ 2012-09-04 15:24 eelephant 阅读(176) 评论(0) 推荐(0) 编辑
  2012年9月3日
摘要: 源自http://www.cnblogs.com/gzgg/archive/2012/02/18/2357545.htmlandroid EditText有个属性设置 android:inputType="?" 用来设置文本的类型,用于帮助输入法显示合适的键盘类型。有如下值设置:none、无值,View不可编辑text、默认值,文本textCapCharacters字母大小、textCapWords单词首字母大小、textCapSentences仅第一个字母大小、textAutoCorrect、textAutoComplete自动完成、textMultiLine多行输入、t 阅读全文
posted @ 2012-09-03 16:59 eelephant 阅读(165) 评论(0) 推荐(0) 编辑