Advertisement
khamim

Untitled

Jul 19th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.09 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:id="@+id/activity_main"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:paddingBottom="@dimen/activity_vertical_margin"
  8.    android:paddingLeft="@dimen/activity_horizontal_margin"
  9.    android:paddingRight="@dimen/activity_horizontal_margin"
  10.    android:paddingTop="@dimen/activity_vertical_margin"
  11.    tools:context="com.ulfahfitriyani.scrolltext.MainActivity">
  12.  
  13.     <TextView
  14.        android:id="@+id/judul"
  15.        android:layout_width="match_parent"
  16.        android:layout_height="wrap_content"
  17.        android:layout_alignParentTop="true"
  18.        android:layout_centerHorizontal="true"
  19.        android:background="@android:color/holo_green_light"
  20.        android:text="@string/judul"
  21.        android:textColor="@android:color/white"
  22.        android:textSize="24sp" />
  23.  
  24.     <TextView
  25.        android:id="@+id/subjudul"
  26.        android:layout_width="match_parent"
  27.        android:layout_height="wrap_content"
  28.        android:layout_below="@+id/judul"
  29.        android:layout_centerHorizontal="true"
  30.        android:background="@android:color/holo_orange_dark"
  31.        android:text="@string/subjudul"
  32.        android:textColor="@android:color/white"
  33.        android:textSize="18sp" />
  34.  
  35.     <ScrollView
  36.        android:layout_width="match_parent"
  37.        android:layout_height="match_parent"
  38.        android:layout_below="@+id/subjudul"
  39.        android:layout_centerHorizontal="true">
  40.  
  41.         <LinearLayout
  42.            android:layout_width="match_parent"
  43.            android:layout_height="wrap_content"
  44.            android:orientation="vertical" >
  45.  
  46.             <TextView
  47.                android:id="@+id/textView5"
  48.                android:layout_width="match_parent"
  49.                android:layout_height="wrap_content"
  50.                android:padding="7dp"
  51.                android:text="@string/artikel" />
  52.         </LinearLayout>
  53.     </ScrollView>
  54. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement