自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (5)
  • 收藏
  • 关注

转载 scaleType属性

Android ImageView的scaleType属性与adjustViewBounds属性2014-11-03      1 个评论      收藏    我要投稿ImageView的scaleType的属性有好几种,分别是matrix(默认)、center、centerCrop、centerInside、fitCenter、fit

2017-02-24 18:21:01 206

原创 上下拉老式控件

import android.content.Context;import android.util.AttributeSet;import android.view.Gravity;import android.view.LayoutInflater;import android.view.View;import android.view.animation.Animatio

2017-02-22 10:28:22 188

原创 图标在按钮中部显示以及emoji表情限制

Drawable drawable3 = getResources().getDrawable(R.drawable.shenhe_ok03);drawable3.setBounds(0, 0, drawable3.getMinimumWidth(), drawable3.getMinimumHeight());jieshou.setCompoundDrawables(drawable3,

2017-02-22 09:25:57 717

原创 写入本地和请求网络

package com.school.utils;import java.util.Map;import android.annotation.SuppressLint;import android.content.Context;import android.content.SharedPreferences;@SuppressLint({ "WorldRea

2017-02-21 10:42:34 303

原创 应用更新

package com.school.utils;import java.io.File;import java.io.FileOutputStream;import java.io.InputStream;import java.net.URL;import java.net.URLConnection;import com.school.thesis.R

2017-02-21 10:41:38 251

原创 文件下载封装

文件下载import java.io.File;import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import java.net.URLConnection;import java.net.URLDecoder;import java.net.

2017-02-21 10:40:19 399

原创 集合转为字符串

public static String listToString(List stringList) {if (stringList == null) {return null;}StringBuilder result = new StringBuilder();boolean flag = false;for (String string : stringList) {

2017-02-21 10:38:56 365

原创 一些关于当前时间的限制

//時間對比当前private int timeCompare(String s1) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");String s2 = sdf.format(new Date());SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"

2017-02-21 10:36:19 342

原创 design的常用样式

TextInputLayout(文本输入布局)、TabLayout(选项卡布局)、Snackbar、FloatingActionButton(浮动按钮)、NavigationView(导航视图)、AppBarLayout(应用程序栏布局)、CoordinatorLayout(协作布局)、CollapsingToolbarLayout(折叠工具栏布局)

2017-02-10 15:56:41 241

原创 动效的魔板大全展示

美丽的

2017-02-10 15:42:37 434

转载 【Android】升级Gradle版本(Android Studio)

step1打开一个项目,在Studio中选择Project的视图,找到目录gradle\wrapper\gradle-wrapper.properties这个文件。打开可以看到以下内容目录gradle-wrapper.properties直接看最后一行,可以看到当前版本是2.4Step2若需要升级到Gradle2.10,只要将

2017-02-09 17:02:54 13551

原创 gradle对应下载大全

http://services.gradle.org/distributions点击打开链接

2017-02-09 15:35:26 264

原创 com.github.dcendents:android-maven-gradle-plugin:1.5版本对应

Gradle Android Maven pluginModification to the standard Maven plugin to be compatible with android-library projects (aar).UsageTo use the android-maven-gradle-plugin, just apply the plug

2017-02-09 11:54:30 15469 2

联系人列表的demo

侧面用recycleview写的,点击后悬浮出首字母。不过是静态数据,可以接入。

2018-04-12

字母城市列表

将城市列表展示

2017-05-18

安装包的数字签名

打包专用

2017-04-19

中国省县市的json

中国省县市的json

2017-03-22

wpdem在Service中的使用

对service类的使用有帮助

2017-03-21

空空如也

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

TA关注的人

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