• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SlideInBottomAnimationAdapter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter的典型用法代码示例。如果您正苦于以下问题:Java SlideInBottomAnimationAdapter类的具体用法?Java SlideInBottomAnimationAdapter怎么用?Java SlideInBottomAnimationAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SlideInBottomAnimationAdapter类属于jp.wasabeef.recyclerview.adapters包,在下文中一共展示了SlideInBottomAnimationAdapter类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setupList

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
public void setupList(String sgpa, List<CourseGradeData> gradesData) {

        if (sgpa == null || sgpa.trim().equals("null")) {
            Toast.makeText(baseContext, "Results for the semester have not been published yet.", Toast.LENGTH_LONG).show();
            finish();
        }

        CourseGradeData cgpaData = new CourseGradeData();
        cgpaData.setGrade(sgpa);
        cgpaData.setCourseCode("sgpa");
        cgpaData.setCourseTitle(null);

        gradesData.add(0, cgpaData);

        GradesAdapter adapter = new GradesAdapter(gradesData);
        recyclerView.setAdapter(new SlideInBottomAnimationAdapter(new AlphaInAnimationAdapter(adapter)));
    }
 
开发者ID:niranjan94,项目名称:amrita-info-desk,代码行数:18,代码来源:GradesActivity.java


示例2: setupRecyclerView

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
/**
 * Setup the RecyclerView's Adapter and animations
 *
 * @param shipData {@link ShipData} object
 */
private void setupRecyclerView(ShipData shipData) {
    if (shipData == null) {
        throw new NullPointerException("Ship data is null");
    }

    mShipListRecyclerViewAdapter
            = new ShipListRecyclerViewAdapter(getContext(), shipData.ships, this, mIsLargeLayout);

    GridLayoutManager gridLayoutManager = new GridLayoutManager(getContext(), mColumnCount);
    gridLayoutManager.setSpanSizeLookup(mShipListRecyclerViewAdapter.getSpanSizeLookup());
    mRecyclerView.setLayoutManager(gridLayoutManager);

    SlideInBottomAnimationAdapter slideInAdapter
            = new SlideInBottomAnimationAdapter(mShipListRecyclerViewAdapter);

    slideInAdapter.setDuration(500);
    slideInAdapter.setInterpolator(new DecelerateInterpolator());

    mRecyclerView.setAdapter(slideInAdapter);
}
 
开发者ID:fusion44,项目名称:galactic-tavern-android,代码行数:26,代码来源:ShipListFragment.java


示例3: onPostExecute

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
@Override
protected void onPostExecute(Void dummy) {
    ArrayList<String> titleFav = new ArrayList<>();
    ArrayList<String> imgFav = new ArrayList<>();
    for (int i = 0; i < mTitles.size(); i++) {
        if (prefHelper.checkWhatIfFav(mTitles.size() - i)) {
            titleFav.add(mTitles.get(i));
            if (!offlineMode) {
                imgFav.add(mImgs.get(i));
            }
        }
    }
    adapter = new WhatIfFavoritesRVAdapter(titleFav, imgFav, (MainActivity) getActivity());
    SlideInBottomAnimationAdapter slideAdapter = new SlideInBottomAnimationAdapter(adapter);
    slideAdapter.setInterpolator(new DecelerateInterpolator());
    rv.setAdapter(slideAdapter);
    progress.dismiss();
}
 
开发者ID:T-Rex96,项目名称:Easy_xkcd,代码行数:19,代码来源:WhatIfFavoritesFragment.java


示例4: updateFavorites

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
public void updateFavorites() {
    ArrayList<String> titleFav = new ArrayList<>();
    ArrayList<String> imgFav = new ArrayList<>();
    for (int i = 0; i < mTitles.size(); i++) {
        if (prefHelper.checkWhatIfFav(mTitles.size() - i)) {
            titleFav.add(mTitles.get(i));
            if (!offlineMode) {
                imgFav.add(mImgs.get(i));
            }
        }
    }
    adapter = new WhatIfFavoritesRVAdapter(titleFav, imgFav, (MainActivity) getActivity());
    SlideInBottomAnimationAdapter slideAdapter = new SlideInBottomAnimationAdapter(adapter);
    slideAdapter.setInterpolator(new DecelerateInterpolator());
    rv.setAdapter(slideAdapter);
}
 
开发者ID:T-Rex96,项目名称:Easy_xkcd,代码行数:17,代码来源:WhatIfFavoritesFragment.java


示例5: setupRecyclerView

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
private void setupRecyclerView(View rootView) {
    mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview);
    LinearLayoutManager mLayoutManager = new LinearLayoutManager(getActivity());
    mRecyclerView.setLayoutManager(mLayoutManager);
    mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));

    //every item's height is fix so use this method
    //RecyclerView can perform several optimizations
    mRecyclerView.setHasFixedSize(true);
    mAdapter = new AppFileListAdapter(getActivity());
    mAdapter.setClickPopupMenuItem(this);
    mAdapter.setClickListItem(this);

    SlideInBottomAnimationAdapter slideInLeftAdapter = new SlideInBottomAnimationAdapter(mAdapter);
    slideInLeftAdapter.setDuration(300);
    slideInLeftAdapter.setInterpolator(new AccelerateDecelerateInterpolator());

    mRecyclerView.setAdapter(slideInLeftAdapter);
}
 
开发者ID:maoruibin,项目名称:AppPlus,代码行数:20,代码来源:AppFileListFragment.java


示例6: setupRecyclerView

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
private void setupRecyclerView(View rootView) {
    mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview);
    LinearLayoutManager mLayoutManager = new LinearLayoutManager(getActivity());
    mRecyclerView.setLayoutManager(mLayoutManager);
    mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));

    //every item's height is fix so use this method
    //RecyclerView can perform several optimizations
    mRecyclerView.setHasFixedSize(true);
    mAdapter = new AppInfoListAdapter(getActivity(), Utils.isBriefMode());
    mAdapter.setClickPopupMenuItem(this);
    mAdapter.setClickListItem(this);

    SlideInBottomAnimationAdapter slideInLeftAdapter = new SlideInBottomAnimationAdapter(mAdapter);
    slideInLeftAdapter.setDuration(300);
    slideInLeftAdapter.setInterpolator(new AccelerateDecelerateInterpolator());

    mRecyclerView.setAdapter(slideInLeftAdapter);
}
 
开发者ID:maoruibin,项目名称:AppPlus,代码行数:20,代码来源:AppListFragment.java


示例7: initViews

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
@Override
protected void initViews() {
    RecyclerViewHelper.initRecyclerViewV(mContext, mRvPhotoList, new SlideInBottomAnimationAdapter(mAdapter));
    mAdapter.setRequestDataListener(new OnRequestDataListener() {
        @Override
        public void onLoadMore() {
            mPresenter.getMoreData();
        }
    });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:PhotoNewsFragment.java


示例8: addCoolAnimToRecycleView

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
private void addCoolAnimToRecycleView(RecyclerView recyclerView, NoteAllItemAdapter noteAdapter) {
    SlideInBottomAnimationAdapter alphaAdapter = new SlideInBottomAnimationAdapter(noteAdapter);
    alphaAdapter.setDuration(200);
    alphaAdapter.setInterpolator(new AccelerateDecelerateInterpolator());
    alphaAdapter.setFirstOnly(false);
    recyclerView.setAdapter(alphaAdapter );
    recyclerView.setItemAnimator(new SlideInUpAnimator(new LinearOutSlowInInterpolator()));
}
 
开发者ID:tianyuan168326,项目名称:nono-android,代码行数:9,代码来源:AllFragment.java


示例9: setupRecyclerView

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
/**
 * Setup the RecyclerView's Adapter and animations
 *
 * @param forums Forums list for the Adapter
 */
private void setupRecyclerView(List<ForumSectioned> forums) {
    if (forums == null) {
        throw new NullPointerException("Forum list is null");
    }

    ForumListAdapter adapter
            = new ForumListAdapter(getContext(), forums, this);
    adapter.setHasStableIds(true);

    if (mListColumnCount == 1) {
        LinearLayoutManager llm = new LinearLayoutManager(getContext(),
                LinearLayoutManager.VERTICAL, false);
        mRecyclerView.setLayoutManager(llm);
    } else {
        GridLayoutManager glm = new GridLayoutManager(getContext(), mListColumnCount);
        glm.setSpanSizeLookup(adapter.getSpanSizeLookup());
        mRecyclerView.setLayoutManager(glm);
    }

    SlideInBottomAnimationAdapter slideInAdapter
            = new SlideInBottomAnimationAdapter(adapter);

    slideInAdapter.setDuration(500);
    slideInAdapter.setInterpolator(new DecelerateInterpolator());

    mRecyclerView.setAdapter(slideInAdapter);
}
 
开发者ID:fusion44,项目名称:galactic-tavern-android,代码行数:33,代码来源:ForumListFragment.java


示例10: onCreateView

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_comm_link_list, container, false);

    // Set the adapter
    if (view instanceof SuperRecyclerView) {
        mRecyclerView = (SuperRecyclerView) view;
        mRecyclerView.setOnMoreListener(this);
        mCommLinksAdapter = new CommLinkListRecyclerViewAdapter(getContext(), this);
        mSlideInAdapter = new SlideInBottomAnimationAdapter(mCommLinksAdapter);
        mSlideInAdapter.setDuration(500);
        mSlideInAdapter.setInterpolator(new DecelerateInterpolator());
        GridLayoutManager gridLayoutManager = new GridLayoutManager(getContext(), mColumnCount);
        gridLayoutManager.setSpanSizeLookup(mCommLinksAdapter.getSpanSizeLookup());
        mRecyclerView.setLayoutManager(gridLayoutManager);
        mRecyclerView.setAdapter(mSlideInAdapter);
        CommLinkStore commLinkStore = CommLinkStore.get(GtApplication.getInstance().getRxFlux().getDispatcher());

        // Check if the store has the articles already loaded
        ArrayList<CommLinkModel> commLinks = commLinkStore.getCommLinks();
        if (commLinks.size() == 0) {
            // if not, instruct the action creator to start the fetch  comm links process
            // The ActionCreator will create an action which will get the rss articles
            // and put them in the CommLinkStore which will post a change which will trigger
            // MainActivity.onRxStoreChanged with the data
            // The articles will then be RxStoreChange argument of onRxStoreChange
            // https://raw.githubusercontent.com/lgvalle/lgvalle.github.io/master/public/images/flux-graph-complete.png
            GtApplication.getInstance().getActionCreator().getCommLinks(mLastCommLinkPublished, mMaxResults);
        } else {
            addCommLinks(commLinks);
        }
    }
    return view;
}
 
开发者ID:fusion44,项目名称:galactic-tavern-android,代码行数:36,代码来源:CommLinkListFragment.java


示例11: get

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
@Override public AnimationAdapter get(Context context) {
  MainAdapter adapter = new MainAdapter(context, new ArrayList<>(Arrays.asList(data)));
  return new SlideInBottomAnimationAdapter(adapter);
}
 
开发者ID:pavangandhi,项目名称:RecycleView_Animators,代码行数:5,代码来源:AdapterSampleActivity.java


示例12: setupList

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
public void setupList(List<CourseMarkData> markDataList) {
    MarksAdapter adapter = new MarksAdapter(markDataList);
    recyclerView.setAdapter(new SlideInBottomAnimationAdapter(new AlphaInAnimationAdapter(adapter)));
}
 
开发者ID:niranjan94,项目名称:amrita-info-desk,代码行数:5,代码来源:MarksActivity.java


示例13: setupList

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
public void setupList(List<CourseAttendanceData> attendanceData) {
    AttendanceAdapter adapter = new AttendanceAdapter(attendanceData);
    recyclerView.setAdapter(new SlideInBottomAnimationAdapter(new AlphaInAnimationAdapter(adapter)));
}
 
开发者ID:niranjan94,项目名称:amrita-info-desk,代码行数:5,代码来源:AttendanceActivity.java


示例14: onLongClick

import jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter; //导入依赖的package包/类
@Override
public boolean onLongClick(View v) {
    final View view = v;
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
    builder.setItems(R.array.whatif_card_long_click_remove, new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which) {
            int pos;
            int n;
            String title;
            switch (which) {
                case 0:
                    pos = rv.getChildAdapterPosition(view);
                    title = adapter.titles.get(pos);
                    n = mTitles.size() - mTitles.indexOf(title);
                    Intent share = new Intent(Intent.ACTION_SEND);
                    share.setType("text/plain");
                    share.putExtra(Intent.EXTRA_SUBJECT, "What if: " + title);
                    share.putExtra(Intent.EXTRA_TEXT, "http://what-if.xkcd.com/" + String.valueOf(n));
                    startActivity(share);
                    break;
                case 1:
                    pos = rv.getChildAdapterPosition(view);
                    title = adapter.titles.get(pos);
                    n = mTitles.size() - mTitles.indexOf(title);
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://what-if.xkcd.com/" + String.valueOf(n)));
                    startActivity(intent);
                    break;
                case 2:
                    pos = rv.getChildAdapterPosition(view);
                    title = adapter.titles.get(pos);
                    n = mTitles.size() - mTitles.indexOf(title);
                    prefHelper.removeWhatifFav(n);
                    ArrayList<String> titleFav = new ArrayList<>();
                    ArrayList<String> imgFav = new ArrayList<>();
                    for (int i = 0; i < mTitles.size(); i++) {
                        if (prefHelper.checkWhatIfFav(mTitles.size() - i)) {
                            titleFav.add(mTitles.get(i));
                            if (!offlineMode)
                                imgFav.add(mImgs.get(i));
                        }
                    }
                    adapter = new WhatIfFavoritesRVAdapter(titleFav, imgFav, (MainActivity) getActivity());
                    SlideInBottomAnimationAdapter slideAdapter = new SlideInBottomAnimationAdapter(adapter);
                    slideAdapter.setInterpolator(new DecelerateInterpolator());
                    rv.setAdapter(slideAdapter);
            }
        }
    });
    AlertDialog alert = builder.create();
    alert.show();
    return true;
}
 
开发者ID:T-Rex96,项目名称:Easy_xkcd,代码行数:54,代码来源:WhatIfFavoritesFragment.java



注:本文中的jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RuntimeIOException类代码示例发布时间:2022-05-22
下一篇:
Java Element类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap