出现java.lang.NoSuchFieldError: No static field abc_ic_ab_back_mtrl_am_alpha of type I in class Landroid/support/v7/appcompat/R$drawable问题, 通过网上查找问题,发现是 ...
分类:
移动开发 时间:
2017-02-10 15:38:13
阅读次数:
1229
帧动画 drawable animation 帧动画 drawable animation 帧动画 drawable animation 通过xml文件声明一个帧动画 通过xml文件声明一个帧动画 ①在res目录下创建一个drawable目录 把用到的图片资源放到这个目录下 并且创建一个xml文件 ...
分类:
移动开发 时间:
2017-02-08 23:01:28
阅读次数:
270
首先看一下界面: AppInfo.java 这是一个javabean ...
分类:
移动开发 时间:
2017-02-08 12:48:17
阅读次数:
324
前言项目中有使用到水印效果,如下图所示。在实现过程中,最终选用ItemDecoration来实现,其中有两大步骤:自定义Drawable来完成水印图片、使用ItemDecoration来布局水印。De...
分类:
其他好文 时间:
2017-02-05 13:07:03
阅读次数:
203
来自:http://android.tgbus.com/Android/tutorial/201105/353458.shtml Android 自动生成的R类 来自:http://android.tgbus.com/Android/tutorial/201105/353458.shtml Andr ...
分类:
移动开发 时间:
2017-02-01 11:51:39
阅读次数:
241
private final WindowManager.LayoutParams mParams = new WindowManager.LayoutParams(); public void showToast(String incomingNumber) { final WindowManage... ...
分类:
其他好文 时间:
2017-01-26 01:05:43
阅读次数:
180
Android包含三种动画:View Animation, Drawable Animation, Property Animation(Android 3.0新引入)。 1、View Animation:也就是所说的Tweened Animation(补间动画)。View Animation分为四 ...
分类:
移动开发 时间:
2017-01-22 12:14:24
阅读次数:
190
this is the problem with latest adt that is 20.0.3. you can instead rename the *.9.png to *.png and start working. i think this is the bug with the ad ...
分类:
移动开发 时间:
2017-01-21 18:31:57
阅读次数:
429
背景+波纹对于有边界限制的Ripple,我们就需要给他提供一个范围,即添加一个item标签。如果在一个ripple标签中,添加一个item标签,在item中添加如下属性:【android:drawable="@color/***"】水波效果会限定在本身矩形区域内部【android:drawable=... ...
分类:
其他好文 时间:
2017-01-12 22:44:10
阅读次数:
492
1、画虚线,实线: 建立dotted_line_gray.xml文件放在drawable文件夹下面。 android:shape="line" 可以修改你想要的形状 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http:/ ...
分类:
移动开发 时间:
2017-01-07 20:57:07
阅读次数:
214