From 98b6ca5467bd213c703df306a3f071ebcb749d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 13 Mar 2019 15:08:00 +0300 Subject: [PATCH] Started Voting Page1 --- MyCity/app/build.gradle | 2 +- .../main/java/gq/yigit/mycity/MainActivity.java | 12 ++++++++++++ .../java/gq/yigit/mycity/VotesActivity.java | 4 ++++ .../main/res/drawable-v21/ic_menu_camera.xml | 12 ------------ .../main/res/drawable-v21/ic_menu_gallery.xml | 9 --------- .../main/res/drawable-v21/ic_menu_manage.xml | 9 --------- .../src/main/res/drawable-v21/ic_menu_send.xml | 9 --------- .../src/main/res/drawable-v21/ic_menu_share.xml | 9 --------- .../main/res/drawable-v21/ic_menu_slideshow.xml | 9 --------- .../res/drawable/{house.xml => utility.xml} | 0 .../main/res/drawable/{check.xml => vote.xml} | 0 MyCity/app/src/main/res/layout/app_bar_main.xml | 2 +- .../app/src/main/res/layout/voting_content.xml | 17 +++++++++++++++++ .../src/main/res/menu/activity_main_drawer.xml | 4 ++-- 14 files changed, 37 insertions(+), 61 deletions(-) create mode 100644 MyCity/app/src/main/java/gq/yigit/mycity/VotesActivity.java delete mode 100644 MyCity/app/src/main/res/drawable-v21/ic_menu_camera.xml delete mode 100644 MyCity/app/src/main/res/drawable-v21/ic_menu_gallery.xml delete mode 100644 MyCity/app/src/main/res/drawable-v21/ic_menu_manage.xml delete mode 100644 MyCity/app/src/main/res/drawable-v21/ic_menu_send.xml delete mode 100644 MyCity/app/src/main/res/drawable-v21/ic_menu_share.xml delete mode 100644 MyCity/app/src/main/res/drawable-v21/ic_menu_slideshow.xml rename MyCity/app/src/main/res/drawable/{house.xml => utility.xml} (100%) rename MyCity/app/src/main/res/drawable/{check.xml => vote.xml} (100%) create mode 100644 MyCity/app/src/main/res/layout/voting_content.xml diff --git a/MyCity/app/build.gradle b/MyCity/app/build.gradle index 33e86be..9e5ede1 100644 --- a/MyCity/app/build.gradle +++ b/MyCity/app/build.gradle @@ -20,7 +20,7 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - api "cz.msebera.android:httpclient:4.4.1.2" + api 'cz.msebera.android:httpclient:4.4.1.2' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:appcompat-v7:27.0.0' implementation 'com.android.support:design:27.0.0' diff --git a/MyCity/app/src/main/java/gq/yigit/mycity/MainActivity.java b/MyCity/app/src/main/java/gq/yigit/mycity/MainActivity.java index 22e6374..b627338 100644 --- a/MyCity/app/src/main/java/gq/yigit/mycity/MainActivity.java +++ b/MyCity/app/src/main/java/gq/yigit/mycity/MainActivity.java @@ -80,7 +80,19 @@ public class MainActivity extends AppCompatActivity // Handle navigation view item clicks here. int id = item.getItemId(); + if (id == R.id.voting) { +// R.id.page + } else if (id == R.id.parking) { + } else if (id == R.id.transit) { + + } else if (id == R.id.navigation) { + + } else if (id == R.id.rating) { + + } else if (id == R.id.utilities) { + + } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); diff --git a/MyCity/app/src/main/java/gq/yigit/mycity/VotesActivity.java b/MyCity/app/src/main/java/gq/yigit/mycity/VotesActivity.java new file mode 100644 index 0000000..a31b4a7 --- /dev/null +++ b/MyCity/app/src/main/java/gq/yigit/mycity/VotesActivity.java @@ -0,0 +1,4 @@ +package gq.yigit.mycity; + +public class VotesActivity { +} diff --git a/MyCity/app/src/main/res/drawable-v21/ic_menu_camera.xml b/MyCity/app/src/main/res/drawable-v21/ic_menu_camera.xml deleted file mode 100644 index 00353e8..0000000 --- a/MyCity/app/src/main/res/drawable-v21/ic_menu_camera.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/MyCity/app/src/main/res/drawable-v21/ic_menu_gallery.xml b/MyCity/app/src/main/res/drawable-v21/ic_menu_gallery.xml deleted file mode 100644 index 2ad25c4..0000000 --- a/MyCity/app/src/main/res/drawable-v21/ic_menu_gallery.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/MyCity/app/src/main/res/drawable-v21/ic_menu_manage.xml b/MyCity/app/src/main/res/drawable-v21/ic_menu_manage.xml deleted file mode 100644 index 2cb006c..0000000 --- a/MyCity/app/src/main/res/drawable-v21/ic_menu_manage.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/MyCity/app/src/main/res/drawable-v21/ic_menu_send.xml b/MyCity/app/src/main/res/drawable-v21/ic_menu_send.xml deleted file mode 100644 index 727418b..0000000 --- a/MyCity/app/src/main/res/drawable-v21/ic_menu_send.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/MyCity/app/src/main/res/drawable-v21/ic_menu_share.xml b/MyCity/app/src/main/res/drawable-v21/ic_menu_share.xml deleted file mode 100644 index 5767ab1..0000000 --- a/MyCity/app/src/main/res/drawable-v21/ic_menu_share.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/MyCity/app/src/main/res/drawable-v21/ic_menu_slideshow.xml b/MyCity/app/src/main/res/drawable-v21/ic_menu_slideshow.xml deleted file mode 100644 index a6dc0b1..0000000 --- a/MyCity/app/src/main/res/drawable-v21/ic_menu_slideshow.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/MyCity/app/src/main/res/drawable/house.xml b/MyCity/app/src/main/res/drawable/utility.xml similarity index 100% rename from MyCity/app/src/main/res/drawable/house.xml rename to MyCity/app/src/main/res/drawable/utility.xml diff --git a/MyCity/app/src/main/res/drawable/check.xml b/MyCity/app/src/main/res/drawable/vote.xml similarity index 100% rename from MyCity/app/src/main/res/drawable/check.xml rename to MyCity/app/src/main/res/drawable/vote.xml diff --git a/MyCity/app/src/main/res/layout/app_bar_main.xml b/MyCity/app/src/main/res/layout/app_bar_main.xml index 9d2c8f4..3b1cbd9 100644 --- a/MyCity/app/src/main/res/layout/app_bar_main.xml +++ b/MyCity/app/src/main/res/layout/app_bar_main.xml @@ -21,7 +21,7 @@ - + + + + + + \ No newline at end of file diff --git a/MyCity/app/src/main/res/menu/activity_main_drawer.xml b/MyCity/app/src/main/res/menu/activity_main_drawer.xml index a78f6ac..cbf9424 100644 --- a/MyCity/app/src/main/res/menu/activity_main_drawer.xml +++ b/MyCity/app/src/main/res/menu/activity_main_drawer.xml @@ -28,11 +28,11 @@ android:title="Rate"/>