Advertisement
khamim

Untitled

Jul 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.92 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:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:padding="@dimen/activity_horizontal_margin"
  8.    tools:context=".MainActivity">
  9.  
  10.     <TextView
  11.        android:id="@+id/txtjudul"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:layout_alignParentTop="true"
  15.        android:layout_centerHorizontal="true"
  16.        android:background="@android:color/holo_blue_dark"
  17.        android:text="@string/judul"
  18.        android:textColor="@android:color/white"
  19.        android:textSize="24sp" />
  20.  
  21.     <TextView
  22.        android:id="@+id/txtsubjudul"
  23.        android:layout_width="match_parent"
  24.        android:layout_height="wrap_content"
  25.        android:layout_below="@+id/txtjudul"
  26.        android:layout_centerHorizontal="true"
  27.        android:background="@android:color/holo_red_light"
  28.        android:text="@string/sub_judul"
  29.        android:textColor="@android:color/white"
  30.        android:textSize="24sp" />
  31.  
  32.     <ScrollView
  33.        android:layout_width="match_parent"
  34.        android:layout_height="match_parent"
  35.        android:layout_below="@+id/txtsubjudul"
  36.        android:layout_centerHorizontal="true">
  37.  
  38.         <LinearLayout
  39.            android:layout_width="match_parent"
  40.            android:layout_height="wrap_content"
  41.            android:orientation="vertical">
  42.  
  43.             <TextView
  44.                android:id="@+id/txtartikel"
  45.                android:layout_width="match_parent"
  46.                android:layout_height="wrap_content"
  47.                android:padding="5dp"
  48.                android:text="@string/textartikel" />
  49.         </LinearLayout>
  50.     </ScrollView>
  51. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement