Skip to content

Commit

Permalink
Optimize sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyge committed Nov 16, 2016
1 parent 7f4d9e0 commit 3dc9991
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
6 changes: 2 additions & 4 deletions sample/src/main/res/layout/fragment_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.etsy.android.grid.StaggeredGridView xmlns:app="http://schemas.android.com/apk/res-auto"
<android.support.v7.widget.RecyclerView
android:id="@+id/list_search"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutAnimation="@anim/layout_animation"
android:listSelector="@android:color/transparent"
android:divider="@android:color/transparent"
app:column_count_portrait="2"
app:column_count_landscape="3"
app:item_margin="8dp" />
android:scrollbars="vertical"/>
</me.xiaopan.sketchsample.widget.MyPullRefreshLayout>

<me.xiaopan.sketchsample.widget.HintView
Expand Down
8 changes: 3 additions & 5 deletions sample/src/main/res/layout/fragment_star_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.etsy.android.grid.StaggeredGridView xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/list_starHome"
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_starHome"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutAnimation="@anim/layout_animation"
app:column_count_portrait="2"
app:column_count_landscape="3"
app:item_margin="8dp" />
android:scrollbars="vertical"/>
</me.xiaopan.sketchsample.widget.MyPullRefreshLayout>

<me.xiaopan.sketchsample.widget.HintView
Expand Down
3 changes: 1 addition & 2 deletions sample/src/main/res/layout/list_item_heade_image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
android:id="@+id/image_headImageItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:layout_margin="4dp"
android:scaleType="centerCrop" />
1 change: 1 addition & 0 deletions sample/src/main/res/layout/list_item_image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
android:id="@+id/image_imageItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:scaleType="centerCrop" />

0 comments on commit 3dc9991

Please sign in to comment.