Search in sources :

Example 1 with UserInfoPresenter

use of com.seven.seven.user.presenter.UserInfoPresenter in project seven_develop by seven123456.

the class UserInfoFragment method initView.

@Override
protected void initView() {
    EventBus.getDefault().register(this);
    userInfoPresenter = new UserInfoPresenter(this, (MainActivity) getActivity());
    headImgView = rootView.findViewById(R.id.img_head_view);
    userView = rootView.findViewById(R.id.img_user_view);
    userRootView = rootView.findViewById(R.id.user_root);
    Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.timgs);
    headImgView.setImageBitmap(RenderscriptUtils.blurBitmap(bitmap, getContext()));
    userView.setImageBitmap(bitmap);
    shareApp = rootView.findViewById(R.id.ui_share);
    clean = rootView.findViewById(R.id.ui_clean);
    collection = rootView.findViewById(R.id.ui_collection);
    author = rootView.findViewById(R.id.ui_author);
    setting = rootView.findViewById(R.id.ui_setting);
    userName = rootView.findViewById(R.id.tv_user_name);
}
Also used : Bitmap(android.graphics.Bitmap) UserInfoPresenter(com.seven.seven.user.presenter.UserInfoPresenter) MainActivity(com.seven.seven.ui.MainActivity)

Aggregations

Bitmap (android.graphics.Bitmap)1 MainActivity (com.seven.seven.ui.MainActivity)1 UserInfoPresenter (com.seven.seven.user.presenter.UserInfoPresenter)1