Browse Source

Started Voting Page1

pull/2/head
Yiğit Çolakoğlu 6 years ago
parent
commit
98b6ca5467
14 changed files with 37 additions and 61 deletions
  1. +1
    -1
      MyCity/app/build.gradle
  2. +12
    -0
      MyCity/app/src/main/java/gq/yigit/mycity/MainActivity.java
  3. +4
    -0
      MyCity/app/src/main/java/gq/yigit/mycity/VotesActivity.java
  4. +0
    -12
      MyCity/app/src/main/res/drawable-v21/ic_menu_camera.xml
  5. +0
    -9
      MyCity/app/src/main/res/drawable-v21/ic_menu_gallery.xml
  6. +0
    -9
      MyCity/app/src/main/res/drawable-v21/ic_menu_manage.xml
  7. +0
    -9
      MyCity/app/src/main/res/drawable-v21/ic_menu_send.xml
  8. +0
    -9
      MyCity/app/src/main/res/drawable-v21/ic_menu_share.xml
  9. +0
    -9
      MyCity/app/src/main/res/drawable-v21/ic_menu_slideshow.xml
  10. +0
    -0
      MyCity/app/src/main/res/drawable/utility.xml
  11. +0
    -0
      MyCity/app/src/main/res/drawable/vote.xml
  12. +1
    -1
      MyCity/app/src/main/res/layout/app_bar_main.xml
  13. +17
    -0
      MyCity/app/src/main/res/layout/voting_content.xml
  14. +2
    -2
      MyCity/app/src/main/res/menu/activity_main_drawer.xml

+ 1
- 1
MyCity/app/build.gradle View File

@ -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'


+ 12
- 0
MyCity/app/src/main/java/gq/yigit/mycity/MainActivity.java View File

@ -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);


+ 4
- 0
MyCity/app/src/main/java/gq/yigit/mycity/VotesActivity.java View File

@ -0,0 +1,4 @@
package gq.yigit.mycity;
public class VotesActivity {
}

+ 0
- 12
MyCity/app/src/main/res/drawable-v21/ic_menu_camera.xml View File

@ -1,12 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0"/>
<path
android:fillColor="#FF000000"
android:pathData="M9,2L7.17,4H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2h-3.17L15,2H9zm3,15c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z"/>
</vector>

+ 0
- 9
MyCity/app/src/main/res/drawable-v21/ic_menu_gallery.xml View File

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M22,16V4c0,-1.1 -0.9,-2 -2,-2H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zm-11,-4l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z"/>
</vector>

+ 0
- 9
MyCity/app/src/main/res/drawable-v21/ic_menu_manage.xml View File

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M22.7,19l-9.1,-9.1c0.9,-2.3 0.4,-5 -1.5,-6.9 -2,-2 -5,-2.4 -7.4,-1.3L9,6 6,9 1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1c1.9,1.9 4.6,2.4 6.9,1.5l9.1,9.1c0.4,0.4 1,0.4 1.4,0l2.3,-2.3c0.5,-0.4 0.5,-1.1 0.1,-1.4z"/>
</vector>

+ 0
- 9
MyCity/app/src/main/res/drawable-v21/ic_menu_send.xml View File

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M2.01,21L23,12 2.01,3 2,10l15,2 -15,2z"/>
</vector>

+ 0
- 9
MyCity/app/src/main/res/drawable-v21/ic_menu_share.xml View File

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
</vector>

+ 0
- 9
MyCity/app/src/main/res/drawable-v21/ic_menu_slideshow.xml View File

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M4,6H2v14c0,1.1 0.9,2 2,2h14v-2H4V6zm16,-4H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zm-8,12.5v-9l6,4.5 -6,4.5z"/>
</vector>

MyCity/app/src/main/res/drawable/house.xml → MyCity/app/src/main/res/drawable/utility.xml View File


MyCity/app/src/main/res/drawable/check.xml → MyCity/app/src/main/res/drawable/vote.xml View File


+ 1
- 1
MyCity/app/src/main/res/layout/app_bar_main.xml View File

@ -21,7 +21,7 @@
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main"/>
<include android:id="@+id/page" layout="@layout/content_main"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"


+ 17
- 0
MyCity/app/src/main/res/layout/voting_content.xml View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="368dp"
android:layout_height="418dp" android:layout_marginTop="12dp"
app:layout_constraintTop_toBottomOf="@+id/sortby" android:id="@+id/votes"
app:layout_constraintStart_toStartOf="@+id/sortby"/>
<Spinner
android:layout_width="316dp"
android:layout_height="29dp"
android:id="@+id/sortby"
app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="8dp"
app:layout_constraintTop_toTopOf="parent" android:layout_marginTop="16dp"/>
</android.support.constraint.ConstraintLayout>

+ 2
- 2
MyCity/app/src/main/res/menu/activity_main_drawer.xml View File

@ -28,11 +28,11 @@
android:title="Rate"/>
<item
android:id="@+id/voting"
android:icon="@drawable/check"
android:icon="@drawable/vote"
android:title="Vote"/>
<item
android:id="@+id/utilities"
android:icon="@drawable/house"
android:icon="@drawable/utility"
android:title="Utilities"/>
</menu>
</item>


Loading…
Cancel
Save