jp.wasabeef.recyclerview.animators.FadeInLeftAnimator Java Examples
The following examples show how to use
jp.wasabeef.recyclerview.animators.FadeInLeftAnimator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FragmentRecmdUserHorizontal.java From Pixiv-Shaft with MIT License | 5 votes |
@Override public BaseItemAnimator animation() { FadeInLeftAnimator fade = new FadeInLeftAnimator(); fade.setAddDuration(animateDuration); fade.setRemoveDuration(animateDuration); fade.setMoveDuration(animateDuration); fade.setChangeDuration(animateDuration); return fade; }
Example #2
Source File: FragmentPivisionHorizontal.java From Pixiv-Shaft with MIT License | 5 votes |
@Override public BaseItemAnimator animation() { FadeInLeftAnimator landingAnimator = new FadeInLeftAnimator(); landingAnimator.setAddDuration(animateDuration); landingAnimator.setRemoveDuration(animateDuration); landingAnimator.setMoveDuration(animateDuration); landingAnimator.setChangeDuration(animateDuration); return landingAnimator; }
Example #3
Source File: RecyclerViewExample.java From AndroidSwipeLayout with MIT License | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.recyclerview); recyclerView = (RecyclerView) findViewById(R.id.recycler_view); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { ActionBar actionBar = getActionBar(); if (actionBar != null) { actionBar.setTitle("RecyclerView"); } } // Layout Managers: recyclerView.setLayoutManager(new LinearLayoutManager(this)); // Item Decorator: recyclerView.addItemDecoration(new DividerItemDecoration(getResources().getDrawable(R.drawable.divider))); recyclerView.setItemAnimator(new FadeInLeftAnimator()); // Adapter: String[] adapterData = new String[]{"Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"}; mDataSet = new ArrayList<String>(Arrays.asList(adapterData)); mAdapter = new RecyclerViewAdapter(this, mDataSet); ((RecyclerViewAdapter) mAdapter).setMode(Attributes.Mode.Single); recyclerView.setAdapter(mAdapter); /* Listeners */ recyclerView.setOnScrollListener(onScrollListener); }