From 064fbe070a893763a119106029fb532e200a2888 Mon Sep 17 00:00:00 2001 From: Sanghamitra1234 Date: Wed, 3 Oct 2018 22:35:48 +0530 Subject: [PATCH] Changed the UI of the front page . --- .idea/compiler.xml | 22 --- .idea/copyright/profiles_settings.xml | 3 - .idea/misc.xml | 9 +- app/build.gradle | 3 +- .../java/com/bbot/maxflow/MainActivity.java | 1 + .../java/com/bbot/maxflow/SolverPanel.java | 2 +- app/src/main/res/layout/activity_main.xml | 151 ++++++++++++++---- app/src/main/res/values/colors.xml | 11 +- build.gradle | 3 +- gradle/wrapper/gradle-wrapper.properties | 4 +- 10 files changed, 142 insertions(+), 67 deletions(-) delete mode 100644 .idea/compiler.xml delete mode 100644 .idea/copyright/profiles_settings.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index 96cc43e..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml deleted file mode 100644 index e7bedf3..0000000 --- a/.idea/copyright/profiles_settings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index ba7052b..99202cc 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -5,11 +5,12 @@ @@ -24,7 +25,7 @@ - + diff --git a/app/build.gradle b/app/build.gradle index 5713c91..2f4c1a1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,10 +29,11 @@ dependencies { compile 'com.android.support:appcompat-v7:26.1.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:recyclerview-v7:26.1.0' + compile 'com.android.support:cardview-v7:26.1.0' compile 'com.google.android.gms:play-services-ads:10.2.6' testCompile 'junit:junit:4.12' // Room implementation "android.arch.persistence.room:runtime:1.0.0" annotationProcessor "android.arch.persistence.room:compiler:1.0.0" -} +} \ No newline at end of file diff --git a/app/src/main/java/com/bbot/maxflow/MainActivity.java b/app/src/main/java/com/bbot/maxflow/MainActivity.java index bbee63b..58f33b2 100644 --- a/app/src/main/java/com/bbot/maxflow/MainActivity.java +++ b/app/src/main/java/com/bbot/maxflow/MainActivity.java @@ -5,6 +5,7 @@ import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; +import android.support.v7.widget.CardView; import android.view.Menu; import android.view.MenuItem; import android.view.View; diff --git a/app/src/main/java/com/bbot/maxflow/SolverPanel.java b/app/src/main/java/com/bbot/maxflow/SolverPanel.java index ffbf130..dfe36f2 100644 --- a/app/src/main/java/com/bbot/maxflow/SolverPanel.java +++ b/app/src/main/java/com/bbot/maxflow/SolverPanel.java @@ -20,7 +20,7 @@ public SolverPanel(Context context, String serialized) { updateShowBtns(); fit = false; HighlightAugPaths = true; - prevBmp = BitmapFactory.decodeResource(getResources(), R.drawable.keyboard_left_arrow_button); + prevBmp = BitmapFactory.decodeResource(getResources(), R.drawable.ic_keyboard_arrow_left_black_24dp); nextBmp = BitmapFactory.decodeResource(getResources(), R.drawable.keyboard_right_arrow_button); bmpW = prevBmp.getWidth(); bmpH = prevBmp.getHeight(); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 8de9c52..f26ba98 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -3,40 +3,127 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".MainActivity"> + tools:context=".MainActivity" + android:orientation="vertical"> - - + + + android:layout_width="160dp" + android:layout_height="185dp" + android:layout_margin="10dp"> + + +