3 rookieForAndroid

尚未进行身份认证

我要认证

暂无相关简介

等级
TA的排名 14w+

多线程下载+断点续传

public class DownLoadFile{ private static final String SP_NAME = "download_file"; private static final String CURR_LENGTH = "curr_length"; private static final int DEFAULT_THREAD_COUNT = 4

2018-06-06 09:34:36

高仿英雄联盟能力分析效果

Polygonsview:package com.example.yujie.customview;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graph

2018-01-02 18:55:45

属性动画

/** * http://blog.csdn.net/lmj623565791/article/details/38067475 */public class MainActivity extends AppCompatActivity {    private ImageView imageView;    @Override    protected v

2017-12-20 09:48:47

MeasureUtil

public class MeasureUtil { //测量滑动距离(也可以尝试一下别的滑动控件,我没试过!) public static int getScrolledDistance(PullToRefreshRecyclerView pullToRefreshRecyclerView){ LinearLayoutManager layoutManager =

2017-12-20 09:31:44

PPTVLoading

public class PPTVLoading extends View{ private Paint paint1; private Paint paint2; //default color private int color1 = Color.parseColor("#ff0099cc"); private int color2 = Color.pa

2017-12-20 09:25:42

WindowsLoad

public class WindowsLoad extends View{ private float pi = (float) Math.PI; private String TAG = "WindowsLoad"; private Paint paint; private int R; private float circleR; privat

2017-12-20 09:21:06

PointToLineRotate

public class PointToLineRotate extends View{ private Paint paint; private float pi = (float) Math.PI; private float startAngle = 0; private float angle = 0; private float addAngle

2017-12-20 09:13:48

ManyCircle

public class ManyCircle extends View{ private Paint paint; private int maxRadius = 16; private ValueAnimator valueAnimator; private boolean init = false; private float radiu = 10;

2017-12-20 09:05:37

仿京东购物车加减数量的自定义View

NumberAddSubView:public class NumberAddSubView extends LinearLayout implements View.OnClickListener { private Button btn_sub; private Button btn_add; private TextView tv_num; private

2017-12-20 08:44:55

二维码

项目导入library或者gradle添加依赖;------------------------------------------------MainActivity:package com.dash.a06_qr_code;import android.content.Intent;import android.graphics.Bitmap;import an

2017-12-08 14:54:42

RecyclerView

listview:recyclerView.setLayoutManager(new LinearLayoutManager(FirstActivity.this,LinearLayoutManager.VERTICAL,false));gridview:recyclerView.setLayoutManager(new GridLayoutManager(FirstActivit

2017-12-08 09:50:05

自定义view超萌小炸弹

BombView:package com.example.a08_bomb;import android.animation.Animator;import android.animation.AnimatorListenerAdapter;import android.animation.AnimatorSet;import android.animation.ValueAni

2017-12-06 08:09:30

ViewFlipper上下翻滚轮播

?xml version="1.0" encoding="utf-8"?>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="40dp"> Linea

2017-12-04 20:55:29

获取系统时间

//定义时区,可以避免虚拟机时间与系统时间不一致的问题TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));Date date=new Date();Calendar cal=Calendar.getInstance();cal.setTime(date);int hour=cal.get(Calendar.HOU

2017-12-04 14:05:59

TextView文字滚动、变色

布局文件中:TextView android:id="@+id/myTextView" android:layout_gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_c

2017-12-02 15:29:00

自定义View绘制时钟

package com.example.a04_clockview.clockview;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.os.Handler;i

2017-12-02 08:13:58

自定义View绘制五星红旗

package com.example.a03_fivestarredredflag;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.Path;

2017-12-01 20:21:40

自定义View流式布局

FlowLayout:package com.example.a03_flowlayout.flowlayout;import android.content.Context;import android.util.AttributeSet;import android.view.View;import android.view.ViewGroup;import java.uti

2017-12-01 19:57:51

自定义View圆角ImageView

自定义View:package com.example.a04_circular_bead_imageview.circularbead;import android.annotation.SuppressLint;import android.content.Context;import android.content.res.ColorStateList;import and

2017-12-01 16:59:41

自定义View九宫格手势

首先来介绍一下这个自定义View:(1)这个自定义View的名称叫做 LockView ,继承自View类;(2)这个自定义View实现了应用中常见的九宫格手势解锁功能,可以用于保证应用安全;(3)用户可以自定义控件在不同状态下显示的颜色、什么情况算解锁成功、解锁成功或失败回调的方法等。  接下来介绍一下在这个自定义View中用到的技术点:(1)自定义属性;(2)在 onM

2017-12-01 14:28:08

查看更多

勋章 我的勋章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!