• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






晓阳

一个程序员仅为工作写代码是不够的,TA还应该有一个分享的世界。
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页

2014年4月21日

android知识点duplicateParentState
摘要: android知识点duplicateParentState今天要做一个效果,组件RelativeLayout上有两个TextView,这两个TextView具有不同的颜色值,现在要的效果是,当RelativeLayout被点击时,整个item有高亮背景。同时这两个TextView要变色。就是父控件... 阅读全文
posted @ 2014-04-21 12:18 晓阳110 阅读(350) 评论(0) 推荐(0)
 

2014年2月21日

[项目总结]怎么获取TextView行数,为什么TextView获取行数为0?
摘要: 1 final TextView textView = new TextView(this); 2 ViewTreeObserver viewTreeObserver = textView.getViewTreeObserver(); 3 viewTreeObser... 阅读全文
posted @ 2014-02-21 09:18 晓阳110 阅读(929) 评论(0) 推荐(0)
 

2013年12月27日

android 防止R被混淆,R类反射混淆,找不到资源ID
摘要: 在Proguard.cfg中添加-keep class **.R$* {*; } 阅读全文
posted @ 2013-12-27 10:38 晓阳110 阅读(933) 评论(0) 推荐(0)
 

2013年8月19日

Android中Bitmap和Drawable
摘要: 一、相关概念1、Drawable就是一个可画的对象,其可能是一张位图(BitmapDrawable),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求,创建相应的可画对象2、Canvas画布,绘图的目的区域,用于绘图3、Bitmap位图,用于图的处理4、Matrix矩阵二、Bitmap1、从资源中获取Bitmap1 Resources res = getResources();2 Bitmap bmp = BitmapFactory.decodeResource(res, R.drawable.... 阅读全文
posted @ 2013-08-19 12:07 晓阳110 阅读(254) 评论(0) 推荐(0)
 

2013年8月15日

Android消除Toast延迟显示
摘要: Toast可以用来显示音量改变或者保存更新消息,如果用户一直点击,Toast会排队一个一个的,直到消息队列全部显示完,这样的效果显然是不好的,下面来看解决方法 Toast.makeText(activity, text, duration)每次会实例化一个Toast,所以 1 if (toast != null) 2 { 3 toast.setText(text); 4 toast.setDuration(duration); 5 toast.show(); 6 } else 7 { 8 toast = T... 阅读全文
posted @ 2013-08-15 11:18 晓阳110 阅读(818) 评论(0) 推荐(0)
 

2013年8月5日

gen already exists but is not a source folder. Convert to a source folder or rename it 的解决办法
摘要: 1. Right click on the project and go to "Properties" //鼠标右键点击项目,然后选中Properties 2. Select "Java Build Path" on the left //选择java Build Path 3. Open "Source" tab // 打开源文件的tab栏 4. Click "Add Folder..." //点击添加文件夹 5. Check "gen" folder and click Ok and Ok 阅读全文
posted @ 2013-08-05 20:18 晓阳110 阅读(324) 评论(0) 推荐(0)
 

2013年8月2日

android StrictMode
摘要: ========== 阅读全文
posted @ 2013-08-02 16:12 晓阳110 阅读(160) 评论(0) 推荐(0)
 

2013年7月26日

android 跳到应用市场给软件评分
摘要: 1 String packetName = this.getPackageName();2 Uri uri = Uri.parse("market://details?id=" + packetName);3 Intent intent = new Intent(Intent.ACTION_VIEW, uri);4 startActivity(intent); 阅读全文
posted @ 2013-07-26 09:52 晓阳110 阅读(556) 评论(0) 推荐(0)
 

2013年7月24日

minSdkVersion、targetSdkVersion、targetApiLevel的区别
摘要: 在AndroidMenifest.xml中,常常会有下面的语句: 在default.properties中,会看到下面的语句: target=android-10 如果是使用Eclipse的话,还可能会看到这样的警告: Attribute minSdkVersion (4) is lower than the project target API level (10) 那么,这里面的minSdkVersion、targetSdkVersion、maxSdkVersion、target API level四个数值到底有什么区别? minSdkVersion与maxSdkVersion比较容易理. 阅读全文
posted @ 2013-07-24 15:08 晓阳110 阅读(228) 评论(0) 推荐(0)
 
哪里可以下载支付宝demo或者sdk
摘要: http://club.alipay.com/read-htm-tid-9976972.html 这里有所有的demo和sdk包括移动产品的demo。在他的论坛里面呢 真心恶心啊。不放到主页。 阅读全文
posted @ 2013-07-24 14:45 晓阳110 阅读(514) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页