Guest User

Untitled

a guest
Apr 30th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.44 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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.    android:orientation="vertical"
  8.    tools:context=".DetailActivity">
  9.  
  10.  
  11.     <RelativeLayout
  12.        android:id="@+id/relative"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content">
  15.  
  16.         <com.google.android.material.appbar.AppBarLayout
  17.            android:id="@+id/bar"
  18.            android:layout_width="match_parent"
  19.            android:layout_height="wrap_content"
  20.            android:background="?android:attr/windowBackground">
  21.  
  22.             <androidx.appcompat.widget.Toolbar
  23.                android:id="@+id/toolbar"
  24.                android:layout_width="match_parent"
  25.                android:layout_height="wrap_content"
  26.                android:background="?android:attr/windowBackground">
  27.  
  28.  
  29.                 <RelativeLayout
  30.                    android:layout_width="match_parent"
  31.                    android:layout_height="wrap_content">
  32.  
  33.                     <androidx.appcompat.widget.AppCompatImageButton
  34.                        android:id="@+id/back1"
  35.                        android:layout_width="wrap_content"
  36.                        android:layout_height="wrap_content"
  37.                        android:layout_alignParentStart="true"
  38.                        android:background="@null"
  39.                        android:src="@drawable/ic_back" />
  40.  
  41.                     <ImageView
  42.                        android:layout_width="180dp"
  43.                        android:layout_height="35dp"
  44.                        android:layout_centerHorizontal="true"
  45.                        android:src="@drawable/logo" />
  46.  
  47.  
  48.                 </RelativeLayout>
  49.  
  50.             </androidx.appcompat.widget.Toolbar>
  51.  
  52.         </com.google.android.material.appbar.AppBarLayout>
  53.     </RelativeLayout>
  54.  
  55.  
  56.     <LinearLayout
  57.        android:layout_width="wrap_content"
  58.        android:layout_height="0dp"
  59.        android:layout_weight="91"
  60.        android:orientation="vertical">
  61.  
  62.         <ScrollView
  63.            android:id="@+id/scrollView"
  64.            android:layout_width="match_parent"
  65.            android:layout_height="wrap_content">
  66.  
  67.             <LinearLayout
  68.                android:layout_width="match_parent"
  69.                android:layout_height="match_parent"
  70.                android:orientation="vertical">
  71.  
  72.                 <ImageView
  73.                    android:id="@+id/image"
  74.                    android:layout_width="match_parent"
  75.                    android:layout_height="wrap_content" />
  76.  
  77.                 <TextView
  78.                    android:id="@+id/title"
  79.                    android:layout_width="match_parent"
  80.                    android:layout_height="wrap_content"
  81.                    android:gravity="center_horizontal"
  82.                    android:maxLines="3"
  83.                    android:paddingTop="5dp"
  84.                    android:text="TITLE"
  85.                    android:textSize="15sp" />
  86.  
  87.                 <LinearLayout
  88.                    android:layout_width="match_parent"
  89.                    android:layout_height="wrap_content"
  90.                    android:orientation="horizontal">
  91.  
  92.                     <TextView
  93.                        android:id="@+id/price"
  94.                        android:layout_width="wrap_content"
  95.                        android:layout_height="wrap_content"
  96.                        android:layout_marginLeft="8dp"
  97.                        android:text="Price"
  98.                        android:textSize="20sp" />
  99.  
  100.                     <TextView
  101.                        android:id="@+id/val"
  102.                        android:layout_width="wrap_content"
  103.                        android:layout_height="wrap_content"
  104.                        android:layout_marginLeft="8dp"
  105.                        android:text="UAH"
  106.                        android:textSize="20sp" />
  107.                 </LinearLayout>
  108.  
  109.                 <View
  110.                    android:layout_width="fill_parent"
  111.                    android:layout_height="1dp"
  112.                    android:layout_marginTop="5dp"
  113.                    android:background="@color/colorPrimaryDark" />
  114.  
  115.                 <LinearLayout
  116.                    android:layout_width="match_parent"
  117.                    android:layout_height="wrap_content"
  118.                    android:orientation="horizontal">
  119.  
  120.  
  121.                     <TextView
  122.                        android:id="@+id/town"
  123.                        android:layout_width="wrap_content"
  124.                        android:layout_height="wrap_content"
  125.                        android:layout_marginLeft="8dp"
  126.                        android:gravity="end"
  127.                        android:text="Town"
  128.                        android:textSize="20sp" />
  129.                 </LinearLayout>
  130.  
  131.                 <View
  132.                    android:layout_width="fill_parent"
  133.                    android:layout_height="1dp"
  134.                    android:layout_marginTop="5dp"
  135.                    android:background="@color/colorPrimaryDark" />
  136.  
  137.                 <TextView
  138.                    android:id="@+id/description"
  139.                    android:layout_width="match_parent"
  140.                    android:layout_height="wrap_content"
  141.                    android:layout_marginLeft="8dp"
  142.                    android:text="Description"
  143.                    android:textSize="20sp" />
  144.  
  145.                 <LinearLayout
  146.                    android:layout_width="match_parent"
  147.                    android:layout_height="wrap_content"
  148.  
  149.                    android:orientation="horizontal">
  150.  
  151.                     <ImageView
  152.                        android:layout_width="wrap_content"
  153.                        android:layout_height="wrap_content"
  154.                        android:layout_marginLeft="8dp"
  155.                        android:layout_marginTop="5dp"
  156.                        android:src="@drawable/ic_phone" />
  157.  
  158.                     <TextView
  159.                        android:id="@+id/phone_number"
  160.                        android:layout_width="match_parent"
  161.                        android:layout_height="wrap_content"
  162.                        android:layout_marginLeft="8dp"
  163.                        android:layout_marginTop="5dp"
  164.                        android:text="0668328881"
  165.                        android:textSize="20sp" />
  166.                 </LinearLayout>
  167.  
  168.  
  169.             </LinearLayout>
  170.  
  171.         </ScrollView>
  172.  
  173.  
  174.     </LinearLayout>
  175.  
  176.     <LinearLayout
  177.        android:layout_width="match_parent"
  178.        android:layout_height="0dp"
  179.        android:layout_weight="7"
  180.        android:orientation="horizontal">
  181.  
  182.         <EditText
  183.            android:id="@+id/message"
  184.            android:layout_width="0dp"
  185.            android:layout_height="40dp"
  186.            android:layout_gravity="bottom"
  187.            android:layout_weight="80"
  188.            android:background="@drawable/edit_text_background" />
  189.  
  190.  
  191.         <androidx.appcompat.widget.AppCompatImageButton
  192.            android:id="@+id/send"
  193.            android:layout_width="0dp"
  194.            android:layout_height="40dp"
  195.            android:layout_gravity="bottom"
  196.            android:layout_weight="10"
  197.            android:background="@color/white"
  198.            android:src="@drawable/ic_send" />
  199.  
  200.  
  201.     </LinearLayout>
  202.  
  203.  
  204. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment