随笔分类 -  android

android-support-v7-appcompat下载
摘要:http://download.csdn.net/detail/u010556601/7449661 将压缩包解压,放入sdk\extras\android\support\v7目录下 在eclipse右击项目 阅读全文

posted @ 2014-06-05 11:26 lialzm 阅读(2375) 评论(0) 推荐(0)

android使用apktool反编译出现Input file (d:\t) was not found or was not readable
摘要:Input file (d:\t) was not found or was not readable 出现这个错误是因为apktool压缩包下载错误,我是下成首页的那个压缩包了 正确下载地址:https://code.google.com/p/android-apktool/downloads/list 如果是windows系统下载这两个包 解压下载下来的两个包,将里面的文件放到同一个文件夹下... 阅读全文

posted @ 2014-05-23 00:01 lialzm 阅读(6472) 评论(0) 推荐(0)

android 设置背景为空(透明)
摘要:在给控件设置背景时像ps那样的背景透明 在3.0以下可以使用 imageView.setBackgroundResource(android.R.id.empty);但是这个方法在3.0以上会出现ERROR/AndroidRuntime(xxxxx): Caused by: android.content.res.Resources$NotFoundException: File from dra... 阅读全文

posted @ 2014-05-16 00:06 lialzm 阅读(3353) 评论(0) 推荐(0)

ImageView加ImageSwitch制作图片浏览器
摘要:Main/** 图片浏览器*/public class MainActivity extends Activity implements ViewFactory{private Gallery gallery;private ImageSwitcher imageSwitcher;private int[] imageid=new int[]{R.drawable.ic_launcher,R.drawable.ic_launcher,R.drawable.ic_launcher,R.drawable.ic_launcher,R.drawable.ic_launcher,R.drawable.i 阅读全文

posted @ 2013-11-07 21:11 lialzm 阅读(573) 评论(0) 推荐(0)

安卓仿制新浪微博(一)之OAuth2授权接口
摘要:这里需要用到请求授权(authorize)以及获取授权(access_token)第一步:将新浪的sdk放在src/libs下面二://创建方法实现authorizepublic void getauthorize(){//获取实例//实例化的方法一般有三种//1.最常见的通过new;2.通过getinstence;3.通过工厂(Facetory)Weibo weibo=Weibo.getInstence();//里面有三个参数.String appKey, String redirectUrl, String aScope,//分别是你应用的appKey,网址,想要获取的权限可以把这些属性写 阅读全文

posted @ 2013-08-21 00:09 lialzm 阅读(1514) 评论(0) 推荐(2)

安卓handler.post问题
摘要:1 protected void onCreate(Bundle savedInstanceState) { 2 super.onCreate(savedInstanceState); 3 setContentView(R.layout.activity_main); 4 btn = (Button) findViewById(R.id.button1); 5 progressBar = (ProgressBar) findViewById(R.id.progressBar1); 6 7 btn... 阅读全文

posted @ 2013-06-25 15:08 lialzm 阅读(547) 评论(2) 推荐(0)

导航