match HorizontalAlbumAdapter items to the rest of the grid styles
This commit is contained in:
parent
2054f712be
commit
7fbb5b85f8
2 changed files with 3 additions and 2 deletions
|
|
@ -15,8 +15,8 @@ public class HorizontalAdapterHelper {
|
||||||
public static void applyMarginToLayoutParams(Context context, ViewGroup.MarginLayoutParams layoutParams, int viewType) {
|
public static void applyMarginToLayoutParams(Context context, ViewGroup.MarginLayoutParams layoutParams, int viewType) {
|
||||||
int listMargin = context.getResources().getDimensionPixelSize(R.dimen.default_item_margin);
|
int listMargin = context.getResources().getDimensionPixelSize(R.dimen.default_item_margin);
|
||||||
|
|
||||||
layoutParams.leftMargin = listMargin / 3;
|
layoutParams.leftMargin = listMargin / 4;
|
||||||
layoutParams.rightMargin = listMargin / 3;
|
layoutParams.rightMargin = listMargin / 4;
|
||||||
|
|
||||||
if (viewType == TYPE_FIRST) {
|
if (viewType == TYPE_FIRST) {
|
||||||
layoutParams.leftMargin = listMargin;
|
layoutParams.leftMargin = listMargin;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="16dp"
|
android:layout_margin="16dp"
|
||||||
android:foreground="?attr/rectSelectorStrong"
|
android:foreground="?attr/rectSelectorStrong"
|
||||||
|
app:cardCornerRadius="0dp"
|
||||||
app:cardBackgroundColor="?cardBackgroundColor">
|
app:cardBackgroundColor="?cardBackgroundColor">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue