Search in sources :

Example 1 with HttpImageGetter

use of com.gh4a.utils.HttpImageGetter in project gh4a by slapperwan.

the class IssueFragmentBase method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View listContent = super.onCreateView(inflater, container, savedInstanceState);
    View v = inflater.inflate(R.layout.comment_list, container, false);
    FrameLayout listContainer = v.findViewById(R.id.list_container);
    listContainer.addView(listContent);
    mBottomSheet = v.findViewById(R.id.bottom_sheet);
    mBottomSheet.setCallback(this);
    mBottomSheet.setResizingView(listContainer);
    mBottomSheet.setListener(this);
    mImageGetter = new HttpImageGetter(inflater.getContext());
    updateCommentSectionVisibility(v);
    updateCommentLockState();
    return v;
}
Also used : FrameLayout(android.widget.FrameLayout) ImageView(android.widget.ImageView) View(android.view.View) TextView(android.widget.TextView) RecyclerView(android.support.v7.widget.RecyclerView) HttpImageGetter(com.gh4a.utils.HttpImageGetter)

Example 2 with HttpImageGetter

use of com.gh4a.utils.HttpImageGetter in project gh4a by slapperwan.

the class RepositoryFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    mImageGetter = new HttpImageGetter(getActivity());
    fillData();
    setContentShown(true);
    if (savedInstanceState != null) {
        mIsReadmeExpanded = savedInstanceState.getBoolean(STATE_KEY_IS_README_EXPANDED, false);
        mIsReadmeLoaded = savedInstanceState.getBoolean(STATE_KEY_IS_README_LOADED, false);
    }
    if (mIsReadmeExpanded || mIsReadmeLoaded) {
        loadReadme(false);
    }
    loadPullRequestCount(false);
    updateReadmeVisibility();
}
Also used : HttpImageGetter(com.gh4a.utils.HttpImageGetter)

Example 3 with HttpImageGetter

use of com.gh4a.utils.HttpImageGetter in project gh4a by slapperwan.

the class ReleaseInfoActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.release);
    mRootView = findViewById(R.id.root);
    mImageGetter = new HttpImageGetter(this);
    setChildScrollDelegate(this);
    if (mRelease != null) {
        handleReleaseReady();
    } else {
        setContentShown(false);
        loadRelease(false);
    }
}
Also used : HttpImageGetter(com.gh4a.utils.HttpImageGetter)

Aggregations

HttpImageGetter (com.gh4a.utils.HttpImageGetter)3 RecyclerView (android.support.v7.widget.RecyclerView)1 View (android.view.View)1 FrameLayout (android.widget.FrameLayout)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1