Some layout and color fixes

This commit is contained in:
mvp76 2016-11-10 19:54:33 +01:00
parent 88c60b98f9
commit 7469a1cdab
5 changed files with 8 additions and 5 deletions

View File

@ -76,7 +76,7 @@ public class ScreenShotsRecyclerViewAdapter extends RecyclerView.Adapter<Recycle
lp.setMargins(0,selectedItemElevation,0,selectedItemElevation);
else
lp.setMargins(0,unselectedItemMargin,0,unselectedItemMargin);
ViewCompat.setElevation(view, selected ? selectedItemElevation : 0);
ViewCompat.setElevation(view, selected ? selectedItemElevation : selectedItemElevation / 2);
view.setLayoutParams(lp);
}
}

View File

@ -5,7 +5,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="org.fdroid.fdroid.AppDetails2">
tools:context="org.fdroid.fdroid.AppDetails2"
android:background="#efefef"
>
<android.support.design.widget.AppBarLayout
android:id="@+id/app_bar"

View File

@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/details_activity_padding"
app:cardBackgroundColor="#efefef"
app:cardBackgroundColor="#ffffff"
app:cardCornerRadius="3dp"
app:cardElevation="3dp">

View File

@ -10,5 +10,6 @@
app:behavior_overlapTop="40dp"
app:layoutManager="LinearLayoutManager"
tools:context="org.fdroid.fdroid.AppDetails2"
tools:showIn="@layout/activity_app_details2">
tools:showIn="@layout/activity_app_details2"
>
</android.support.v7.widget.RecyclerView>

View File

@ -6,7 +6,7 @@
<dimen name="app_bar_height">180dp</dimen>
<dimen name="details_activity_padding">8dp</dimen>
<!-- "Not selected" items are inset by this value, while the selected one is not -->
<dimen name="details_screenshot_margin">16dp</dimen>
<dimen name="details_screenshot_margin">8dp</dimen>
<!-- The selected item stands out from the background by this elevation -->
<dimen name="details_screenshot_selected_elevation">3dp</dimen>