aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-13 00:14:29 +0100
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-13 00:15:21 +0100
commitb562a184aea115ab898b6efc0de7675a5ee61b31 (patch)
tree61af993c1eb3f1bcfff240a25650cbb3ec4d2ae1 /Client/BrzoDoLokacije/app/src/main/res/layout
parentaca399bfec3542f34897979bed77f4de8a5531fe (diff)
Dodato prikupljanje i sortiranje objava za početnu stranu. Dodata početna strana u navigacioni meni. Izmenjen fragment za prikaz.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml157
1 files changed, 97 insertions, 60 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml
index 01c5f65..eda952d 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml
@@ -8,7 +8,6 @@
<!-- TODO: Update blank fragment layout -->
-
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="0dp"
@@ -25,24 +24,33 @@
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
- android:layout_marginTop="48dp"
- android:layout_marginEnd="100dp"
+ android:layout_marginTop="56dp"
+ android:layout_marginEnd="107dp"
android:text="Zdravo, Mia"
- app:layout_constraintEnd_toStartOf="@+id/imageButton"
+ app:layout_constraintEnd_toStartOf="@+id/cardView"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
- <ImageButton
- android:id="@+id/imageButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ <androidx.cardview.widget.CardView
+ android:id="@+id/cardView"
+ android:layout_width="85dp"
+ android:layout_height="85dp"
+ android:layout_gravity="center"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
-
- android:src="@mipmap/ic_launcher_round"
+ app:cardCornerRadius="250dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/textView8"
- app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintTop_toTopOf="parent">
+
+ <ImageView
+ android:id="@+id/fup_profile_picture_id"
+ android:layout_width="85dp"
+ android:layout_height="85dp"
+ android:scaleType="centerCrop"
+ android:src="@drawable/ic_baseline_person_24"
+ tools:ignore="ContentDescription" />
+ </androidx.cardview.widget.CardView>
<TextView
android:id="@+id/textView7"
@@ -55,12 +63,12 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/imageButton" />
+ app:layout_constraintTop_toBottomOf="@+id/cardView" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editTextTextPersonName3"
- android:layout_width="376dp"
- android:layout_height="31dp"
+ android:layout_width="0dp"
+ android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
@@ -89,61 +97,89 @@
<TextView
android:id="@+id/textView11"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="64dp"
+ android:layout_height="19dp"
android:layout_marginTop="36dp"
android:layout_marginEnd="16dp"
android:clickable="true"
+ android:minHeight="48dp"
android:text="Prikaži sve"
app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/editTextTextPersonName3" />
+ app:layout_constraintTop_toBottomOf="@+id/editTextTextPersonName3"
+ tools:ignore="TouchTargetSizeCheck" />
- <LinearLayout
- android:id="@+id/linearLayout2"
- android:layout_width="399dp"
- android:layout_height="58dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="8dp"
- android:orientation="horizontal"
+ <ScrollView
+ android:id="@+id/scrollview"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/recyclerView">
- <ImageButton
- android:id="@+id/imageButton4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background='@color/white'
- android:src="@drawable/location_beach" />
-
- <ImageButton
- android:id="@+id/imageButton6"
-
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background='@color/white'
- android:src="@drawable/location_mountain" />
-
- <ImageButton
- android:id="@+id/imageButton5"
-
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background='@color/white'
- android:src="@drawable/location_city" />
-
- <ImageButton
- android:id="@+id/imageButton7"
-
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:id="@+id/linearLayout2"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background='@color/white'
- android:src="@drawable/location_waterfall" />
- </LinearLayout>
+ android:layout_marginStart="16dp"
+ android:layout_marginTop="8dp"
+ android:orientation="horizontal"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent">
+
+ <ImageButton
+ android:id="@+id/imageButton4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:background='@color/white'
+ android:src="@drawable/location_beach"
+ tools:ignore="SpeakableTextPresentCheck" />
+
+ <ImageButton
+ android:id="@+id/imageButton6"
+
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:background='@color/white'
+ android:src="@drawable/location_mountain"
+ tools:ignore="SpeakableTextPresentCheck" />
+
+ <ImageButton
+ android:id="@+id/imageButton5"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:layout_weight="1"
+ android:background='@color/white'
+ android:src="@drawable/location_city"
+ tools:ignore="SpeakableTextPresentCheck" />
+
+ <ImageButton
+ android:id="@+id/imageView8"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:layout_weight="1"
+ android:background="#00FFFFFF"
+ android:elevation="20dp"
+ android:src="@drawable/location_lake"
+ tools:ignore="SpeakableTextPresentCheck" />
+
+ <ImageButton
+ android:id="@+id/imageButton7"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:layout_weight="1"
+ android:background='@color/white'
+ android:src="@drawable/location_waterfall"
+ tools:ignore="SpeakableTextPresentCheck" />
+
+
+ </LinearLayout>
+ </ScrollView>
<TextView
android:id="@+id/textView12"
@@ -157,7 +193,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/linearLayout2" />
+ app:layout_constraintTop_toBottomOf="@+id/scrollview" />
<androidx.recyclerview.widget.RecyclerView
android:layout_width="0dp"
@@ -178,6 +214,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toEndOf="@+id/textView12"
- app:layout_constraintTop_toBottomOf="@+id/linearLayout2" />
+ app:layout_constraintTop_toBottomOf="@+id/scrollview"
+ tools:ignore="TouchTargetSizeCheck" />
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file