自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 安卓使用ProgressBar实现菊花旋转Loading加载动画

ProgressBar配置  <ProgressBar android:id="@+id/loading" android:layout_width="30dp" android:layout_height="30dp" android:layout_gravity="center_horizontal" a...

2018-08-01 14:00:00 2888

原创 数字反转的数学方法

//pop operation: pop = x % 10; x /= 10; //push operation: temp = rev * 10 + pop; rev = temp;

2018-07-25 11:25:35 1426

原创 Activity是怎么启动的

1.首先在ActivityThread的主线程,生成一个ApplicationThread对象,这个对象式能够对外提供远程服务的,换句话说别的进程可以通过这个对象的本地代理与我这个ActivityThread的主线程(ApplicationThread对象)通信;   2.获取系统服务ActivityManager的本地代理对象   3.将生成的ApplicationThread对象通过A...

2018-07-24 14:50:24 214

原创 View的移动方式

Android 3.0以后加入x,y,translationX,translationY等参数。(x,y)表示为View在ViewGroup中左上角的x,y的值,translationX,translationY在用于平移一个View。默认是都为0,在调用了View的setTranslationX()/setTranslationY()之后发生改变。 //x,y,translationX,tr...

2018-07-19 14:22:13 182

原创 网络请求

public void requestAdList() { Net.HttpRequest req = new Net.HttpRequest(Net.HttpMethods.POST); req.setTimeOut(5000); req.setUrl(ip + "myt_file/newAdAction_openScreen.do"); ...

2018-05-02 16:26:17 112

原创 下载图片

private void downloadImg(final AdBean1 bean) { final File file = new File(dir + "ad.png" ); //if (file.exists()) return; HttpRequestBuilder requestBuilder = new HttpRequestBuil...

2018-05-02 16:19:45 129

原创 获取已安装的应用市场信息

ArrayList<String> pkgs = new ArrayList<String>(); Intent intent = new Intent(); intent.setAction("android.intent.action.MAIN"); intent.addCategory("android.intent....

2018-05-02 11:25:49 321

转载 android获取友盟渠道名以及获取application中的meta-data

/**    * 获取application中指定的meta-data    * @return 如果没有获取成功(没有对应值,或者异常),则返回值为空    */    public static String getAppMetaData(Context ctx, String key) {        if (ctx == null || TextUtils.isEmpty(key)) {...

2018-05-02 11:10:33 205

空空如也

空空如也

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

TA关注的人

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