- 博客(11)
- 资源 (23)
- 收藏
- 关注
转载 android 毛玻璃效果工具类
package com.example.administrator.text2.util;import android.content.Context;import android.graphics.Bitmap;import android.support.v8.renderscript.Allocation;import android.support.v8.renderscript....
2018-04-28 10:57:59 396
原创 工具类(bitmap与drawable)
//bitmap转换drawablepublic Drawable bitmapToDrawable(Bitmap bitmap) { BitmapDrawable bd = new BitmapDrawable(getResources(),bitmap); return bd;}//drawable转换成 bitmappublic static Bitmap drawableT...
2018-04-27 17:25:34 156
原创 styles.xml---------v7.无标题状态栏
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item nam
2018-04-26 13:16:09 159
原创 android 获取资源文件 r.drawable中的图片转换为drawable、bitmap
1、Resources resources = mContext.getResources();Drawable drawable = resources.getDrawable(R.drawable.a);imageview.setBackground(drawable);2、Resources r = this.getContext().getResources();Inputstream i...
2018-04-16 16:20:21 5605 1
转载 获得当前背景
Drawable bg= getBackground(); //bg包括color和Drawable if (bg instanceof ColorDrawable) { ColorDrawable colordDrawable = (ColorDrawable) bg; int color = colordDrawable...
2018-04-16 14:04:10 167
原创 全局Toast工具类 --连续toast提示时取消上一个toast
package com.example.administrator.test1.util;import android.content.Context;import android.widget.Toast;/** * Created by xw_z on 2018/3/27 0027. */public class ToastUtil { /** * Toast实例,用于对本页出现的所有T...
2018-04-15 14:25:23 3229
转载 Android RelativeLayout 属性
// 相对于给定ID控件android:layout_above 将该控件的底部置于给定ID的控件之上;android:layout_below 将该控件的底部置于给定ID的控件之下;android:layout_toLeftOf 将该控件的右边缘与给定ID的控件左边缘对齐;android:layout_toRightOf 将该控件的左边缘与给定ID的控件右边缘对齐; android:la...
2018-04-14 14:17:25 133
原创 view叠加显示
<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match
2018-04-14 13:45:31 864
转载 Android动画:alpha、scale、translate、rotate、set的xml属性及用法
转自http://blog.csdn.net/harvic880925/article/details/39996643一、概述Android的animation由四种类型组成:alpha、scale、translate、rotate,对应android官方文档地址:《Animation Resources》1、XML配置文件中alpha渐变透明度动画效果scale渐变尺寸伸缩动画效果transl...
2018-04-12 16:37:19 15891 3
转载 Android系统版本与API等级对应关系表
转自https://blog.csdn.net/wangsf1112/article/details/51545101安卓中由于不同版本的API会有一些变化,导致一些较早版本可能不支持新的方法,或者某些功能处理过程不太一样,需要判断当前版本然后进行适当的处理。那么,如何判断当前API的版本号呢?例如判断API版本号是否大于等于19: 如果 (Build.VERSION。SDK_INT ...
2018-04-12 11:04:04 613
转载 android studio好用的插件
1.Android ButterKnife Zelezny配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。使用方法:Ctrl+Shift+B选择图上所示选项2.Android Code Generator根据布局文件快速生成对应的Activity,F...
2018-04-07 16:00:47 1013
Android 毛玻璃工具类
2018-04-28
android全局context工具类
2018-04-15
Android全局Toast工具类
2018-04-15
软件测试初级介绍版本2
2018-04-03
3ds MaxVRay印象 效果图灯光与色彩的表现
2018-04-03
2016最新java面试题详细版
2017-09-10
java几种常用的设计模式
2017-09-10
23种JAVA设计模式和15种J2EE设计模式
2017-09-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人