- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 TabLayout自定义标题View(setCustomView)
1、创建自定义Viewpublic View getTabView() { View tabView = LayoutInflater.from(mContext).inflate(R.layout.tab_red_dot_layout, null); //设置相关显示 tabView return tabView;}2、设置给TabLayout tablayout.getTabAt(0).setCustomView(getTabView());3、滑动、点击
2020-06-14 22:06:57
2479
翻译 谷歌Gson需要获取某个键的值
JsonObject returnObj = new JsonParser().parse(content).getAsJsonObject();int error_code = returnObj.get("error_code").getAsInt();
2019-06-04 10:46:13
1741
2
原创 FFmpegMediaMetadataRetriever 获取指定视频帧图片
compile "com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14"/** * 获取视频指定微秒处的帧图片 * url 网络url *timeUs 微秒 1秒=1000毫秒=1000000微秒 */private Bitmap GetFramePictures(String url,long timeUs)...
2018-07-25 17:42:31
1920
原创 App 防止 Fiddler、Charles等代理工具 抓包
/** * 判断是APP是否使用代理 * @param context * @return */public static boolean isWifiProxy(Context context) { final boolean IS_ICS_OR_LATER = Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM...
2018-07-25 11:17:22
9111
1
翻译 DatePickerDialog 只显示年份/月份/日
DatePickerDialog datePicker=new DatePickerDialog(mContext, DatePickerDialog.THEME_HOLO_LIGHT,new DatePickerDialog.OnDateSetListener() { @Override public void onDateSet(DatePicker view, int yea...
2018-06-13 15:53:19
1121
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人