|
|
@@ -17,7 +17,7 @@ import android.view.KeyEvent;
|
|
|
import android.view.View;
|
|
|
|
|
|
import com.bumptech.glide.Glide;
|
|
|
-import com.readystatesoftware.systembartint.SystemBarTintManager;
|
|
|
+import com.githang.statusbar.StatusBarCompat;
|
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
@@ -92,23 +92,8 @@ public abstract class ActivityBase extends AppCompatActivity {
|
|
|
}
|
|
|
findViewById(R.id.layout_app_bar).setPadding(0, ResourceUtil.getStatusBarHeight(), 0, 0);
|
|
|
|
|
|
- // FIXME: soft input resize not working
|
|
|
-// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
|
-// getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
|
|
|
-// WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
|
|
|
-// }
|
|
|
+ StatusBarCompat.setStatusBarColor(this, getResources().getColor(R.color.C80FFFFFF));
|
|
|
|
|
|
- //status bar tint setting
|
|
|
- SystemBarTintManager tintManager = new SystemBarTintManager(this);
|
|
|
- tintManager.setStatusBarTintEnabled(true);
|
|
|
- tintManager.setTintColor(getResources().getColor(R.color.C80FFFFFF));
|
|
|
-
|
|
|
-// CoordinatorLayout.LayoutParams params = new CoordinatorLayout.LayoutParams(
|
|
|
-// CoordinatorLayout.LayoutParams.MATCH_PARENT,
|
|
|
-// CoordinatorLayout.LayoutParams.MATCH_PARENT
|
|
|
-// );
|
|
|
-// params.setMargins(0, ResourceUtil.getStatusBarHeight(),0 , 0);
|
|
|
-// findViewById(R.id.layout_app_bar).setLayoutParams(params);
|
|
|
/*
|
|
|
setting helpers
|
|
|
*/
|