Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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.UserProfileActivity">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appBarLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:theme="@style/AppTheme.AppBarOverlay"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbarUserProfile"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="?attr/colorPrimary"
- app:popupTheme="@style/AppTheme.PopupOverlay" />
- </com.google.android.material.appbar.AppBarLayout>
- <androidx.core.widget.NestedScrollView
- android:id="@+id/scrollViewUserProfile"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/appBarLayout">
- <LinearLayout
- android:id="@+id/linearLayoutUserProfileContent"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/imageViewUserProfileProfile"
- android:layout_width="125sp"
- android:layout_height="125sp"
- android:layout_gravity="center"
- android:layout_marginTop="32dp"
- android:background="@drawable/circle"
- android:padding="5dp"
- app:srcCompat="@drawable/ic_person_blue" />
- <TextView
- android:id="@+id/textViewUserProfileName"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginTop="16dp"
- android:fontFamily="@font/among_us_font"
- android:textColor="@android:color/black"
- android:textSize="20sp"
- android:textStyle="bold"
- tools:text="Alex M" />
- <TextView
- android:id="@+id/textViewUserProfileDescription"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginStart="16dp"
- android:layout_marginTop="32dp"
- android:layout_marginEnd="16dp"
- tools:text="Bienvenidos a mi perfil soy alex y estoy encantado de conocerte! Nos vemos por el chat!" />
- <TextView
- android:id="@+id/textViewUserProfileCommentsTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginTop="24dp"
- android:fontFamily="@font/among_us_font"
- android:text="@string/comments"
- android:textSize="18sp"
- android:textStyle="bold" />
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recyclerViewUserProfileComments"
- android:layout_width="match_parent"
- android:layout_height="300dp"
- android:layout_marginTop="16dp"
- app:layoutManager="LinearLayoutManager"
- tools:listitem="@layout/fragment_chat_message_received" />
- <TextView
- android:id="@+id/textViewUserProfileNoComments"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginTop="16dp"
- android:layout_marginEnd="16dp"
- android:layout_marginBottom="16dp"
- android:text="@string/no_comments_for_user"
- android:visibility="gone" />
- <androidx.constraintlayout.widget.ConstraintLayout
- android:id="@+id/constraintLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@android:color/white"
- android:elevation="6dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@+id/floatingActionButtonChatSendMessage"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/recyclerViewMessageList">
- <EditText
- android:id="@+id/editTextChatSendMessage"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_marginStart="16dp"
- android:layout_marginTop="8dp"
- android:layout_marginEnd="4dp"
- android:layout_marginBottom="8dp"
- android:autofillHints="@string/write_message"
- android:ems="10"
- android:hint="@string/write_message"
- android:inputType="textMultiLine"
- android:maxLines="6"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@+id/imageViewChatSendMessage"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <ImageButton
- android:id="@+id/imageViewChatSendMessage"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="4dp"
- android:layout_marginTop="8dp"
- android:layout_marginEnd="16dp"
- android:layout_marginBottom="8dp"
- android:adjustViewBounds="true"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:focusable="true"
- android:padding="10dp"
- android:scaleType="fitCenter"
- android:src="@drawable/ic_send_blue"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@+id/editTextChatSendMessage"
- app:layout_constraintTop_toTopOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </LinearLayout>
- </androidx.core.widget.NestedScrollView>
- <include
- layout="@layout/loading_layout"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
Add Comment
Please, Sign In to add comment