Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.63 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:paddingBottom="@dimen/activity_vertical_margin"
  7.    android:paddingLeft="@dimen/activity_horizontal_margin"
  8.    android:paddingRight="@dimen/activity_horizontal_margin"
  9.    android:paddingTop="@dimen/activity_vertical_margin"
  10.    tools:context=".MainActivity">
  11.  
  12.     <TextView
  13.        android:id="@+id/article_heading"
  14.        android:layout_width="match_parent"
  15.        android:layout_height="wrap_content"
  16.        android:layout_alignParentStart="true"
  17.        android:layout_alignParentTop="true"
  18.        android:layout_marginTop="11dp"
  19.        android:background="@color/colorPrimary"
  20.        android:paddingBottom="10dp"
  21.        android:paddingLeft="10dp"
  22.        android:paddingRight="10dp"
  23.        android:paddingTop="10dp"
  24.        android:text="@string/article_title"
  25.        android:textAppearance="@android:style/TextAppearance.Large"
  26.        android:textColor="@android:color/white"
  27.        android:textStyle="bold"
  28.        tools:ignore="RtlCompat" />
  29.  
  30.     <TextView
  31.        android:id="@+id/article_subheading"
  32.        android:layout_width="match_parent"
  33.        android:layout_height="wrap_content"
  34.        android:layout_below="@id/article_heading"
  35.        android:layout_marginTop="0dp"
  36.        android:paddingBottom="10dp"
  37.        android:paddingLeft="10dp"
  38.        android:paddingRight="10dp"
  39.        android:paddingTop="10dp"
  40.        android:text="@string/article_subtitle"
  41.        android:textAppearance="@android:style/TextAppearance" />
  42.  
  43.     <ScrollView
  44.        android:layout_width="wrap_content"
  45.        android:layout_height="wrap_content"
  46.        android:layout_below="@id/article_subheading">
  47.  
  48.         <LinearLayout
  49.            android:layout_width="match_parent"
  50.            android:layout_height="wrap_content"
  51.            android:orientation="vertical">
  52.  
  53.             <TextView
  54.                android:id="@+id/article"
  55.                android:layout_width="wrap_content"
  56.                android:layout_height="wrap_content"
  57.                android:autoLink="web"
  58.                android:lineSpacingExtra="5sp"
  59.                android:text="@string/article_text" />
  60.  
  61.             <Button
  62.                android:id="@+id/button"
  63.                android:layout_width="wrap_content"
  64.                android:layout_height="wrap_content"
  65.                android:text="Add Coment" />
  66.  
  67.         </LinearLayout>
  68.     </ScrollView>
  69. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement