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"/>