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:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/relative">
- <com.google.android.material.appbar.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/bar"
- android:background="?android:attr/windowBackground">
- <androidx.appcompat.widget.Toolbar
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/toolbar"
- android:background="?android:attr/windowBackground">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- >
- <androidx.appcompat.widget.AppCompatImageButton
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ic_back"
- android:layout_alignParentStart="true"
- android:background="@null"
- android:id="@+id/back1"/>
- <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="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/scrollView">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="400dp"
- android:id="@+id/image"/>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/title"
- android:text="TITLE"
- android:maxLines="3"
- android:textSize="15sp"
- android:gravity="center_horizontal"
- android:paddingTop="5dp"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Price"
- android:textSize="20sp"
- android:layout_marginLeft="8dp"
- android:id="@+id/price"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="UAH"
- android:textSize="20sp"
- android:layout_marginLeft="8dp"
- android:id="@+id/val"/>
- </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:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Town"
- android:textSize="20sp"
- android:gravity="end"
- android:layout_marginLeft="8dp"
- android:id="@+id/town"/>
- </LinearLayout>
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dp"
- android:layout_marginTop="5dp"
- android:background="@color/colorPrimaryDark"/>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/description"
- android:textSize="20sp"
- android:layout_marginLeft="8dp"
- android:text="Description"/>
- <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:src="@drawable/ic_phone"
- android:layout_marginTop="5dp"
- android:layout_marginLeft="8dp"/>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="20sp"
- android:layout_marginLeft="8dp"
- android:layout_marginTop="5dp"
- android:id="@+id/phone_number"
- android:text="0668328881"/>
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal"
- >
- <EditText
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:layout_weight="3"
- android:id="@+id/message"
- android:layout_gravity="bottom"
- android:background="@drawable/edit_text_background"/>
- <androidx.appcompat.widget.AppCompatImageButton
- android:layout_width="wrap_content"
- android:layout_height="40dp"
- android:background="@color/white"
- android:src="@drawable/ic_send"
- android:layout_gravity="bottom"/>
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment