03 2022 档案

摘要:private boolean banClick; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); new Thread(new Runnable() 阅读全文
posted @ 2022-03-30 18:50 指切 阅读(88) 评论(0) 推荐(0) 编辑
摘要:<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/csl_target_select_clock_in_test" android:layout_width="0dp" android:layout_height= 阅读全文
posted @ 2022-03-17 17:08 指切 阅读(337) 评论(0) 推荐(0) 编辑
摘要:Collections.sort(list); // 顺序排列 Collections.shuffle(list); // 打乱list Collections.reverse(list); // 倒序排列 System.out.println(Collections.binarySearch(li 阅读全文
posted @ 2022-03-15 18:28 指切 阅读(642) 评论(0) 推荐(0) 编辑
摘要:去掉"MM.dd"格式的日期中的首位0 /** * 去掉"MM.dd"格式的日期中的首位0 * @param dateStr * @return */ public static String formatDateFirstBit(String dateStr) { String dateStr1 阅读全文
posted @ 2022-03-15 18:27 指切 阅读(278) 评论(0) 推荐(0) 编辑
摘要:android:screenOrientation="portrait" unspecified 默认值,由系统决定,不同手机可能不一致 landscape 强制横屏显示 portrait 强制竖屏显示 behind 与前一个activity方向相同 sensor 根据物理传感器方向转动,用户90度 阅读全文
posted @ 2022-03-15 18:26 指切 阅读(383) 评论(0) 推荐(0) 编辑
摘要:@(Android Studio 控件使用记录) TextView TextView 填充文本框 android:autoSizeMinTextSize="60sp" // 设置字体大小最小值 android:autoSizeMaxTextSize="60sp" // 设置字体大小最大值 andro 阅读全文
posted @ 2022-03-15 18:20 指切 阅读(103) 评论(0) 推荐(0) 编辑
摘要:在 onCreate() 方法中添加如下java代码: // 透明状态栏 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); // 透明导航栏 getWindow().addFlags(WindowMan 阅读全文
posted @ 2022-03-15 18:18 指切 阅读(249) 评论(0) 推荐(0) 编辑
摘要:以成语List为例 private void changeOrderOnce(){ // 拿到数据 List<Idiom> idiomList = idiomModel.getIdiomList() // 第一次进入时打乱成语顺序 if (PreferenceUtil.getString("orde 阅读全文
posted @ 2022-03-15 18:15 指切 阅读(72) 评论(0) 推荐(0) 编辑
摘要:String.split() String pronunciation = "zhī jǐn huí wén"; String[] pronunciationArray = pronunciation.split(" "); 阅读全文
posted @ 2022-03-15 18:14 指切 阅读(456) 评论(0) 推荐(0) 编辑
摘要:app级build.gradle添加 // 加载图片 implementation 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' // 阅读全文
posted @ 2022-03-15 18:00 指切 阅读(1381) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示