- 博客(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 423
原创 自定义注解绑定控件+点击事件
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 257
原创 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 110
原创 第三方高德
高德第三方1.申请key值https://lbs.amap.com/api/android-sdk/guide/create-project/android-studio-create-project?tdsourcetag=s_pcqq_aiomsg2.权限3.引入jar包及相应的配置4.配置清单文件5.配置buildandroid {compileSdkVersion...
2018-12-20 16:32:03 145
原创 时间转换
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 84
原创 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 115
原创 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 105
原创 自定义圆形进度条
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 98
原创 自定义流失布局(阶梯)
public class JieTiViewGroup extends ViewGroup { public JieTiViewGroup(Context context) { this(context,null); } public JieTiViewGroup(Context context, AttributeSet attrs) { ...
2018-11-22 17:00:51 106
原创 幸运转盘
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 170
原创 自定义空间 跑马灯
android中实现跑马灯有三种方式第一种,比较简单,直接用textView来实现。第一步 : 布局 自定义控件目录android中实现跑马灯有三种方式第一种,比较简单,直接用textView来实现。 <com.baway.gjx.paomadeng.TextPao android:singleLine="true" a...
2018-11-08 14:11:48 138
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人