diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-23 07:58:19 +0000 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-11-23 07:58:19 +0000 |
commit | f67344d076adfd2899dfeff7fc547d5d07358453 (patch) | |
tree | 490d1662106e3aa356f19f70cfd8fd7617e7abd3 /Client/BrzoDoLokacije/app/src/main/res/layout | |
parent | 19b7461db83097911940f37ecd2484c2149cb054 (diff) | |
parent | f78e1b517442e51e091ae409b83f000ed37f275f (diff) |
Merge branch 'develop' into 'master'
Develop->Master
See merge request BrzoDoLokacije2022/odyssey/brzodolokacije!7
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
20 files changed, 1460 insertions, 65 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_add_post.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_add_post.xml index a7a6e06..fbe2230 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_add_post.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_add_post.xml @@ -19,7 +19,7 @@ <Button android:id="@+id/nextImage" android:layout_width="78dp" - android:layout_height="499dp" + android:layout_height="0dp" android:background="@drawable/rounded_transparent_button" android:gravity="right" android:padding="30dp" @@ -33,7 +33,7 @@ <Button android:id="@+id/previousImage" android:layout_width="70dp" - android:layout_height="497dp" + android:layout_height="0dp" android:background="@drawable/rounded_transparent_button" android:gravity="left" @@ -73,7 +73,7 @@ <EditText android:id="@+id/etActivityAddPostLocation" - android:layout_width="match_parent" + android:layout_width="200dp" android:layout_height="50dp" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" @@ -81,9 +81,22 @@ android:hint="Reykjavik, Iceland" android:inputType="textEmailAddress" app:layout_constraintBottom_toTopOf="@+id/tvActivityAddPostDescriptiontext" - app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> + <Button + android:id="@+id/btnActivityAddPostAddLocation" + android:layout_width="wrap_content" + android:layout_height="50dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:background="@drawable/rounded_cyan_button" + android:backgroundTint="#1C789A" + android:text="Dodaj lokaciju" + app:layout_constraintBottom_toTopOf="@+id/tvActivityAddPostDescriptiontext" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@+id/etActivityAddPostLocation" /> + + <TextView android:id="@+id/tvActivityAddPostDescriptiontext" android:layout_width="match_parent" @@ -104,7 +117,7 @@ android:ems="10" android:hint="Reykjavik, Iceland" android:inputType="textEmailAddress" - app:layout_constraintBottom_toTopOf="@+id/btnActivityAddPostPost" + app:layout_constraintBottom_toTopOf="@+id/llTags" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> @@ -136,5 +149,44 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@+id/isActivityAddPostSwitcher" /> + <LinearLayout + android:id="@+id/llTags" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginLeft="20dp" + android:layout_marginRight="20dp" + android:orientation="horizontal" + app:layout_constraintBottom_toTopOf="@+id/acTags" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"></LinearLayout> + + <EditText + android:id="@+id/acTags" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginLeft="20dp" + android:layout_marginRight="20dp" + android:hint="Planina,Reka,Park..." + android:minHeight="48dp" + android:maxLength= "12" + app:layout_constraintBottom_toTopOf="@+id/btnActivityAddPostPost" + app:layout_constraintEnd_toStartOf="@+id/btnActivityAddPostAddTag" + app:layout_constraintStart_toStartOf="parent" /> + + <Button + android:id="@+id/btnActivityAddPostAddTag" + android:layout_width="wrap_content" + android:layout_height="40dp" + android:layout_marginTop="5dp" + android:layout_marginEnd="20dp" + android:layout_marginStart="20dp" + android:layout_marginBottom="5dp" + android:background="@drawable/rounded_cyan_button" + android:backgroundTint="#1C789A" + android:text="Dodaj tag" + app:layout_constraintBottom_toTopOf="@+id/btnActivityAddPostPost" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@+id/llTags" /> + </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_capture_post.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_capture_post.xml index 23d34ee..2b64a27 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_capture_post.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_capture_post.xml @@ -39,59 +39,68 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" - android:layout_marginTop="516dp" android:layout_marginEnd="16dp" android:text="Lokacija" + app:layout_constraintBottom_toTopOf="@+id/etActivityCapturePostLocation" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintStart_toStartOf="parent" /> <EditText android:id="@+id/etActivityCapturePostLocation" - android:layout_width="match_parent" + android:layout_width="200dp" android:layout_height="50dp" android:layout_marginStart="16dp" - android:layout_marginTop="4dp" android:layout_marginEnd="16dp" android:ems="10" android:hint="Reykjavik, Iceland" + android:importantForAutofill="no" android:inputType="textEmailAddress" + app:layout_constraintBottom_toTopOf="@+id/tvActivityCapturePostDescriptiontext" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/tvActivityCapturePostLocationtext" - tools:ignore="DuplicateSpeakableTextCheck,TextContrastCheck" - android:importantForAutofill="no" /> + tools:ignore="DuplicateSpeakableTextCheck,TextContrastCheck" /> + <Button + android:id="@+id/btnActivityCapturePostAddLocation" + android:layout_width="wrap_content" + android:layout_height="50dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:background="@drawable/rounded_cyan_button" + android:backgroundTint="#1C789A" + android:text="Dodaj lokaciju" + app:layout_constraintBottom_toTopOf="@+id/tvActivityCapturePostDescriptiontext" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@+id/etActivityCapturePostLocation" /> + <TextView android:id="@+id/tvActivityCapturePostDescriptiontext" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" - android:layout_marginTop="8dp" android:layout_marginEnd="16dp" android:text="Opis" + app:layout_constraintBottom_toTopOf="@+id/etActivityCapturePostDescription" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="1.0" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/etActivityCapturePostLocation" /> + app:layout_constraintStart_toStartOf="parent" /> <EditText android:id="@+id/etActivityCapturePostDescription" android:layout_width="match_parent" android:layout_height="50dp" android:layout_marginStart="16dp" - android:layout_marginTop="4dp" android:layout_marginEnd="16dp" android:ems="10" android:hint="Reykjavik, Iceland" + android:importantForAutofill="no" android:inputType="textEmailAddress" + app:layout_constraintBottom_toTopOf="@+id/llTagsCap" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/tvActivityCapturePostDescriptiontext" - tools:ignore="TextContrastCheck" - android:importantForAutofill="no" /> + tools:ignore="TextContrastCheck" /> <Button @@ -126,4 +135,43 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> + <LinearLayout + android:id="@+id/llTagsCap" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginLeft="20dp" + android:layout_marginRight="20dp" + android:orientation="horizontal" + app:layout_constraintBottom_toTopOf="@+id/acTagsCap" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"></LinearLayout> + + <EditText + android:id="@+id/acTagsCap" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginLeft="20dp" + android:layout_marginRight="20dp" + android:hint="Planina,Reka,Park..." + android:minHeight="48dp" + android:maxLength= "12" + app:layout_constraintBottom_toTopOf="@+id/btnActivityCapturePostPost" + app:layout_constraintEnd_toStartOf="@+id/btnActivityAddPostAddTagCap" + app:layout_constraintStart_toStartOf="parent" /> + + <Button + android:id="@+id/btnActivityAddPostAddTagCap" + android:layout_width="wrap_content" + android:layout_height="40dp" + android:layout_marginTop="5dp" + android:layout_marginEnd="20dp" + android:layout_marginStart="20dp" + android:layout_marginBottom="5dp" + android:background="@drawable/rounded_cyan_button" + android:backgroundTint="#1C789A" + android:text="Dodaj tag" + app:layout_constraintBottom_toTopOf="@+id/btnActivityCapturePostPost" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@+id/llTagsCap" /> + </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat.xml new file mode 100644 index 0000000..9e28d6d --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.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" + tools:context=".Activities.ChatActivity"> + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/topBanner" + android:layout_width="match_parent" + android:clickable="true" + android:layout_height="50dp" + android:background="@color/dark_blue_transparent" + app:layout_constraintStart_toStartOf="parent"> + <TextView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:textSize="40dp" + android:id="@+id/tvFragmentTitle" + android:text="Chat" + android:textColor="@color/white"/> + + </androidx.constraintlayout.widget.ConstraintLayout> + <ImageButton + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/addNewMessage" + android:clickable="true" + android:focusable="true" + app:layout_constraintTop_toBottomOf="@id/topBanner" + android:src="@drawable/button_chat"> + + + </ImageButton> + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:id="@+id/swipeContainer" + app:layout_constraintTop_toBottomOf="@id/addNewMessage"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvMain" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" > + + </androidx.recyclerview.widget.RecyclerView> + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat_conversation.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat_conversation.xml new file mode 100644 index 0000000..72060f7 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat_conversation.xml @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.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" + tools:context=".Activities.ChatActivityConversation"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/topBanner" + android:layout_width="match_parent" + android:layout_height="50dp" + android:elevation="5dp" + android:background="@color/dark_blue_transparent" + android:clickable="true" + app:layout_constraintStart_toStartOf="parent"> + + <TextView + android:id="@+id/tvFragmentTitle" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="Chat" + android:textColor="@color/white" + android:textSize="40dp" /> + + <androidx.cardview.widget.CardView + android:id="@+id/cvParentUsername" + android:layout_width="match_parent" + android:layout_height="40dp" + android:layout_marginStart="16dp" + android:layout_marginTop="10dp" + android:layout_marginEnd="16dp" + android:elevation="0dp" + app:cardCornerRadius="20dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/etReceiverUsername" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/rounded_white_button_login" + android:hint=" kome slati poruku?" + android:inputType="textPersonName" + android:paddingLeft="15dp" /> + + + </androidx.cardview.widget.CardView> + + </androidx.constraintlayout.widget.ConstraintLayout> + + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/messagesContainer" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_constraintBottom_toTopOf="@id/cvParentMessageEdit" + app:layout_constrainedHeight="true"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvMain" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_constraintBottom_toBottomOf="parent" + > + + </androidx.recyclerview.widget.RecyclerView> + </androidx.constraintlayout.widget.ConstraintLayout> + + <androidx.cardview.widget.CardView + android:id="@+id/cvParentMessageEdit" + android:layout_width="match_parent" + android:layout_height="40dp" + android:layout_marginStart="16dp" + android:layout_marginTop="10dp" + android:layout_marginEnd="16dp" + android:elevation="0dp" + app:cardCornerRadius="20dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"> + + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/etNewMessage" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/rounded_white_button_login" + android:hint=" poruka" + android:inputType="textPersonName" + android:paddingLeft="15dp" /> + + <ImageButton + android:id="@+id/btnSendMessage" + android:layout_width="49dp" + android:layout_height="50dp" + android:layout_gravity="right" + android:scaleType="centerCrop" + android:src="@drawable/post_comment" + app:cornerRadius="16dp" /> + + </androidx.cardview.widget.CardView> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml index 01c8abd..8d37c29 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml @@ -1,9 +1,89 @@ <?xml version="1.0" encoding="utf-8"?> -<fragment xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:map="http://schemas.android.com/apk/res-auto" +<androidx.constraintlayout.widget.ConstraintLayout + xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - android:id="@+id/map" - android:name="com.google.android.gms.maps.SupportMapFragment" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".Activities.MapsActivity" />
\ No newline at end of file + tools:context=".Activities.MapsActivity"> + <org.osmdroid.views.MapView + android:id="@+id/ActivityMapsMapView" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + /> + + + + <com.google.android.material.floatingactionbutton.FloatingActionButton + android:id="@+id/ActivityMapsMyLocation" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:backgroundTint="#FFFFFF" + android:layout_marginRight="10dp" + android:layout_marginBottom="80dp" + android:clickable="true" + android:focusable="true" + android:tint="#FFFFFF" + app:layout_constraintBottom_toBottomOf="@+id/ActivityMapsMapView" + app:layout_constraintEnd_toEndOf="parent" + app:rippleColor="#FFFFFF" + app:srcCompat="@android:drawable/ic_menu_mylocation" /> + + <com.google.android.material.floatingactionbutton.FloatingActionButton + android:id="@+id/ActivityMapsConfirmLocation" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_marginBottom="80dp" + android:layout_marginLeft="10dp" + android:backgroundTint="#FFFFFF" + android:clickable="true" + android:focusable="true" + android:tint="#FFFFFF" + app:layout_constraintBottom_toBottomOf="@+id/ActivityMapsMapView" + app:layout_constraintStart_toStartOf="parent" + app:rippleColor="#FFFFFF" + app:srcCompat="@drawable/ic_baseline_check_24" + android:visibility="invisible"/> + + <androidx.cardview.widget.CardView + android:id="@+id/ActivityMapsCardViewSearch" + android:layout_width="0dp" + android:layout_marginTop="60dp" + android:layout_height="40dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:elevation="0dp" + app:cardCornerRadius="20dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/ActivityMapsSearchBar" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/rounded_white_button_login" + android:hint=" Pretraga" + android:inputType="textPersonName" + android:paddingLeft="15dp" /> + + <com.google.android.material.button.MaterialButton + android:id="@+id/ActivityMapsSearchButton" + android:layout_width="49dp" + android:layout_height="match_parent" + android:layout_gravity="right" + android:background="#00FFFFFF" + app:backgroundTint="#00FFFFFF" + app:cornerRadius="16dp" + app:icon="@drawable/ic_baseline_search_24" + app:iconTint="#333D70" /> + + </androidx.cardview.widget.CardView> + + </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_single_post.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_single_post.xml index 7c1f8bc..e3cabb5 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_single_post.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_single_post.xml @@ -41,8 +41,8 @@ android:gravity="top|start" android:padding="@dimen/text_padding" android:text="Drzava, grad" - app:layout_constraintTop_toBottomOf="@+id/tvLocationType" - tools:layout_editor_absoluteX="0dp" /> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/tvLocationType" /> <TextView android:id="@+id/tvTitle" @@ -52,7 +52,8 @@ android:padding="@dimen/text_padding" android:text="Naslov" android:textSize="@dimen/header1_size" - android:textStyle="bold" /> + android:textStyle="bold" + app:layout_constraintStart_toStartOf="parent" /> <TextView android:id="@+id/tvLocationType" @@ -61,15 +62,27 @@ android:gravity="top|start" android:padding="@dimen/text_padding" android:text="Tip lokacije" - app:layout_constraintTop_toBottomOf="@+id/tvTitle" - tools:layout_editor_absoluteX="0dp" /> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/tvTitle" /> + + <TextView + android:id="@+id/tvUser" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:clickable="true" + android:gravity="top|start" + android:padding="@dimen/text_padding" + android:text="User" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/tvLocationParent" /> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/constraintLayout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="20dp" + android:layout_marginTop="36dp" app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/tvLocationParent"> @@ -161,6 +174,7 @@ android:layout_height="wrap_content" android:text="TextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextViewTextView" app:layout_constraintTop_toBottomOf="@+id/tvDescriptionLabel" /> + </androidx.constraintlayout.widget.ConstraintLayout> <LinearLayout @@ -177,9 +191,9 @@ android:layout_width="30dp" android:layout_height="40dp" android:layout_gravity="center_vertical" - android:scaleType="centerCrop" android:layout_weight="1" android:backgroundTint="@color/white" + android:scaleType="centerCrop" android:src="@drawable/empty_star" /> <ImageButton @@ -187,9 +201,9 @@ android:layout_width="30dp" android:layout_height="40dp" android:layout_gravity="center_vertical" - android:scaleType="centerCrop" android:layout_weight="1" android:backgroundTint="@color/white" + android:scaleType="centerCrop" android:src="@drawable/empty_star" /> <ImageButton @@ -197,9 +211,9 @@ android:layout_width="30dp" android:layout_height="40dp" android:layout_gravity="center_vertical" - android:scaleType="centerCrop" android:layout_weight="1" android:backgroundTint="@color/white" + android:scaleType="centerCrop" android:src="@drawable/empty_star" /> <ImageButton @@ -207,9 +221,9 @@ android:layout_width="30dp" android:layout_height="40dp" android:layout_gravity="center_vertical" - android:scaleType="centerCrop" android:layout_weight="1" android:backgroundTint="@color/white" + android:scaleType="centerCrop" android:src="@drawable/empty_star" /> <ImageButton @@ -217,48 +231,48 @@ android:layout_width="30dp" android:layout_height="40dp" android:layout_gravity="center_vertical" - android:scaleType="centerCrop" android:layout_weight="1" android:backgroundTint="@color/white" + android:scaleType="centerCrop" android:src="@drawable/empty_star" /> <Button android:id="@+id/submitRating" android:layout_width="30dp" android:layout_height="40dp" + android:layout_gravity="center_vertical" android:layout_weight="1" android:backgroundTint="@color/white" android:text="ok" - android:layout_gravity="center_vertical" - android:textColor="@color/black" - /> + android:textColor="@color/black" /> </LinearLayout> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintTop_toBottomOf="@id/linearLayout2"> + <LinearLayout + android:id="@+id/postCommentLayout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:id="@+id/postCommentLayout" android:orientation="horizontal" - app:layout_constraintStart_toStartOf="parent" > + app:layout_constraintStart_toStartOf="parent"> + <EditText + android:id="@+id/NewComment" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" - android:hint="Unesite komentar ovde" - android:id="@+id/NewComment" - /> + android:hint="Unesite komentar ovde" /> <ImageButton android:id="@+id/btnPostComment" android:layout_width="50dp" - android:scaleType="fitCenter" android:layout_height="50dp" - android:src="@drawable/post_comment" - android:backgroundTint="@color/white"/> + android:backgroundTint="@color/white" + android:scaleType="fitCenter" + android:src="@drawable/post_comment" /> </LinearLayout> @@ -266,26 +280,26 @@ android:id="@+id/tvCommentLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" - app:layout_constraintTop_toBottomOf="@id/postCommentLayout" android:padding="@dimen/text_padding" android:text="Komentari" - android:textStyle="bold" /> + android:textStyle="bold" + app:layout_constraintTop_toBottomOf="@id/postCommentLayout" /> <TextView android:id="@+id/tvCommentCount" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="@dimen/text_padding" - app:layout_constraintTop_toBottomOf="@id/postCommentLayout" - android:text="3" - app:layout_constraintStart_toEndOf="@id/tvCommentLabel" /> + android:text="0" + app:layout_constraintStart_toEndOf="@id/tvCommentLabel" + app:layout_constraintTop_toBottomOf="@id/postCommentLayout" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/rvComments" android:layout_width="match_parent" android:layout_height="wrap_content" - app:layout_constraintTop_toBottomOf="@id/tvCommentLabel" - android:nestedScrollingEnabled="false"> + android:nestedScrollingEnabled="false" + app:layout_constraintTop_toBottomOf="@id/tvCommentLabel"> </androidx.recyclerview.widget.RecyclerView> </androidx.constraintlayout.widget.ConstraintLayout> diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml new file mode 100644 index 0000000..8762183 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml @@ -0,0 +1,252 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + tools:context=".Activities.ActivityUserProfile"> + + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + + android:id="@+id/imageView3" + android:layout_width="match_parent" + android:layout_height="300dp" + android:foreground="@drawable/b3" + android:foregroundGravity="center_vertical|center|center_horizontal|fill" + android:src="@drawable/b3" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + + <com.google.android.material.imageview.ShapeableImageView + + android:id="@+id/tvFragmentProfileInfoContainer" + android:layout_width="0dp" + android:layout_height="199dp" + android:layout_marginStart="20dp" + android:layout_marginTop="150dp" + android:layout_marginEnd="20dp" + android:adjustViewBounds="true" + android:background="@drawable/profile_view_background" + + android:elevation="1dp" + android:scaleType="fitEnd" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/imageView3" + app:shapeAppearanceOverlay="@style/imageViewRoundedEdge" /> + + + <androidx.cardview.widget.CardView + android:id="@+id/cvFragmentHomePageProfile" + android:layout_width="140dp" + android:layout_height="140dp" + android:layout_gravity="center" + android:layout_marginTop="80dp" + android:elevation="10dp" + app:cardCornerRadius="250dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + <ImageView + + android:id="@+id/tvActivityProfileProfilePicture" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:elevation="10dp" + android:scaleType="centerCrop" + android:src="@drawable/ic_baseline_person_24" + tools:ignore="ContentDescription" /> + </androidx.cardview.widget.CardView> + + <View + android:id="@+id/divider" + android:layout_width="409dp" + android:layout_height="1dp" + android:background="?android:attr/listDivider" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/btnFragmentUserProfileShowPosts" /> + + <Button + android:id="@+id/btnFragmentUserProfileShowPosts" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="20dp" + android:layout_marginTop="4dp" + android:backgroundTint="#FFFFFF" + android:stateListAnimator="@null" + android:text="Objave" + + android:textColor="@color/cardview_dark_background" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + + <Button + android:id="@+id/btnFragmentUserProfileShowData" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:layout_marginEnd="20dp" + android:backgroundTint="#FFFFFF" + android:stateListAnimator="@null" + android:text="Podaci" + + android:textColor="@color/cardview_dark_background" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="1.0" + app:layout_constraintStart_toEndOf="@+id/btnFragmentUserProfileShowRecensions" + app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + + <Button + android:id="@+id/btnFragmentUserProfileShowRecensions" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="36dp" + android:layout_marginTop="4dp" + android:backgroundTint="#FFFFFF" + android:stateListAnimator="@null" + android:text="Recenzije" + android:textColor="@color/cardview_dark_background" + app:layout_constraintStart_toEndOf="@+id/btnFragmentUserProfileShowPosts" + app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + + <FrameLayout + android:id="@+id/flFragmentProfileFragmentContainer" + android:layout_width="409dp" + android:layout_height="319dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/divider"> + </FrameLayout> + + <TableLayout + + android:layout_width="363dp" + + android:layout_height="122dp" + android:layout_marginStart="30dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="30dp" + android:layout_marginBottom="8dp" + android:elevation="1dp" + android:numColumns="3" + + android:stretchColumns="1" + app:layout_constraintBottom_toBottomOf="@+id/tvFragmentProfileInfoContainer" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/cvFragmentHomePageProfile"> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_column="1"> + + <TextView + android:id="@+id/tvActivityUserProfileName" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_column="1" + android:layout_gravity="center" + android:layout_marginBottom="5dp" + android:text="Petar Petrović" + android:textSize="20sp" /> + </TableRow> + + <TableRow> + + <androidx.constraintlayout.widget.ConstraintLayout android:layout_span="3"> + + <ImageButton + + android:id="@+id/materialButton" + android:layout_width="115dp" + android:layout_height="40dp" + android:layout_marginStart="16dp" + android:background="@drawable/rounded_transparent_button" + android:foreground="@drawable/button_follow" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.0" + tools:ignore="TouchTargetSizeCheck" /> + + <ImageButton + android:layout_width="115dp" + android:layout_height="40dp" + android:layout_gravity="center" + android:layout_marginEnd="16dp" + android:height="40dp" + android:background="@drawable/rounded_transparent_button" + android:foreground="@drawable/button_chat" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.0" + tools:ignore="SpeakableTextPresentCheck" /> + </androidx.constraintlayout.widget.ConstraintLayout> + </TableRow> + + + <TableRow android:layout_marginTop="5dp"> + + <TextView + android:id="@+id/tvFragmentUserProfilePosts" + android:layout_width="110dp" + android:gravity="center" + android:text="OBJAVE" /> + + <TextView + android:id="@+id/tvFragmentUserProfileFollowers" + android:layout_width="10dp" + android:gravity="center" + android:text="PRATIOCI" /> + + <TextView + android:id="@+id/tvFragmentUserProfileFollow" + + android:layout_width="110dp" + android:gravity="center" + android:text="PRAĆENJA" /> + </TableRow> + + <TableRow> + + <TextView + android:id="@+id/tvActivityUserProfilePostsNo" + android:layout_width="110dp" + android:layout_height="match_parent" + android:gravity="center" + android:text="156" + android:textFontWeight="700" /> + + <TextView + android:id="@+id/tvActivityUserProfileFollowersNo" + android:layout_width="110dp" + android:gravity="center" + android:text="50" /> + + <TextView + android:id="@+id/tvActivityUserProfileFollowNo" + android:layout_width="110dp" + android:gravity="center" + android:text="40" /> + + </TableRow> + + </TableLayout> + + </androidx.constraintlayout.widget.ConstraintLayout> + + +</FrameLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_filter.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_filter.xml new file mode 100644 index 0000000..249c654 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_filter.xml @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.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="wrap_content"> + + <TextView + android:id="@+id/textView7" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + android:text="Filteri" + android:textSize="25sp" + android:textStyle="bold" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <TextView + android:id="@+id/textView8" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + android:text="@string/datum" + android:textSize="17sp" + android:textStyle="bold" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/textView7" /> + + <EditText + android:id="@+id/dateFromBSF" + android:layout_width="140dp" + android:layout_height="48dp" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:ems="10" + android:inputType="date" + app:layout_constraintStart_toEndOf="@+id/textView9" + app:layout_constraintTop_toBottomOf="@+id/textView8" + tools:ignore="SpeakableTextPresentCheck" /> + + <TextView + android:id="@+id/textView9" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="20dp" + android:text="@string/od" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/textView8" /> + + <TextView + android:id="@+id/textView10" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="20dp" + android:layout_marginEnd="8dp" + android:text="Do" + app:layout_constraintEnd_toStartOf="@+id/dateToBSF" + app:layout_constraintTop_toBottomOf="@+id/textView8" /> + + <EditText + android:id="@+id/dateToBSF" + android:layout_width="140dp" + android:layout_height="48dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="16dp" + android:ems="10" + android:inputType="date" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@+id/textView8" + tools:ignore="SpeakableTextPresentCheck" /> + + <TextView + android:id="@+id/textView11" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + android:text="Lokacija" + android:textSize="17sp" + android:textStyle="bold" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/divider2" /> + + <View + android:id="@+id/divider2" + android:layout_width="409dp" + android:layout_height="1dp" + android:background="?android:attr/listDivider" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/dateFromBSF" /> + + <EditText + android:id="@+id/locationBSF" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="24dp" + android:ems="10" + android:inputType="textPersonName" + app:layout_constraintEnd_toStartOf="@+id/imageView8" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/textView11" + tools:ignore="TouchTargetSizeCheck,SpeakableTextPresentCheck" /> + + <ImageView + android:id="@+id/imageView8" + android:layout_width="50dp" + android:layout_height="40dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="16dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@+id/textView11" + app:srcCompat="@drawable/button_find_on_map" /> + + <View + android:id="@+id/divider4" + android:layout_width="409dp" + android:layout_height="1dp" + android:background="?android:attr/listDivider" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/locationBSF" /> + + <Button + android:id="@+id/btnBSFFilter" + android:layout_width="169dp" + android:layout_height="39dp" + android:layout_marginTop="16dp" + android:layout_marginBottom="24dp" + android:background="@drawable/rounded_cyan_button" + android:text="Primeni" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/divider4" + app:layout_constraintVertical_bias="1.0" + tools:ignore="TouchTargetSizeCheck" /> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_sort.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_sort.xml new file mode 100644 index 0000000..fb06308 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_sort.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.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="wrap_content"> + + <RadioGroup + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/textView12"> + + <RadioButton + android:id="@+id/radioButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="12dp" + android:text="Najnovije" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toStartOf="parent" + /> + + <RadioButton + android:id="@+id/radioButton2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:text="Najbolje ocenjeno" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toBottomOf="@+id/radioButton4" /> + + <RadioButton + android:id="@+id/radioButton3" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:text="Najstarije" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/radioButton" /> + + <RadioButton + android:id="@+id/radioButton4" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + + android:text="Najviše pregleda" + app:layout_constraintTop_toBottomOf="@+id/radioButton3" + tools:layout_editor_absoluteX="16dp" /> + </RadioGroup> + + <TextView + android:id="@+id/textView12" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + android:text="Sortiraj po" + android:textSize="25sp" + android:textStyle="bold" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml new file mode 100644 index 0000000..2342779 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:background="@drawable/rounded_cyan_button" + android:clipToOutline="true" + android:id="@+id/clMessage" + android:layout_margin="@dimen/text_padding" + android:layout_gravity="end"> + <androidx.cardview.widget.CardView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:layout_constraintEnd_toEndOf="parent" + app:cardBackgroundColor="@color/cardview_dark_background"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/white" + android:id="@+id/tvMessage" + android:text="blabla" + android:padding="@dimen/component_padding"/> + </androidx.cardview.widget.CardView> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml new file mode 100644 index 0000000..647127c --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:background="@drawable/rounded_cyan_button" + android:id="@+id/clMessage" + android:layout_margin="@dimen/text_padding" + android:clipToOutline="true"> + + <androidx.cardview.widget.CardView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:cardBackgroundColor="@color/dark_blue_transparent"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/white" + android:id="@+id/tvMessage" + android:text="blabla" + android:padding="@dimen/component_padding"/> + </androidx.cardview.widget.CardView> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_preview.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_preview.xml new file mode 100644 index 0000000..35431ff --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_preview.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <androidx.appcompat.widget.AppCompatImageView + android:layout_width="50dp" + android:layout_height="50dp" + android:id="@+id/ivUserImage" + android:src="@drawable/ic_nav_profile"/> + <TextView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:id="@+id/tvUsername" + android:textSize="@dimen/header1_size" + android:textColor="@color/black" + app:layout_constraintStart_toEndOf="@id/ivUserImage"/> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/follower_item.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/follower_item.xml new file mode 100644 index 0000000..bc43f1b --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/follower_item.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.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:id="@+id/tvFolloewItemUsername" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginBottom="10dp"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="1.0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + + <androidx.cardview.widget.CardView + android:id="@+id/cvFragmentHomePageProfile" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_gravity="center" + + android:elevation="10dp" + app:cardCornerRadius="250dp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + <ImageView + + android:id="@+id/tvFragmentProfileProfilePicture" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:elevation="10dp" + android:scaleType="centerCrop" + android:src="@drawable/ic_baseline_person_24" + tools:ignore="ContentDescription" /> + </androidx.cardview.widget.CardView> + + + <TextView + android:id="@+id/tvFollowerItemName" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginHorizontal="15dp" + android:layout_marginStart="24dp" + android:layout_marginTop="28dp" + android:text="Petar Petrovic" + android:textSize="17sp" + android:textStyle="bold" + app:layout_constraintEnd_toStartOf="@+id/materialButton" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toEndOf="@+id/cvFragmentHomePageProfile" + app:layout_constraintTop_toTopOf="parent"> + + </TextView> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Petar Petrovic" + android:textSize="15sp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/materialButton" + app:layout_constraintHorizontal_bias="0.656" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/tvFollowerItemName" + app:layout_constraintVertical_bias="0.0" /> + + <ImageButton + + android:id="@+id/materialButton" + android:layout_width="101dp" + android:layout_height="39dp" + android:layout_marginEnd="16dp" + android:background="@drawable/rounded_transparent_button" + android:foreground="@drawable/button_follow" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.508" + tools:ignore="TouchTargetSizeCheck" /> + + </androidx.constraintlayout.widget.ConstraintLayout> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_followers.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_followers.xml new file mode 100644 index 0000000..6092e01 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_followers.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".Fragments.FragmentFollowers"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + <LinearLayout + android:layout_width="110dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <ImageView + android:id="@+id/btnFragmentFollowersBack" + android:clickable="true" + android:layout_width="30dp" + android:layout_height="30dp" + android:src="@drawable/ic_baseline_arrow_back_24"/> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:text="Pratioci" + android:textSize="20sp" + android:textStyle="bold" + /> + </LinearLayout> + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvFragmentShowFollowers" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + </LinearLayout> +</FrameLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_following.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_following.xml new file mode 100644 index 0000000..424094f --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_following.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".Fragments.FragmentFollowing"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> +<LinearLayout + android:layout_width="80dp" + android:layout_height="wrap_content"> + <ImageView + android:id="@+id/btnFragmentFollowingBack" + android:layout_width="30dp" + android:layout_height="30dp" + android:clickable="true" + android:src="@drawable/ic_baseline_arrow_back_24" + + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:text="Prati" + android:textSize="20sp" + android:textStyle="bold" /> + </LinearLayout> + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvFragmentShowFollowing" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_my_recensions.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_my_recensions.xml index d5452b9..72706e0 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_my_recensions.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_my_recensions.xml @@ -1,14 +1,28 @@ <?xml version="1.0" encoding="utf-8"?> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" +<androidx.constraintlayout.widget.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" tools:context=".Fragments.FragmentMyRecensions"> - <!-- TODO: Update blank fragment layout --> - <TextView + + <com.google.android.material.divider.MaterialDivider + android:id="@+id/materialDivider" + android:layout_width="match_parent" + android:layout_height="50dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + android:visibility="invisible"/> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvFragmentMyRecensionPostHistory" android:layout_width="match_parent" - android:layout_height="match_parent" - android:text="Moje recenzije" /> + android:layout_height="wrap_content" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/materialDivider" + android:layout_marginHorizontal="16dp"/> -</FrameLayout>
\ No newline at end of file +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml index c75e1e4..ec78de6 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml @@ -151,6 +151,7 @@ <TextView android:id="@+id/tvFragmentProfileFollowers" android:gravity="center" + android:clickable="true" android:text="PRATIOCI" /> <TextView @@ -231,7 +232,7 @@ android:layout_marginTop="4dp" android:backgroundTint="#FFFFFF" android:stateListAnimator="@null" - android:text="Recenzije" + android:text="Istorija" android:textColor="@color/cardview_dark_background" app:layout_constraintStart_toEndOf="@+id/btnFragmentProfileShowMyPosts" app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml index 5dfbc98..e1effc4 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml @@ -52,10 +52,11 @@ android:layout_width="50dp" android:layout_height="50dp" android:layout_alignParentRight="true" + android:layout_marginStart="16dp" android:background="@color/white" android:padding="@dimen/component_padding" android:scaleType="centerCrop" - android:src="@drawable/filter" + android:src="@drawable/button_filter" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -63,16 +64,28 @@ android:id="@+id/btnSortDirection" android:layout_width="50dp" android:layout_height="50dp" - android:layout_marginStart="8dp" android:layout_weight="1" android:background="@color/white" android:padding="@dimen/component_padding" android:scaleType="centerCrop" - android:src="@drawable/sort" + android:src="@drawable/button_sort" app:layout_constraintStart_toEndOf="@+id/btnSortType" app:layout_constraintTop_toTopOf="parent" /> <ImageButton + android:id="@+id/btnChat" + android:layout_width="84dp" + android:layout_height="50dp" + android:layout_marginStart="8dp" + android:layout_weight="1" + android:background="@color/white" + android:padding="@dimen/component_padding" + android:scaleType="centerCrop" + android:src="@android:drawable/sym_action_chat" + app:layout_constraintStart_toEndOf="@+id/btnSortDirection" + app:layout_constraintTop_toTopOf="parent" /> + + <ImageButton android:id="@+id/btnLinearLayout" android:layout_width="50dp" android:layout_height="50dp" @@ -91,7 +104,7 @@ android:id="@+id/btnGridLayout" android:layout_width="50dp" android:layout_height="50dp" - android:layout_marginStart="248dp" + android:layout_marginStart="220dp" android:layout_weight="1" android:background="@color/white" android:clickable="true" diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_user_profile.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_user_profile.xml new file mode 100644 index 0000000..15031e3 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_user_profile.xml @@ -0,0 +1,248 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + tools:context=".Fragments.FragmentUserProfile"> + + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + + android:id="@+id/imageView3" + android:layout_width="match_parent" + android:layout_height="300dp" + android:foreground="@drawable/b3" + android:foregroundGravity="center_vertical|center|center_horizontal|fill" + android:src="@drawable/b3" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + + <com.google.android.material.imageview.ShapeableImageView + + android:id="@+id/tvFragmentProfileInfoContainer" + android:layout_width="0dp" + android:layout_height="199dp" + android:layout_marginStart="20dp" + android:layout_marginTop="150dp" + android:layout_marginEnd="20dp" + android:adjustViewBounds="true" + android:background="@drawable/profile_view_background" + + android:elevation="1dp" + android:scaleType="fitEnd" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/imageView3" + app:shapeAppearanceOverlay="@style/imageViewRoundedEdge" /> + + + <androidx.cardview.widget.CardView + android:id="@+id/cvFragmentHomePageProfile" + android:layout_width="140dp" + android:layout_height="140dp" + android:layout_gravity="center" + android:layout_marginTop="80dp" + android:elevation="10dp" + app:cardCornerRadius="250dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + <ImageView + + android:id="@+id/tvFragmentProfileProfilePicture" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:elevation="10dp" + android:scaleType="centerCrop" + android:src="@drawable/ic_baseline_person_24" + tools:ignore="ContentDescription" /> + </androidx.cardview.widget.CardView> + + <View + android:id="@+id/divider" + android:layout_width="409dp" + android:layout_height="1dp" + android:background="?android:attr/listDivider" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/btnFragmentUserProfileShowPosts" /> + + <Button + android:id="@+id/btnFragmentUserProfileShowPosts" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="20dp" + android:layout_marginTop="4dp" + android:backgroundTint="#FFFFFF" + android:stateListAnimator="@null" + android:text="Objave" + + android:textColor="@color/cardview_dark_background" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + + <Button + android:id="@+id/btnFragmentUserProfileShowData" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:layout_marginEnd="20dp" + android:backgroundTint="#FFFFFF" + android:stateListAnimator="@null" + android:text="Podaci" + + android:textColor="@color/cardview_dark_background" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="1.0" + app:layout_constraintStart_toEndOf="@+id/btnFragmentUserProfileShowRecensions" + app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + + <Button + android:id="@+id/btnFragmentUserProfileShowRecensions" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="36dp" + android:layout_marginTop="4dp" + android:backgroundTint="#FFFFFF" + android:stateListAnimator="@null" + android:text="Recenzije" + android:textColor="@color/cardview_dark_background" + app:layout_constraintStart_toEndOf="@+id/btnFragmentUserProfileShowPosts" + app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + + <FrameLayout + android:id="@+id/flFragmentProfileFragmentContainer" + android:layout_width="409dp" + android:layout_height="319dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/divider"> + </FrameLayout> + + <TableLayout + android:elevation="1dp" + + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_marginStart="30dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="30dp" + android:layout_marginBottom="8dp" + android:numColumns="3" + + android:stretchColumns="1" + app:layout_constraintBottom_toBottomOf="@+id/tvFragmentProfileInfoContainer" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/cvFragmentHomePageProfile"> + + <TableRow android:layout_column="1"> + + <TextView + android:id="@+id/tvFragmentUserProfileName" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_column="1" + android:layout_gravity="center" + android:text="Petar Petrović" + android:textSize="20sp" + android:layout_marginBottom="5dp"/> + </TableRow> + + <TableRow> + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_span="3"> + + <ImageButton + + android:id="@+id/materialButton" + android:layout_width="115dp" + android:layout_height="40dp" + android:layout_marginStart="16dp" + android:background="@drawable/rounded_transparent_button" + android:foreground="@drawable/button_follow" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.0" + tools:ignore="TouchTargetSizeCheck" /> + + <ImageButton + android:layout_width="115dp" + android:layout_height="40dp" + android:layout_gravity="center" + android:layout_marginEnd="16dp" + android:height="40dp" + android:background="@drawable/rounded_transparent_button" + android:foreground="@drawable/button_chat" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.0" + tools:ignore="SpeakableTextPresentCheck" /> + </androidx.constraintlayout.widget.ConstraintLayout> + </TableRow> + + + <TableRow + android:layout_marginTop="5dp"> + + <TextView + android:id="@+id/tvFragmentUserProfilePosts" + android:layout_width="110dp" + android:gravity="center" + android:text="OBJAVE" /> + + <TextView + android:id="@+id/tvFragmentUserProfileFollowers" + android:layout_width="10dp" + android:gravity="center" + android:text="PRATIOCI" /> + + <TextView + android:id="@+id/tvFragmentUserProfileFollow" + + android:layout_width="110dp" + android:gravity="center" + android:text="PRAĆENJA" /> + </TableRow> + + <TableRow> + + <TextView + android:id="@+id/tvFragmentUserProfilePostsNo" + android:layout_width="110dp" + android:gravity="center" + android:textFontWeight="700" + android:text="156" /> + + <TextView + android:id="@+id/tvFragmentUserProfileFollowersNo" + android:layout_width="110dp" + android:gravity="center" + android:text="50" /> + + <TextView + android:id="@+id/tvFragmentUserProfileFollowNo" + android:layout_width="110dp" + android:gravity="center" + android:text="40" /> + + </TableRow> + + </TableLayout> + + </androidx.constraintlayout.widget.ConstraintLayout> + + +</FrameLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/single_post_history.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/single_post_history.xml new file mode 100644 index 0000000..12c29ee --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/single_post_history.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.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="wrap_content" + android:layout_margin="0dp" + android:background="@drawable/rounded_picture_background" + android:clipToOutline="true" + > + + + + + <View + android:id="@+id/vBannerSinglePostHistory" + android:layout_width="match_parent" + android:layout_height="80dp" + android:background="@color/dark_blue_transparent" + android:outlineProvider="background" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.0" + tools:layout_editor_absoluteX="10dp" + android:layout_marginTop="5dp" + > + + + </View> + + <TextView + android:id="@+id/tvTitleSinglePostHistory" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="top|left" + android:text="Naslov" + android:textColor="@color/white" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.076" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/vBannerSinglePostHistory" + app:layout_constraintVertical_bias="0.18" /> + + <TextView + android:id="@+id/tvLocationTypeSinglePostHistory" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Tip lokacije" + android:textColor="@color/white" + app:layout_constraintBottom_toBottomOf="@+id/vBannerSinglePostHistory" + app:layout_constraintEnd_toStartOf="@+id/tvLocationParentSinglePostHistory" + app:layout_constraintHorizontal_bias="0.112" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/vBannerSinglePostHistory" + app:layout_constraintVertical_bias="0.721" /> + + <TextView + android:id="@+id/tvLocationParentSinglePostHistory" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="22.11.2022" + android:textAlignment="viewEnd" + android:textColor="@color/white" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.952" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/vBannerSinglePostHistory" + app:layout_constraintVertical_bias="0.737" /> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |