LikeELMLeftLoad
Turn left to jump
preview
preview.gif
Worship the god
github.com/JeasonWong
use
(1) and rely on
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])The compile 'com. Android. Support: appcompat - v7:25.1.0' compile 'com. Android. Support: design: 25.1.0'}Copy the code
(2) Put the files in the View file into your project, as well as some configuration files
Use of code
<csnowstack.load.view.PullLeftLoadMoreLayout
android:id="@+id/pull_load_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/rcv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:overScrollMode="never"/>
</csnowstack.load.view.PullLeftLoadMoreLayout>
mRecyclerView= (RecyclerView) findViewById(R.id.rcv);
mRecyclerView.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false));
mRecyclerView.setAdapter(new ELMAdapter());
mPullLeftLoadMoreLayout= (PullLeftLoadMoreLayout) findViewById(R.id.pull_load_layout);
mPullLeftLoadMoreLayout.addView(getResources().getDimensionPixelOffset(R.dimen.item_img));
mPullLeftLoadMoreLayout.setFillLoadingColor(ContextCompat.getColor(this,R.color.colorAccent));
mPullLeftLoadMoreLayout.setOnGoListener(new LoadingView.OnNoticeGoListener() {
@Override
public void go(a) {
Toast.makeText(MainActivity.this."Skip page",Toast.LENGTH_SHORT).show(); }});Copy the code