Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout 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"
- android:orientation="vertical"
- tools:context=".DetailActivity">
- <RelativeLayout
- android:id="@+id/relative"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/bar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="?android:attr/windowBackground">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="?android:attr/windowBackground">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.appcompat.widget.AppCompatImageButton
- android:id="@+id/back1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:background="@null"
- android:src="@drawable/ic_back" />
- <ImageView
- android:layout_width="180dp"
- android:layout_height="35dp"
- android:layout_centerHorizontal="true"
- android:src="@drawable/logo" />
- </RelativeLayout>
- </androidx.appcompat.widget.Toolbar>
- </com.google.android.material.appbar.AppBarLayout>
- </RelativeLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:layout_weight="91"
- android:orientation="vertical">
- <ScrollView
- android:id="@+id/scrollView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/image"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:maxLines="3"
- android:paddingTop="5dp"
- android:text="TITLE"
- android:textSize="15sp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/price"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:text="Price"
- android:textSize="20sp" />
- <TextView
- android:id="@+id/val"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:text="UAH"
- android:textSize="20sp" />
- </LinearLayout>
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dp"
- android:layout_marginTop="5dp"
- android:background="@color/colorPrimaryDark" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/town"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:gravity="end"
- android:text="Town"
- android:textSize="20sp" />
- </LinearLayout>
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dp"
- android:layout_marginTop="5dp"
- android:background="@color/colorPrimaryDark" />
- <TextView
- android:id="@+id/description"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:text="Description"
- android:textSize="20sp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:layout_marginTop="5dp"
- android:src="@drawable/ic_phone" />
- <TextView
- android:id="@+id/phone_number"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:layout_marginTop="5dp"
- android:text="0668328881"
- android:textSize="20sp" />
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="7"
- android:orientation="horizontal">
- <EditText
- android:id="@+id/message"
- android:layout_width="0dp"
- android:layout_height="40dp"
- android:layout_gravity="bottom"
- android:layout_weight="80"
- android:background="@drawable/edit_text_background" />
- <androidx.appcompat.widget.AppCompatImageButton
- android:id="@+id/send"
- android:layout_width="0dp"
- android:layout_height="40dp"
- android:layout_gravity="bottom"
- android:layout_weight="10"
- android:background="@color/white"
- android:src="@drawable/ic_send" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment