Guest User

Untitled

a guest
Oct 26th, 2020
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.31 KB | None | 0 0
  1.     <?xml version="1.0" encoding="utf-8"?>
  2.     <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.        xmlns:app="http://schemas.android.com/apk/res-auto"
  4.        xmlns:tools="http://schemas.android.com/tools"
  5.        android:layout_width="match_parent"
  6.        android:layout_height="match_parent"
  7.        tools:context=".Activities.UserProfileActivity">
  8.    
  9.         <com.google.android.material.appbar.AppBarLayout
  10.            android:id="@+id/appBarLayout"
  11.            android:layout_width="match_parent"
  12.            android:layout_height="wrap_content"
  13.            android:theme="@style/AppTheme.AppBarOverlay"
  14.            app:layout_constraintEnd_toEndOf="parent"
  15.            app:layout_constraintStart_toStartOf="parent"
  16.            app:layout_constraintTop_toTopOf="parent">
  17.    
  18.             <androidx.appcompat.widget.Toolbar
  19.                android:id="@+id/toolbarUserProfile"
  20.                android:layout_width="match_parent"
  21.                android:layout_height="?attr/actionBarSize"
  22.                android:background="?attr/colorPrimary"
  23.                app:popupTheme="@style/AppTheme.PopupOverlay" />
  24.    
  25.         </com.google.android.material.appbar.AppBarLayout>
  26.    
  27.         <androidx.core.widget.NestedScrollView
  28.            android:id="@+id/scrollViewUserProfile"
  29.            android:layout_width="match_parent"
  30.            android:layout_height="0dp"
  31.            app:layout_constraintBottom_toBottomOf="parent"
  32.            app:layout_constraintEnd_toEndOf="parent"
  33.            app:layout_constraintStart_toStartOf="parent"
  34.            app:layout_constraintTop_toBottomOf="@+id/appBarLayout">
  35.    
  36.             <LinearLayout
  37.                android:id="@+id/linearLayoutUserProfileContent"
  38.                android:layout_width="match_parent"
  39.                android:layout_height="wrap_content"
  40.                android:orientation="vertical">
  41.    
  42.                 <ImageView
  43.                    android:id="@+id/imageViewUserProfileProfile"
  44.                    android:layout_width="125sp"
  45.                    android:layout_height="125sp"
  46.                    android:layout_gravity="center"
  47.                    android:layout_marginTop="32dp"
  48.                    android:background="@drawable/circle"
  49.                    android:padding="5dp"
  50.                    app:srcCompat="@drawable/ic_person_blue" />
  51.    
  52.                 <TextView
  53.                    android:id="@+id/textViewUserProfileName"
  54.                    android:layout_width="wrap_content"
  55.                    android:layout_height="wrap_content"
  56.                    android:layout_gravity="center"
  57.                    android:layout_marginTop="16dp"
  58.                    android:fontFamily="@font/among_us_font"
  59.                    android:textColor="@android:color/black"
  60.                    android:textSize="20sp"
  61.                    android:textStyle="bold"
  62.                    tools:text="Alex M" />
  63.    
  64.                 <TextView
  65.                    android:id="@+id/textViewUserProfileDescription"
  66.                    android:layout_width="match_parent"
  67.                    android:layout_height="wrap_content"
  68.                    android:layout_gravity="center"
  69.                    android:layout_marginStart="16dp"
  70.                    android:layout_marginTop="32dp"
  71.                    android:layout_marginEnd="16dp"
  72.                    tools:text="Bienvenidos a mi perfil soy alex y estoy encantado de conocerte! Nos vemos por el chat!" />
  73.    
  74.                 <TextView
  75.                    android:id="@+id/textViewUserProfileCommentsTitle"
  76.                    android:layout_width="wrap_content"
  77.                    android:layout_height="wrap_content"
  78.                    android:layout_marginStart="16dp"
  79.                    android:layout_marginTop="24dp"
  80.                    android:fontFamily="@font/among_us_font"
  81.                    android:text="@string/comments"
  82.                    android:textSize="18sp"
  83.                    android:textStyle="bold" />
  84.    
  85.                 <androidx.recyclerview.widget.RecyclerView
  86.                    android:id="@+id/recyclerViewUserProfileComments"
  87.                    android:layout_width="match_parent"
  88.                    android:layout_height="300dp"
  89.                    android:layout_marginTop="16dp"
  90.                    app:layoutManager="LinearLayoutManager"
  91.                    tools:listitem="@layout/fragment_chat_message_received" />
  92.    
  93.                 <TextView
  94.                    android:id="@+id/textViewUserProfileNoComments"
  95.                    android:layout_width="0dp"
  96.                    android:layout_height="wrap_content"
  97.                    android:layout_marginStart="16dp"
  98.                    android:layout_marginTop="16dp"
  99.                    android:layout_marginEnd="16dp"
  100.                    android:layout_marginBottom="16dp"
  101.                    android:text="@string/no_comments_for_user"
  102.                    android:visibility="gone" />
  103.    
  104.                 <androidx.constraintlayout.widget.ConstraintLayout
  105.                    android:id="@+id/constraintLayout"
  106.                    android:layout_width="match_parent"
  107.                    android:layout_height="wrap_content"
  108.                    android:background="@android:color/white"
  109.                    android:elevation="6dp"
  110.                    app:layout_constraintBottom_toBottomOf="parent"
  111.                    app:layout_constraintEnd_toStartOf="@+id/floatingActionButtonChatSendMessage"
  112.                    app:layout_constraintStart_toStartOf="parent"
  113.                    app:layout_constraintTop_toBottomOf="@+id/recyclerViewMessageList">
  114.    
  115.                     <EditText
  116.                        android:id="@+id/editTextChatSendMessage"
  117.                        android:layout_width="0dp"
  118.                        android:layout_height="match_parent"
  119.                        android:layout_marginStart="16dp"
  120.                        android:layout_marginTop="8dp"
  121.                        android:layout_marginEnd="4dp"
  122.                        android:layout_marginBottom="8dp"
  123.                        android:autofillHints="@string/write_message"
  124.                        android:ems="10"
  125.                        android:hint="@string/write_message"
  126.                        android:inputType="textMultiLine"
  127.                        android:maxLines="6"
  128.                        app:layout_constraintBottom_toBottomOf="parent"
  129.                        app:layout_constraintEnd_toStartOf="@+id/imageViewChatSendMessage"
  130.                        app:layout_constraintStart_toStartOf="parent"
  131.                        app:layout_constraintTop_toTopOf="parent" />
  132.    
  133.                     <ImageButton
  134.                        android:id="@+id/imageViewChatSendMessage"
  135.                        android:layout_width="wrap_content"
  136.                        android:layout_height="wrap_content"
  137.                        android:layout_marginStart="4dp"
  138.                        android:layout_marginTop="8dp"
  139.                        android:layout_marginEnd="16dp"
  140.                        android:layout_marginBottom="8dp"
  141.                        android:adjustViewBounds="true"
  142.                        android:background="?attr/selectableItemBackgroundBorderless"
  143.                        android:clickable="true"
  144.                        android:focusable="true"
  145.                        android:padding="10dp"
  146.                        android:scaleType="fitCenter"
  147.                        android:src="@drawable/ic_send_blue"
  148.                        app:layout_constraintBottom_toBottomOf="parent"
  149.                        app:layout_constraintEnd_toEndOf="parent"
  150.                        app:layout_constraintStart_toEndOf="@+id/editTextChatSendMessage"
  151.                        app:layout_constraintTop_toTopOf="parent" />
  152.    
  153.                 </androidx.constraintlayout.widget.ConstraintLayout>
  154.    
  155.             </LinearLayout>
  156.    
  157.         </androidx.core.widget.NestedScrollView>
  158.    
  159.         <include
  160.            layout="@layout/loading_layout"
  161.            app:layout_constraintBottom_toBottomOf="parent"
  162.            app:layout_constraintEnd_toEndOf="parent"
  163.            app:layout_constraintStart_toStartOf="parent"
  164.            app:layout_constraintTop_toTopOf="parent" />
  165.    
  166.     </androidx.constraintlayout.widget.ConstraintLayout>
Add Comment
Please, Sign In to add comment