feat:fix SwipeLayout

This commit is contained in:
pengfei.zhou
2019-11-25 19:28:42 +08:00
parent a47b3682db
commit 9c6802dccf
3 changed files with 84 additions and 215 deletions

View File

@@ -16,6 +16,7 @@
package pub.doric.demo;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.Gravity;
@@ -51,7 +52,11 @@ public class MainActivity extends AppCompatActivity {
swipeLayout.setRefreshing(false);
}
});
swipeLayout.setBackgroundColor(Color.YELLOW);
swipeLayout.getRefreshView().setBackgroundColor(Color.RED);
swipeLayout.setPullDownHeight(100);
RecyclerView recyclerView = findViewById(R.id.root);
recyclerView.setBackgroundColor(Color.WHITE);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
try {
String[] demos = getAssets().list("demo");