Guest User

Untitled

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