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

The following examples show how to use com.jaeger.library.StatusBarUtil#setTranslucentForImageView() . 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: MovieDetailsActivity.java    From qvod with MIT License 6 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_details_movie);
    ButterKnife.bind(this);
    //
    StatusBarUtil.setTranslucentForImageView(this, 0, toolBar);
    //
    onSetToolbar(toolBar);
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        //是否显示默认Title
        actionBar.setDisplayShowTitleEnabled(true);
        //是否显示返回键
        actionBar.setDisplayHomeAsUpEnabled(true);
    }
    //
    initLoading();
}
 
Example 2
Source File: TencentMapLiteActivity.java    From XposedWechatHelper with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_tencent_map_lite);
    ButterKnife.bind(this);
    StatusBarUtil.setTranslucentForImageView(this, findViewById(R.id.view_need_offset));

    getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);

    initMap();
}
 
Example 3
Source File: AMapLiteActivity.java    From XposedRimetHelper with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_amap_lite);

    StatusBarUtil.setTranslucentForImageView(this, findViewById(R.id.view_need_offset));

    getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);

    initMap(savedInstanceState);
}
 
Example 4
Source File: MainActivity.java    From Android_UE with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.content_main);

    StatusBarUtil.setTranslucentForImageView(this, null);

    addLayoutListener(findViewById(R.id.llLogin));
}
 
Example 5
Source File: ScheduleDetailActivity.java    From AcgClub with MIT License 4 votes vote down vote up
@Override
protected void setStatusBar() {
  StatusBarUtil.setTranslucentForImageView(this, 0, mToolBar);
}
 
Example 6
Source File: NotePreviewActivity.java    From CrazyDaily with Apache License 2.0 4 votes vote down vote up
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    StatusBarUtil.setTranslucentForImageView(this, 0, mBar);
}