This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dinorah Tovar on 12/20/17. | |
* ViewPager | |
*/ | |
public class CustomViewPager extends ViewPager { | |
public CustomViewPager(Context context) { | |
super(context); | |
setMyScroller(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dinorah Tovar on 12/20/17. | |
* RecyclerView Implementation inside Activity/Fragment | |
*/ | |
//... | |
RecyclerViewAdapter adapter = new RecyclerViewAdapter(); | |
final LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity()); | |
layoutManager.setOrientation(LinearLayoutManager.VERTICAL); | |
recyclerView.setLayoutManager(layoutManager); |