Thursday, January 26, 2023

Tugas Layout

 



<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat 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="wrap_content"
android:orientation="vertical"
tools:context=".MainActivity">


<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:background="@android:color/holo_green_light"
android:text="APP SURAT E-ANDROID"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="28dp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="12dp"
android:text="Padang Panjang, 19,01, 2023"
android:textAlignment="textEnd"
android:textSize="20dp" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="15dp"
android:text="Dear My Son"
android:textSize="20dp" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:textSize="12dp"
android:text=" Salam hangat dari Ayahmu, Anakku Tersayang. Jauh engkau
merantau kenegeri orang, maka ingatlah tuah yang ayah berikan. Dimana lagit di
junjung distiu bumi dipijak. \n \n
Wahai anaku, Janganlah menjadi raja di negeri orang, tapi jadilah
lentera penerang hidup. \n \n
" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:text="Dari Ayahmu"
android:textAlignment="textEnd"
android:textSize="18dp" />
</androidx.appcompat.widget.LinearLayoutCompat>



Related Posts:

  • GETTER AND SETTER <?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmln… Read More
  • Tugas Layout <?xml version="1.0" encoding="utf-8"?><androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:too… Read More
  • TEKNOLOGI                    PEMROGRAMAN BERORIENTASI OBJEK* PBO (Program Berorientasi Objek)         Merupakan paradigma pemrograman yang berorientasikan … Read More
  • SILEK    Silek atau kita kenal dengan Pencak silat adalah suatu seni bela diri tradisional yang berasal dari Kepulauan Nusantara. Pencak silat memiliki arti dari dua kata yang menyusunnya. Pencak berarti gerak dasar bela … Read More

0 comments:

Post a Comment