Java Code Examples for com.jaeger.library.StatusBarUtil#setTranslucent()

The following examples show how to use com.jaeger.library.StatusBarUtil#setTranslucent() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpashActivity.java    From OpenEyes with Apache License 2.0 6 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //设置全屏
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.activity_spash);
    StatusBarUtil.setTranslucent(this,0);
    requestPermission(new OnPermissionResponseListener() {
        @Override
        public void onSuccess(String[] permissions) {
                showMain();
        }

        @Override
        public void onFail() {
                showTipsDialog();
        }
    },Manifest.permission.READ_EXTERNAL_STORAGE,Manifest.permission.WRITE_EXTERNAL_STORAGE);
}
 
Example 2
Source File: Activity2.java    From Android-StatusBarColor with Artistic License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity2);

    //设置透明度,1- 255
       StatusBarUtil.setTranslucent( Activity2.this , 127 ) ;
}
 
Example 3
Source File: FindDetailActivity.java    From OpenEyes with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_find_detail);
    StatusBarUtil.setTranslucent(this);
    ButterKnife.bind(this);
    initView();
    initData();
    setAdapter();
}
 
Example 4
Source File: VideoDetailActivity.java    From OpenEyes with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_video_detail);
    StatusBarUtil.setTranslucent(this);
    ButterKnife.bind(this);
    initData();
}
 
Example 5
Source File: VideoPlayActivity.java    From OpenEyes with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_video_play);
    StatusBarUtil.setTranslucent(this);
    videoPlayer =  (StandardGSYVideoPlayer)findViewById(R.id.video_player);
    init();
}
 
Example 6
Source File: FunctionActivity.java    From OpenEyes with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_function);
    StatusBarUtil.setTranslucent(this);
    setToolBar();
}
 
Example 7
Source File: MainActivity.java    From OpenEyes with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    StatusBarUtil.setTranslucent(this);
    //获取控件
    ButterKnife.bind(this);
    //获取Fragment的管理器
    fragmentManager = getSupportFragmentManager();
    initView();
    setListener();
}
 
Example 8
Source File: ZhihuNewsDetailActivity.java    From CrazyDaily with Apache License 2.0 4 votes vote down vote up
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    StatusBarUtil.setTranslucent(this);
    super.onCreate(savedInstanceState);
}
 
Example 9
Source File: ColorfulViewImpl.java    From MeiZiNews with MIT License 4 votes vote down vote up
protected void setStatusBarTranslucent(Activity activity,int statusBarAlpha) {
    StatusBarUtil.setTranslucent(activity, statusBarAlpha);
}
 
Example 10
Source File: ColorfuImgListlViewImpl.java    From MeiZiNews with MIT License 4 votes vote down vote up
protected void setStatusBarTranslucent(Activity activity,int statusBarAlpha) {
    StatusBarUtil.setTranslucent(activity, statusBarAlpha);
}