feat:SwipeLayout

This commit is contained in:
pengfei.zhou
2019-11-25 20:35:11 +08:00
parent 9c6802dccf
commit 055699d221
3 changed files with 51 additions and 254 deletions

View File

@@ -54,7 +54,7 @@ public class MainActivity extends AppCompatActivity {
});
swipeLayout.setBackgroundColor(Color.YELLOW);
swipeLayout.getRefreshView().setBackgroundColor(Color.RED);
swipeLayout.setPullDownHeight(100);
swipeLayout.setPullDownHeight(300);
RecyclerView recyclerView = findViewById(R.id.root);
recyclerView.setBackgroundColor(Color.WHITE);
recyclerView.setLayoutManager(new LinearLayoutManager(this));