Search in sources :

Example 1 with GroupCharacterAdapter

use of com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter in project anitrend-app by AniTrend.

the class CharacterSearchFragment method onCreate.

/**
 * Override and set presenter, mColumnSize, and fetch argument/s
 *
 * @param savedInstanceState
 */
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (getArguments() != null)
        searchQuery = getArguments().getString(KeyUtil.arg_search);
    mColumnSize = R.integer.grid_giphy_x3;
    isPager = true;
    mAdapter = new GroupCharacterAdapter(getContext());
    setPresenter(new BasePresenter(getContext()));
    setViewModel(true);
}
Also used : GroupCharacterAdapter(com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter) BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 2 with GroupCharacterAdapter

use of com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter in project anitrend-app by AniTrend.

the class MediaCharacterFragment method onCreate.

/**
 * Override and set presenter, mColumnSize, and fetch argument/s
 *
 * @param savedInstanceState
 */
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (getArguments() != null) {
        mediaId = getArguments().getLong(KeyUtil.arg_id);
        mediaType = getArguments().getString(KeyUtil.arg_mediaType);
    }
    mColumnSize = R.integer.grid_giphy_x3;
    isPager = true;
    mAdapter = new GroupCharacterAdapter(getContext());
    setPresenter(new MediaPresenter(getContext()));
    setViewModel(true);
}
Also used : GroupCharacterAdapter(com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter) MediaPresenter(com.mxt.anitrend.presenter.fragment.MediaPresenter)

Example 3 with GroupCharacterAdapter

use of com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter in project anitrend-app by AniTrend.

the class CharacterFavouriteFragment method onCreate.

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (getArguments() != null)
        userId = getArguments().getLong(KeyUtil.arg_id);
    mColumnSize = R.integer.grid_giphy_x3;
    isPager = true;
    mAdapter = new GroupCharacterAdapter(getContext());
    setPresenter(new BasePresenter(getContext()));
    setViewModel(true);
}
Also used : GroupCharacterAdapter(com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter) BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Aggregations

GroupCharacterAdapter (com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter)3 BasePresenter (com.mxt.anitrend.presenter.base.BasePresenter)2 MediaPresenter (com.mxt.anitrend.presenter.fragment.MediaPresenter)1