diff options
author | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-11-22 09:02:05 +0100 |
---|---|---|
committer | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-11-22 09:02:05 +0100 |
commit | 54c28aa3f5e71e96982ba52035ef523a87e74655 (patch) | |
tree | 7a2c8eba3ec1cbd75a0a46cb05ab933fc1218a0c /Client/BrzoDoLokacije/app/src/main/res/layout | |
parent | 482485d93dbca6f556085cb43efc9a2cf55a583a (diff) | |
parent | f290638ea36f9fb23de3745b2508aefdcad6cf31 (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')
5 files changed, 89 insertions, 17 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat.xml index 694e972..9e28d6d 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat.xml @@ -32,7 +32,7 @@ </ImageButton> -<!-- <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/swipeContainer" @@ -46,6 +46,6 @@ app:layout_constraintTop_toTopOf="parent" > </androidx.recyclerview.widget.RecyclerView> - </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>--> + </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 index ea7d3e7..72060f7 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat_conversation.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_chat_conversation.xml @@ -5,26 +5,30 @@ 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:clickable="true" 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:textSize="40dp" - android:id="@+id/tvFragmentTitle" android:text="Chat" - android:textColor="@color/white"/> + 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_marginTop="10dp" android:layout_marginStart="16dp" + android:layout_marginTop="10dp" android:layout_marginEnd="16dp" android:elevation="0dp" app:cardCornerRadius="20dp" @@ -39,25 +43,43 @@ android:layout_height="match_parent" android:background="@drawable/rounded_white_button_login" android:hint=" kome slati poruku?" - android:paddingLeft="15dp" - android:inputType="textPersonName" /> + 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_marginTop="10dp" 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" - app:layout_constraintBottom_toBottomOf="parent"> + app:layout_constraintStart_toStartOf="parent"> <com.google.android.material.textfield.TextInputEditText @@ -66,8 +88,8 @@ android:layout_height="match_parent" android:background="@drawable/rounded_white_button_login" android:hint=" poruka" - android:paddingLeft="15dp" - android:inputType="textPersonName" /> + android:inputType="textPersonName" + android:paddingLeft="15dp" /> <ImageButton android:id="@+id/btnSendMessage" @@ -75,8 +97,8 @@ android:layout_height="50dp" android:layout_gravity="right" android:scaleType="centerCrop" - app:cornerRadius="16dp" - android:src="@drawable/post_comment" /> + 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/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 index 95c036a..35431ff 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_preview.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_preview.xml @@ -6,7 +6,8 @@ <androidx.appcompat.widget.AppCompatImageView android:layout_width="50dp" android:layout_height="50dp" - android:id="@+id/ivUserImage"/> + android:id="@+id/ivUserImage" + android:src="@drawable/ic_nav_profile"/> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" |