Skip to content

Commit

Permalink
状态栏bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
wenmingvs committed Aug 12, 2016
1 parent 82dbcc8 commit d91f6b1
Show file tree
Hide file tree
Showing 33 changed files with 380 additions and 56 deletions.
1 change: 1 addition & 0 deletions weiSwift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ dependencies {
compile 'com.github.chrisbanes:PhotoView:1.2.6'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.17'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
}
8 changes: 4 additions & 4 deletions weiSwift/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
android:theme="@style/WeiBoHoloNoWindowTranslucent" />


<activity
android:name=".ui.login.fragment.profile.setting.SettingActivity"
/>
<activity android:name=".ui.login.fragment.profile.setting.SettingActivity" />


<activity android:name=".ui.login.fragment.home.imagedetaillist.ImageDetailsActivity" />
Expand All @@ -57,7 +55,9 @@
android:name=".ui.login.fragment.home.weiboitemdetail.activity.RetweetPicTextCommentDetailActivity"
android:theme="@style/WeiBoHoloWindowTranslucent" />

<activity android:name=".ui.login.fragment.message.mention.MentionActivity" />
<activity android:name=".ui.login.fragment.message.mention.MentionActivity"

/>

<activity android:name=".ui.login.fragment.message.comment.CommentActivity" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package com.wenming.weiswift.ui.common;

import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.wenming.swipebacklayout.SwipeBackLayout;
import com.wenming.swipebacklayout.app.SwipeBackActivity;
Expand All @@ -21,17 +17,9 @@ protected void onCreate(Bundle savedInstanceState) {
getSwipeBackLayout().setSwipeMode(SwipeBackLayout.FULL_SCREEN_LEFT);
getSwipeBackLayout().setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT);
getSwipeBackLayout().setSensitivity(BaseActivity.this, 0.3f);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
//5.0 全透明实现
//getWindow.setStatusBarColor(Color.TRANSPARENT)
Window window = getWindow();
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.setStatusBarColor(Color.WHITE);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
//4.4 全透明状态栏
//getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
}
StatusBarUtils.from(this).setTransparentStatusbar(true)
.setStatusBarColor(Color.WHITE)
.setLightStatusBar(true)
.process(this);
}
}

This file was deleted.

Loading

0 comments on commit d91f6b1

Please sign in to comment.