diff --git a/app/src/main/java/com/manu/pokedoke/view/ui/detail/DetailActivity.kt b/app/src/main/java/com/manu/pokedoke/view/ui/detail/DetailActivity.kt index 445f6bc..7e45f60 100644 --- a/app/src/main/java/com/manu/pokedoke/view/ui/detail/DetailActivity.kt +++ b/app/src/main/java/com/manu/pokedoke/view/ui/detail/DetailActivity.kt @@ -53,7 +53,9 @@ class DetailActivity : AppCompatActivity() { .intoCallBack { palette -> val rgb = palette?.dominantSwatch?.rgb if (rgb != null) { - pokemon_image_layout.setBackgroundColor(rgb) + if(!resources.getBoolean(R.bool.is_tablet)){ + pokemon_image_layout.setBackgroundColor(rgb) + } changeColor(rgb) } } diff --git a/app/src/main/res/layout-w400dp/activity_detail.xml b/app/src/main/res/layout-w400dp/activity_detail.xml new file mode 100644 index 0000000..d775604 --- /dev/null +++ b/app/src/main/res/layout-w400dp/activity_detail.xml @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_detail.xml b/app/src/main/res/layout/activity_detail.xml index 9d9dad4..ff4098a 100644 --- a/app/src/main/res/layout/activity_detail.xml +++ b/app/src/main/res/layout/activity_detail.xml @@ -1,309 +1,315 @@ - + - - - - + android:gravity="center"> - + + - + - + - + - + - + - + - + - + + + - + - + - + - + - + - + - + - + - + - + - \ No newline at end of file + + diff --git a/app/src/main/res/values-w400dp/bool.xml b/app/src/main/res/values-w400dp/bool.xml new file mode 100644 index 0000000..5fc3a0d --- /dev/null +++ b/app/src/main/res/values-w400dp/bool.xml @@ -0,0 +1,4 @@ + + + true + \ No newline at end of file diff --git a/app/src/main/res/values/bool.xml b/app/src/main/res/values/bool.xml new file mode 100644 index 0000000..84d7d2f --- /dev/null +++ b/app/src/main/res/values/bool.xml @@ -0,0 +1,4 @@ + + + false + \ No newline at end of file