当前位置: 首页>>代码示例>>Java>>正文


Java SlideInUpAnimator类代码示例

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


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

示例1: onViewCreated

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        layoutManager = new LinearLayoutManager(getActivity());
        recyclerView.setLayoutManager(layoutManager);

        videosAdapter = new VideosAdapter();
        videosAdapter.setOnItemClickListener(this);
        videosAdapter.setOnReloadClickListener(this);

        recyclerView.setItemAnimator(new SlideInUpAnimator());
//        recyclerView.setItemAnimator(new DefaultItemAnimator());
        recyclerView.setAdapter(videosAdapter);

        // Pagination
        recyclerView.addOnScrollListener(recyclerViewOnScrollListener);

        Call findRelatedVideosCall = vimeoService.findRelatedVideos(videoId, currentPage, PAGE_SIZE);
        calls.add(findRelatedVideosCall);
        findRelatedVideosCall.enqueue(findRelatedVideosFirstFetchCallback);
    }
 
开发者ID:lawloretienne,项目名称:Loop,代码行数:23,代码来源:RelatedVideosFragment.java

示例2: onViewCreated

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

//        ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(mQuery);

        layoutManager = new LinearLayoutManager(getActivity());
        recyclerView.setLayoutManager(layoutManager);

        videosAdapter = new VideosAdapter();
        videosAdapter.setOnItemClickListener(this);
        videosAdapter.setOnReloadClickListener(this);

        recyclerView.setItemAnimator(new SlideInUpAnimator());
//        recyclerView.setItemAnimator(new DefaultItemAnimator());
        recyclerView.setAdapter(videosAdapter);

        // Pagination
        recyclerView.addOnScrollListener(recyclerViewOnScrollListener);

        Call findMyFeedVideosCall = vimeoService.findMyFeedVideos(currentPage, PAGE_SIZE);
        calls.add(findMyFeedVideosCall);
        findMyFeedVideosCall.enqueue(findMyFeedVideosFirstFetchCallback);
    }
 
开发者ID:lawloretienne,项目名称:Loop,代码行数:25,代码来源:MyFeedFragment.java

示例3: onCreateView

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater,
		ViewGroup container, Bundle savedInstanceState) {
	// The last two arguments ensure LayoutParams are inflated properly.
	View rootView = inflater.inflate(
			R.layout.fragment_exam_category, container, false);

	//Save Category
	ExamCategory c = (ExamCategory) getArguments().get(ARG_CATEGORY);

       //Find list and init
       RecyclerView list = (RecyclerView) rootView.findViewById(R.id.list);
       list.setLayoutManager(new LinearLayoutManager(this.getActivity()));
       list.setItemAnimator(new SlideInUpAnimator());

	//Set Adapter
       ExamCategoryAdapter adapter = new ExamCategoryAdapter(this.getActivity(), c.getAllExams());
	list.setAdapter(adapter);

       //Animate Entry
       adapter.animateIn(this.getActivity(), list);

	return rootView;
}
 
开发者ID:crysxd,项目名称:Studiportal-Checker,代码行数:25,代码来源:ExamCategoryFragment.java

示例4: initRecyclerView

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
protected void initRecyclerView() {
    getRecyclerView().setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false));
    getRecyclerView().setItemAnimator(new SlideInUpAnimator());
    disableLoadMore();
    //这一句非常重要。因为该横向RecyclerView是嵌套在纵向RecyclerView中,该横向RecyclerView会默认捕捉焦点,导致在该横向RecyclerView上纵向滑动时不能触发纵向RecyclerView滑动。
    getRecyclerView().setNestedScrollingEnabled(false);
}
 
开发者ID:Mindjet,项目名称:LiteReader,代码行数:9,代码来源:DetailStaffViewModel.java

示例5: initRecyclerView

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
private void initRecyclerView() {
    GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2, LinearLayoutManager.VERTICAL, false);
    mCategoryProductAdapter = new ClosetCategoryProductAdapter();
    mRecyclerView.setLayoutManager(layoutManager);
    mRecyclerView.setItemAnimator(new SlideInUpAnimator());
    mRecyclerView.setAdapter(mCategoryProductAdapter);
}
 
开发者ID:Sugarya,项目名称:Closet,代码行数:8,代码来源:ClosetFragment.java

示例6: initBottomRecyclerView

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
private void initBottomRecyclerView() {
    GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2, LinearLayoutManager.VERTICAL, false);
    mRecyclerView.setLayoutManager(layoutManager);
    mDressingRoomMatchAdapter = new DressingRoomMatchAdapter();
    mRecyclerView.setItemAnimator(new SlideInUpAnimator());
    mRecyclerView.setAdapter(mDressingRoomMatchAdapter);

}
 
开发者ID:Sugarya,项目名称:Closet,代码行数:9,代码来源:DressingRoomFragment.java

示例7: initRvCheckOut

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
private void initRvCheckOut() {
    rvCheckOut.setLayoutManager(new LinearLayoutManager(this));
    rvCheckOut.setItemAnimator(new SlideInUpAnimator());
    nameList = new ArrayList<>();
    priceList = new ArrayList<>();
    coAdapter = new CheckOutAdapter(this, nameList, priceList);
    rvCheckOut.setAdapter(coAdapter);
}
 
开发者ID:SimonCherryGZ,项目名称:JewelryUI,代码行数:9,代码来源:MainActivity.java

示例8: initView

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
public void initView() {

    // restore saved options into GUI
    optionShowEventLocations = loadOrInitOption(GoogleCalendarSettings.GOOGLE_SHOW_EVENT_LOCATIONS);
    optionShowEventsUntil = loadOrInitOption(GoogleCalendarSettings.GOOGLE_SHOW_EVENTS_UNTIL);
    optionCalendarsEnabled = loadOrInitOption(GoogleCalendarSettings.GOOGLE_CALENDARS_ENABLED);


    supportWidgetHeightOption();
    supportWidgetScrollInterval();
    supportWidgetRefreshInterval();

    eventLocations.setChecked(optionShowEventLocations.getBooleanValue());
    eventLocations.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
        @Override
        public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
            optionShowEventLocations.update(isChecked);
            updateWidgetProperty(GOOGLE_SHOW_EVENT_LOCATIONS, optionShowEventLocations.getBooleanValue());
        }
    });

    LinearLayoutManager mLayoutManager = new LinearLayoutManager(getContext());
    calendarList.setLayoutManager(mLayoutManager);
    calendarList.setItemAnimator(new SlideInUpAnimator(new OvershootInterpolator(1f)));

    mAdapter = new GoogleCalendarListAdapter(widget);
    calendarList.setAdapter(mAdapter);

    updateCalendarListContents();
    updateCalendarUntilTextView();


}
 
开发者ID:dan-silver,项目名称:cast-dashboard-android-app,代码行数:35,代码来源:GoogleCalendarSettings.java

示例9: onViewCreated

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
public void onViewCreated(@NonNull final View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    widgetList.setAdapter(adapter);
    widgetList.setLayoutManager(new LinearLayoutManager(getContext()));
    widgetList.setItemAnimator(new SlideInUpAnimator(new OvershootInterpolator(1f)));

    ItemTouchHelper.Callback callback = new SimpleItemTouchHelperCallback(adapter);
    mItemTouchHelper = new ItemTouchHelper(callback);
    mItemTouchHelper.attachToRecyclerView(widgetList);

    mSwipeContainer.setColorSchemeColors(ContextCompat.getColor(getContext(), R.color.ccl_grey600));
    mSwipeContainer.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
        @Override
        public void onRefresh() {
            MainActivity.getDashboard().clearData();
            adapter.setWidgets(new ArrayList<Widget>());
            adapter.notifyDataSetChanged();
            MainActivity.getDashboard().onLoaded(getContext(), new OnCompleteCallback() {
                @Override
                public void onComplete() {
                    mSwipeContainer.setRefreshing(false);
                    adapter.setWidgets(MainActivity.getDashboard().getWidgetList());
                    adapter.notifyItemRangeInserted(0, MainActivity.getDashboard().getWidgetList().size());
                }

                @Override
                public void onError(Exception e) {
                    mSwipeContainer.setRefreshing(false);
                }
            });
        }
    });
}
 
开发者ID:dan-silver,项目名称:cast-dashboard-android-app,代码行数:35,代码来源:WidgetList.java

示例10: afterCreate

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
	public void afterCreate()
	{
		mConversationId = getIntent().getStringExtra(EXTRA_CONVERSATION_ID);
		String conversationName = getIntent().getStringExtra(EXTRA_CONVERSATION_NAME);
		if (mConversationId == null)
		{
			Toast.makeText(this, "无效会话", Toast.LENGTH_SHORT).show();
			finish();
		}
		//用于查看当前会话是否可见,如果可见,不更新首页的未读数量
		NotificationUtils.addTag(mConversationId);
		ActionBar actionBar = getSupportActionBar();
		if (actionBar != null) actionBar.setTitle("");
		if (conversationName == null)
			mTvTitle.setText("陌生人");
		else mTvTitle.setText(conversationName);
		EventBus.getDefault().register(this);
		mHandler = new ChatHandler();
		//隐藏图片展示框,这里不需要,因为在 gallery 一点击确定直接发送出去即可
		mRlSelectPic.setVisibility(View.GONE);
		//获取消息列表并显示加载中
		mController.getNewlyMessageData(mConversationId);
		showProgress();
		initEvent();
		//初始化recyclerview
		mDatas = new ArrayList<>();
//		mAdapter = new ChatAdapter(this, mDatas, mChatUserBll);
//		mRvChatMessage.setAdapter(mAdapter);
		mRvChatMessage.setLayoutManager(mLayoutManager = new LinearLayoutManager(this,
						LinearLayoutManager
										.VERTICAL, false));
		mRvChatMessage.setItemAnimator(new SlideInUpAnimator(new OvershootInterpolator(1.0f)));
	}
 
开发者ID:ChenAt,项目名称:PlayTogether,代码行数:35,代码来源:ChatActivity.java

示例11: addCoolAnimToRecycleView

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的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

示例12: onViewCreated

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    ((AppCompatActivity) getActivity()).setSupportActionBar(toolbar);

    final ActionBar ab = ((AppCompatActivity) getActivity()).getSupportActionBar();
    if(ab != null){
        ab.setHomeAsUpIndicator(R.drawable.ic_menu_light);
        ab.setDisplayHomeAsUpEnabled(true);
        ab.setTitle(TrestleUtility.getFormattedText(getString(R.string.explore), font));
    }

    LinearLayoutManager layoutManager = new GridLayoutManager(getActivity(), 2);
    recyclerView.setLayoutManager(layoutManager);
    recyclerView.addItemDecoration(new GridSpacesItemDecoration(DisplayUtility.dp2px(getActivity(), 8)));

    categoriesAdapter = new CategoriesAdapter();
    categoriesAdapter.setOnItemClickListener(this);

    recyclerView.setItemAnimator(new SlideInUpAnimator());
    recyclerView.setAdapter(categoriesAdapter);

    Call getCategoriesCall = vimeoService.getCategories();
    calls.add(getCategoriesCall);
    getCategoriesCall.enqueue(getCategoriesCallback);
}
 
开发者ID:lawloretienne,项目名称:Loop,代码行数:28,代码来源:ExploreFragment.java

示例13: onViewCreated

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

//        ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(mQuery);

        layoutManager = new LinearLayoutManager(getActivity());
        recyclerView.setLayoutManager(layoutManager);

        videosAdapter = new VideosAdapter();
        videosAdapter.setOnItemClickListener(this);
        videosAdapter.setOnReloadClickListener(this);

        recyclerView.setItemAnimator(new SlideInUpAnimator());
//        recyclerView.setItemAnimator(new DefaultItemAnimator());
        recyclerView.setAdapter(videosAdapter);

        // Pagination
        recyclerView.addOnScrollListener(recyclerViewOnScrollListener);

        Call findVideosCall = vimeoService.findVideos(query,
                sortByValue,
                sortOrderValue,
                currentPage,
                PAGE_SIZE,
                filter);
        calls.add(findVideosCall);
        findVideosCall.enqueue(findVideosFirstFetchCallback);
    }
 
开发者ID:lawloretienne,项目名称:Loop,代码行数:30,代码来源:VideosFragment.java

示例14: onViewCreated

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    ((AppCompatActivity) getActivity()).setSupportActionBar(toolbar);

    final ActionBar ab = ((AppCompatActivity) getActivity()).getSupportActionBar();
    if(ab != null){
        ab.setHomeAsUpIndicator(R.drawable.ic_menu_light);
        ab.setDisplayHomeAsUpEnabled(true);
        ab.setTitle(TrestleUtility.getFormattedText(getString(R.string.likes), font));
    }

    setUpRxBusSubscription();

    layoutManager = new LinearLayoutManager(getActivity());
    recyclerView.setLayoutManager(layoutManager);
    videosAdapter = new VideosAdapter();
    videosAdapter.setOnItemClickListener(this);
    videosAdapter.setOnReloadClickListener(this);

    recyclerView.setItemAnimator(new SlideInUpAnimator());
    recyclerView.setAdapter(videosAdapter);

    // Pagination
    recyclerView.addOnScrollListener(recyclerViewOnScrollListener);

    Call findLikedVideosCall = vimeoService.findLikedVideos(query,
            sortByValue,
            sortOrderValue,
            currentPage,
            PAGE_SIZE);
    calls.add(findLikedVideosCall);
    findLikedVideosCall.enqueue(findVideosFirstFetchCallback);
}
 
开发者ID:lawloretienne,项目名称:Loop,代码行数:36,代码来源:LikedVideosFragment.java

示例15: afterComponentsBound

import jp.wasabeef.recyclerview.animators.SlideInUpAnimator; //导入依赖的package包/类
@Override
protected void afterComponentsBound() {
    getRecyclerView().setItemAnimator(new SlideInUpAnimator(new LinearInterpolator()));
    changePbColor(R.color.colorPrimary);
}
 
开发者ID:Mindjet,项目名称:LiteReader,代码行数:6,代码来源:ZhihuSectionDetailViewModel.java


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