aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-12-26 14:36:56 -0800
committerScott Jackson <daneren2005@gmail.com>2015-12-26 14:36:56 -0800
commit020cb0854cb1325fc6b2ec72ed0cbd4bdaac01d4 (patch)
tree3ff9fb016569e6ba9fcc934cb9b309fe3e36a99f /app
parentb2b5439d1faa8ed5f095404df003f0d70ddf3236 (diff)
downloaddsub-020cb0854cb1325fc6b2ec72ed0cbd4bdaac01d4.tar.gz
dsub-020cb0854cb1325fc6b2ec72ed0cbd4bdaac01d4.tar.bz2
dsub-020cb0854cb1325fc6b2ec72ed0cbd4bdaac01d4.zip
Lower shadow on tablets since it is no longer rounded
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/view/CardView.java2
-rw-r--r--app/src/main/res/values-large/integers.xml1
-rw-r--r--app/src/main/res/values/integers.xml1
3 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/view/CardView.java b/app/src/main/java/github/daneren2005/dsub/view/CardView.java
index 973e63fa..7a38b13b 100644
--- a/app/src/main/java/github/daneren2005/dsub/view/CardView.java
+++ b/app/src/main/java/github/daneren2005/dsub/view/CardView.java
@@ -48,7 +48,7 @@ public class CardView extends FrameLayout{
setClipChildren(true);
setBackgroundResource(R.drawable.card_rounded_corners);
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
- setElevation(10.0f);
+ setElevation(getResources().getInteger(R.integer.Card_Elevation));
}
}
}
diff --git a/app/src/main/res/values-large/integers.xml b/app/src/main/res/values-large/integers.xml
index 914ec84a..243d3fc1 100644
--- a/app/src/main/res/values-large/integers.xml
+++ b/app/src/main/res/values-large/integers.xml
@@ -2,4 +2,5 @@
<resources>
<integer name="Grid.Columns">3</integer>
<integer name="TextDescriptionLength">10</integer>
+ <integer name="Card.Elevation">4</integer>
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/integers.xml b/app/src/main/res/values/integers.xml
index 05bcdb28..db45c591 100644
--- a/app/src/main/res/values/integers.xml
+++ b/app/src/main/res/values/integers.xml
@@ -3,4 +3,5 @@
<integer name="Grid.Columns">2</integer>
<integer name="Grid.FullScreen.Columns">@integer/Grid.Columns</integer>
<integer name="TextDescriptionLength">5</integer>
+ <integer name="Card.Elevation">10</integer>
</resources> \ No newline at end of file