自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (3)
  • 收藏
  • 关注

原创 Android 设置渐变左右

xml version="1.0" encoding="utf-8"?> xmlns:android="http://schemas.android.com/apk/res/android" > <gradient android:endColor="#6B1787" android:startColor="#921EB8" /> <padding

2017-08-28 17:36:05 1804

原创 android 设置控件背景颜色

holder.lay_item.setBackgroundResource(R.drawable.bankcardviolet); holder.lay_item.setBackgroundColor(mContext.getResources().getColor(R.color.black)); holder.lay_item.setBackgroundColor(Color.BLUE);

2017-08-28 17:34:16 895

转载 http://blog.youkuaiyun.com/dxxs19/article/details/53572833

一、PopupWindow:  Android 7.0之前,在指定位置弹出popupwindow可以用showAsDropDown(View anchor, int xoff, int yoff),showAtLocation(View parent, int gravity, int x, int y)。但在android 7.0上,用showAsDropDown()在popupwindo

2017-06-24 13:12:30 269

转载 Android经典面试题

,,面试题 1.     下列哪些语句关于内存回收的说明是正确的? (b ) A、 程序员必须创建一个线程来释放内存 B、内存回收程序负责释放无用内存 C、内存回收程序允许程序员直接释放内存 D、内存回收程序可以在指定的时间释放内存对象 2.     下面异常是属于Runtime Exception 的是(abcd)(多选)     A、ArithmeticException

2017-04-13 17:07:04 320

原创 java 冒泡排序

int num[] = {55,12, 34 ,52,66};         int temp;         for(int i = 0; i             for (int j = 0; j             {                 if(num[j]>num[j+1]){                     temp = num[j];   

2017-04-13 17:03:04 210

原创 java 插入排序

int num[] = {20,10, 30 ,50,60};         int temp;         for(int i = 0; i             for (int j = i;j>0;j--){                 if(num[j]>num[j-1]){                     temp = num[j-1];         

2017-04-13 16:57:17 172

转载 android支付宝支付开发过程

版权声明:本文为博主原创文章,未经博主允许不得转载。 支付宝开发流程: 1、在支付宝申请一个账号并开通开发者功能和移动支付的功能。 支付宝地址:https://auth.alipay.com/login/index.htm?goto=https%3A%2F%2Fopenhome.alipay.com%2Fdeveloper%2FisvApply.htm%3Fflag%3Daop 支付宝移动

2017-01-20 11:01:39 389

原创 android 获取版本信息

private void getAppVersionInfo(){     try {         PackageInfo pinfo = this.getPackageManager().getPackageInfo(                 this.getPackageName(), PackageManager.GET_CONFIGURATIONS);        

2017-01-09 17:30:34 263

原创 android获取分辨率和密度

private void getDisplayMetrics(){     WindowManager wm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE);     final int rotation = wm.getDefaultDisplay().getRotation

2017-01-09 17:27:59 349

原创 android 定时器的例子

初始化 timerHandler = new Handler(); serverRefresh = new ServerRefresh(); 1,启动定时器 private void setRefresh() {     if (timerHandler != null && serverRefresh != null) {         timerHandler .postDe

2017-01-03 15:52:57 422

原创 android 自定义广播

首先先定义一个广播action 广播actiong String flag = “android.intent.action.MyBorad” 1,接收广播 private void startReceiver() {     broadcastManager = LocalBroadcastManager.getInstance(getActivity());     intentF

2017-01-03 15:25:11 336

原创 android 自定义弹出窗口

首先自定义一个布局文件 http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:orientation="vertical"

2017-01-03 15:14:31 645

原创 android shape设置背景风格为圆角

http://schemas.android.com/apk/res/android">                                         android:topLeftRadius="10dp"                   android:topRightRadius="10dp"                 />

2017-01-03 14:27:20 429

原创 android 点击按键背景发生变化

btn_style.xml http://schemas.android.com/apk/res/android">             btn_pressed.xml http://schemas.android.com/apk/res/android">                                           

2017-01-03 14:05:29 380

转载 FragmentActivity和Activity的区别

Android API文档: FragmentActivity is a special activity provided in the Support Library to handle fragments on system versions older than API level 11. If the lowest system version you support is API l

2016-04-27 10:04:47 857

android 抓包工具

charles这个工具主要是用于android app开发,获取数据,进行数据分析。

2017-01-03

百度地图定位功能

一个简单的android百度定位功能

2017-01-09

android文件浏览器

android文件浏览器,便于查找用户所需要的资源

2015-07-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除