|
@@ -597,16 +597,16 @@ public class MainActivity extends BaseActivity implements PermissionUtil.OnReque
|
|
|
// initFragment();
|
|
|
|
|
|
// 改皮肤,
|
|
|
- ColorStateList tabColor = SkinUtils.getSkin(this).getTabColorState();
|
|
|
- for (RadioButton radioButton : Arrays.asList(mRbTab1, mRbTab2, mRbTab3, mRbTab4)) {
|
|
|
+// ColorStateList tabColor = SkinUtils.getSkin(this).getTabColorState();
|
|
|
+// for (RadioButton radioButton : Arrays.asList(mRbTab1, mRbTab2, mRbTab3, mRbTab4)) {
|
|
|
// 图标着色,兼容性解决方案,
|
|
|
- Drawable drawable = radioButton.getCompoundDrawables()[1];
|
|
|
- drawable = DrawableCompat.wrap(drawable);
|
|
|
- DrawableCompat.setTintList(drawable, tabColor);
|
|
|
- // 如果是getDrawable拿到的Drawable不能直接调setCompoundDrawables,没有宽高,
|
|
|
- radioButton.setCompoundDrawablesWithIntrinsicBounds(null, drawable, null, null);
|
|
|
- radioButton.setTextColor(tabColor);
|
|
|
- }
|
|
|
+// Drawable drawable = radioButton.getCompoundDrawables()[1];
|
|
|
+// drawable = DrawableCompat.wrap(drawable);
|
|
|
+// DrawableCompat.setTintList(drawable, tabColor);
|
|
|
+// // 如果是getDrawable拿到的Drawable不能直接调setCompoundDrawables,没有宽高,
|
|
|
+// radioButton.setCompoundDrawablesWithIntrinsicBounds(null, drawable, null, null);
|
|
|
+// radioButton.setTextColor(tabColor);
|
|
|
+// }
|
|
|
|
|
|
// 检查是否开启通知栏权限
|
|
|
checkNotifyStatus();
|