自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 保留小数

String applicants = list.get(position).applicants;double v = Double.parseDouble(applicants);double v1 = v / 10000;String format = String.format("%.2f", v1);

2018-12-27 11:59:03 170

原创 好用的加载框

git地址  https://github.com/gittjy/LoadingDialog先导入依赖LoadingDailog dialog;/** * 显示 */public void showOnlyDialogLoadding() { if (dialog == null) { LoadingDailog.Builder loadBuilder = ...

2018-12-26 16:51:50 476

原创 给TextView添加部分内容可点击的两种实现方式

第一种://点击后的背景颜色(HighLightColor)属于TextView的属性,//Android4.0以上默认是淡绿色,低版本的是黄色。解决方法就是通过重新设置文字背景为透明色textView.setHighlightColor(getResources().getColor(android.R.color.transparent));SpannableString span...

2018-12-19 11:47:41 1957

原创 EventBus的简单使用

1.添加依赖   implementation 'org.greenrobot:eventbus:3.1.1'2.我们最好写一个事件类public class EventMessage {    private int type;    private String message;    public EventMessage(int type, String message)...

2018-12-17 16:08:57 184

原创 可移动的悬浮框

首先把git地址写出来:https://github.com/yhaolpz/FloatWindow以下代码只是简单的实现以下,具体它的属性去git中查看ImageView imageView = new ImageView(MainActivity.this);imageView.setImageResource(R.drawable.ic_launcher_background);...

2018-12-10 15:20:24 383

原创 用popuwindow时背景变暗和还原切换

public void light(float t){ WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = t; getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); getWindow().se...

2018-12-05 15:59:04 192

空空如也

空空如也

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

TA关注的人

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