Search in sources :

Example 1 with MainActivity

use of com.hotbitmapgg.bilibili.module.common.MainActivity in project bilibili-android-client by HotBitmapGG.

the class SettingFragment method finishCreateView.

@SuppressLint("SetTextI18n")
@Override
public void finishCreateView(Bundle state) {
    mToolbar.setTitle("设置与帮助");
    mToolbar.setNavigationIcon(R.drawable.ic_navigation_drawer);
    mToolbar.setNavigationOnClickListener(v -> {
        Activity activity1 = getActivity();
        if (activity1 instanceof MainActivity) {
            ((MainActivity) activity1).toggleDrawer();
        }
    });
    mVersionCode.setText("v" + getVersionCode());
}
Also used : AppIntroduceActivity(com.hotbitmapgg.bilibili.module.common.AppIntroduceActivity) HotBitmapGGInfoActivity(com.hotbitmapgg.bilibili.module.common.HotBitmapGGInfoActivity) LoginActivity(com.hotbitmapgg.bilibili.module.common.LoginActivity) MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity) Activity(android.app.Activity) MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity) SuppressLint(android.annotation.SuppressLint)

Example 2 with MainActivity

use of com.hotbitmapgg.bilibili.module.common.MainActivity in project bilibili-android-client by HotBitmapGG.

the class AttentionPeopleFragment method finishCreateView.

@Override
public void finishCreateView(Bundle state) {
    mToolbar.setTitle("关注的人");
    mToolbar.setNavigationIcon(R.drawable.ic_navigation_drawer);
    mToolbar.setNavigationOnClickListener(v -> {
        Activity activity1 = getActivity();
        if (activity1 instanceof MainActivity) {
            ((MainActivity) activity1).toggleDrawer();
        }
    });
    mCustomEmptyView.setEmptyImage(R.drawable.img_tips_error_no_following_person);
    mCustomEmptyView.setEmptyText("你还没有关注的人哟");
}
Also used : MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity) Activity(android.app.Activity) MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity)

Example 3 with MainActivity

use of com.hotbitmapgg.bilibili.module.common.MainActivity in project bilibili-android-client by HotBitmapGG.

the class ConsumeHistoryFragment method finishCreateView.

@Override
public void finishCreateView(Bundle state) {
    mToolbar.setTitle("我的钱包");
    mToolbar.setNavigationIcon(R.drawable.ic_navigation_drawer);
    mToolbar.setNavigationOnClickListener(v -> {
        Activity activity1 = getActivity();
        if (activity1 instanceof MainActivity) {
            ((MainActivity) activity1).toggleDrawer();
        }
    });
    mCustomEmptyView.setEmptyImage(R.drawable.ic_movie_pay_area_limit);
    mCustomEmptyView.setEmptyText("你还没有消费记录哟");
}
Also used : MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity) Activity(android.app.Activity) MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity)

Example 4 with MainActivity

use of com.hotbitmapgg.bilibili.module.common.MainActivity in project bilibili-android-client by HotBitmapGG.

the class HistoryFragment method finishCreateView.

@Override
public void finishCreateView(Bundle state) {
    mToolbar.setTitle("历史记录");
    mToolbar.setNavigationIcon(R.drawable.ic_navigation_drawer);
    mToolbar.setNavigationOnClickListener(v -> {
        Activity activity1 = getActivity();
        if (activity1 instanceof MainActivity) {
            ((MainActivity) activity1).toggleDrawer();
        }
    });
    mCustomEmptyView.setEmptyImage(R.drawable.ic_movie_pay_order_error);
    mCustomEmptyView.setEmptyText("暂时还没有观看记录哟");
}
Also used : MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity) Activity(android.app.Activity) MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity)

Example 5 with MainActivity

use of com.hotbitmapgg.bilibili.module.common.MainActivity in project bilibili-android-client by HotBitmapGG.

the class IFavoritesFragment method finishCreateView.

@Override
public void finishCreateView(Bundle state) {
    mToolbar.setTitle("我的收藏");
    mToolbar.setNavigationIcon(R.drawable.ic_navigation_drawer);
    mToolbar.setNavigationOnClickListener(v -> {
        Activity activity1 = getActivity();
        if (activity1 instanceof MainActivity) {
            ((MainActivity) activity1).toggleDrawer();
        }
    });
    mCustomEmptyView.setEmptyImage(R.drawable.img_tips_error_fav_no_data);
    mCustomEmptyView.setEmptyText("没有找到你的收藏哟");
}
Also used : MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity) Activity(android.app.Activity) MainActivity(com.hotbitmapgg.bilibili.module.common.MainActivity)

Aggregations

Activity (android.app.Activity)5 MainActivity (com.hotbitmapgg.bilibili.module.common.MainActivity)5 SuppressLint (android.annotation.SuppressLint)1 AppIntroduceActivity (com.hotbitmapgg.bilibili.module.common.AppIntroduceActivity)1 HotBitmapGGInfoActivity (com.hotbitmapgg.bilibili.module.common.HotBitmapGGInfoActivity)1 LoginActivity (com.hotbitmapgg.bilibili.module.common.LoginActivity)1