aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-29 01:36:46 +0100
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-29 01:36:46 +0100
commitf5d9b62000f8d44288a7d682891bfe1d898d65b7 (patch)
tree40fec2629beb53382f86485a3be03c5c43adbcee /Client/BrzoDoLokacije/app/src/main/res/layout
parent5fa0fd023429f32a756070b28a6c9268820b147f (diff)
parent3f7a3f43debcbd84360f0a0f8a8792a7248d4edc (diff)
Merge branch 'develop' of http://gitlab.pmf.kg.ac.rs/BrzoDoLokacije2022/odyssey/brzodolokacije into develop
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml2
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml69
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml70
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/fragment_user_posts_profile_activity.xml18
4 files changed, 133 insertions, 26 deletions
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
index 0e90fc7..bb917cf 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml
@@ -128,7 +128,7 @@
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/divider"
- app:layout_constraintVertical_bias="1.0"></FrameLayout>
+ app:layout_constraintVertical_bias="0.0"></FrameLayout>
<TableLayout
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml
index 2342779..a5f4a34 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml
@@ -1,26 +1,69 @@
<?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">
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="8dp"
+ android:layout_marginTop="16dp">
+
+ <TextView
+ android:id="@+id/tvDate"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:paddingStart="8dp"
+ android:paddingTop="4dp"
+ android:paddingEnd="8dp"
+ android:paddingBottom="4dp"
+ android:text="June 10"
+ android:textColor="#C0C0C0"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
<androidx.cardview.widget.CardView
+ android:id="@+id/cvContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ app:cardBackgroundColor="@color/dark_blue_transparent"
+ app:cardCornerRadius="12dp"
+ app:cardElevation="0dp"
+ app:cardPreventCornerOverlap="false"
+ app:cardUseCompatPadding="true"
app:layout_constraintEnd_toEndOf="parent"
- app:cardBackgroundColor="@color/cardview_dark_background">
+ app:layout_constraintTop_toBottomOf="@id/tvDate">
- <TextView
+ <LinearLayout
+ android:id="@+id/llContainer"
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"/>
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/tvMessage"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ android:maxWidth="260dp"
+ android:paddingLeft="12dp"
+ android:paddingTop="8dp"
+ android:paddingRight="12dp"
+ android:text="This is a Message"
+ android:textColor="#ffffff"
+ android:textSize="16sp" />
+ </LinearLayout>
+
</androidx.cardview.widget.CardView>
+ <TextView
+ android:id="@+id/tvTimestamp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="10:00"
+ android:textColor="#C0C0C0"
+ android:textSize="10sp"
+ app:layout_constraintBottom_toBottomOf="@+id/cvContainer"
+ app:layout_constraintEnd_toStartOf="@+id/cvContainer" />
+
+
</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
index 647127c..016852e 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml
@@ -1,23 +1,69 @@
<?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">
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="16dp">
+
+ <TextView
+ android:id="@+id/tvDate"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:paddingStart="8dp"
+ android:paddingTop="4dp"
+ android:paddingEnd="8dp"
+ android:paddingBottom="4dp"
+ android:text="June 10"
+ android:textColor="#C0C0C0"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
<androidx.cardview.widget.CardView
+ android:id="@+id/cvContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- app:cardBackgroundColor="@color/dark_blue_transparent">
+ app:cardBackgroundColor="#eef1f6"
+ app:cardCornerRadius="12dp"
+ app:cardElevation="0dp"
+ app:cardPreventCornerOverlap="false"
+ app:cardUseCompatPadding="true"
+ app:layout_constraintTop_toBottomOf="@+id/tvDate">
+
+ <LinearLayout
+ android:id="@+id/llContainer"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/tvMessage"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ android:maxWidth="260dp"
+ android:paddingLeft="12dp"
+ android:paddingTop="8dp"
+ android:paddingRight="12dp"
+ android:text="Message"
+ android:textColor="#000000"
+ android:textSize="16sp" />
+ </LinearLayout>
+
+ </androidx.cardview.widget.CardView>
+
+
<TextView
+ android:id="@+id/tvTimestamp"
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>
+ android:text="8:00"
+ android:textColor="#C0C0C0"
+ android:textSize="10sp"
+ app:layout_constraintBottom_toBottomOf="@+id/cvContainer"
+ app:layout_constraintStart_toEndOf="@+id/cvContainer" />
+
+
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_user_posts_profile_activity.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_user_posts_profile_activity.xml
new file mode 100644
index 0000000..2c5012e
--- /dev/null
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_user_posts_profile_activity.xml
@@ -0,0 +1,18 @@
+<?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.FragmentUserPostsProfileActivity">
+
+ <!-- TODO: Update blank fragment layout -->
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/rvFragmentUserPostsProfileActivity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+</FrameLayout> \ No newline at end of file