自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 版本更新工具类

** * 版本更新工具类 * * @author liujianang */ public class VersionUtils { @SuppressLint("StaticFieldLeak") private static Activity context; private boolean isFromSplash; private boolean isFromMain; private static final int sleepTime = 500...

2021-03-15 14:45:54 352

原创 自定义注解绑定控件+点击事件

ContentView @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface ContentView { int value(); } BindView @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FI...

2018-12-25 20:38:35 246

原创 ToolBar

1.设置ToolBar 布局 2.创建menu文件,写menu文件,设置标题右上角的文字以及图片 3.设置style.xml 写入右上角文字的颜色以及字体大小 4.在Activity里面设置标题,以及引入menu文件 5.展示 第一步: <android.support.v7.widget.Toolbar     android:id="@+id/toolBar"     and...

2018-12-20 16:35:28 81

原创 第三方高德

高德第三方 1.申请key值 https://lbs.amap.com/api/android-sdk/guide/create-project/android-studio-create-project?tdsourcetag=s_pcqq_aiomsg 2.权限 3.引入jar包及相应的配置 4.配置清单文件 5.配置build android { compileSdkVersion...

2018-12-20 16:32:03 132

原创 时间转换

long browseTime = bean.getBrowseTime(); GregorianCalendar gc = new GregorianCalendar(); String s = String.valueOf(browseTime); gc.setTimeInMillis(Long.parseLong(s)); SimpleDateFormat df = new SimpleDa...

2018-12-20 16:25:08 71

原创 Fresol工具类封装

public class FresoiUrl { public static Context mContext; public static void inisliza(Context context) { mContext =context; //自定义缓存路径 DiskCacheConfig.Builder builder ...

2018-11-30 11:03:13 97

原创 banner轮播

       private ArrayList<String> list_path; private ArrayList<String> list_title;     //放图片地址的集合 list_path = new ArrayList<>(); //放标题的集合 list_title = new ArrayList<>(); ...

2018-11-27 08:42:11 96

原创 自定义圆形进度条

public class MainActivity extends AppCompatActivity implements View.OnClickListener { private Button mTiao; private float progress = 0; private ProgressUser mProgressUser; //发送Handle...

2018-11-23 08:15:59 85

原创 自定义流失布局(阶梯)

public class JieTiViewGroup extends ViewGroup {     public JieTiViewGroup(Context context) {         this(context,null);     }     public JieTiViewGroup(Context context, AttributeSet attrs) {       ...

2018-11-22 17:00:51 94

原创 幸运转盘

public class ChoujiangView extends View implements View.OnClickListener {     private int screenWidth;//屏幕宽度     private int screenHeight;//屏幕高度     private int centerX;     private int centerY;     ...

2018-11-22 16:59:11 138

原创 自定义空间 跑马灯

  android中实现跑马灯有三种方式 第一种,比较简单,直接用textView来实现。 第一步 : 布局   自定义控件 目录 android中实现跑马灯有三种方式 第一种,比较简单,直接用textView来实现。       <com.baway.gjx.paomadeng.TextPao android:singleLine="true" a...

2018-11-08 14:11:48 127

空空如也

空空如也

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

TA关注的人

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