Kamis, 26 Januari 2023

Belajar Tentang Layout Android Studio

1. Belajar Android Studio

  Android Studio adalah suatu perangkat untuk mendebug kode, pembuatan aplikasi berbasis android...
berbagai macam cara yang dapat andalakukan di dalam android studio ini, Android Studio ini membutuhkan memori yang besar, dan jadi jika ingin mendapatkan peforma yang baik ketika menjalankan alangkah baiknya lihat dulu kapasitas perangkat anda yaa bestie..:)

search:AndroidStudio

Berikut contoh codingan dari pemograman diatas!

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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"
tools:context=".MainActivity">


<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:layout_marginBottom="365dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="BARAJA"
android:textSize="40dp" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="LAYOUT"
android:textSize="40dp" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ANDROID"
android:textSize="40dp" />

</LinearLayout>

<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="365dp"
app:layout_constraintTop_toTopOf="parent">


<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="HAPUS" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="UBAH" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="PERBAIKI" />


<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:text="KEMBALI" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="COBA"
android:textSize="30dp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
/>


</RelativeLayout>





 

1 komentar:

Belajar Tentang Layout Android Studio

1. Belajar Android Studio   Android Studio adalah suatu perangkat untuk mendebug kode, pembuatan aplikasi berbasis android... berbagai macam...