Selasa, 21 April 2026

Membuat tampilan aplikasi

 


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/background"
tools:context=".Main">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_weight="1"
app:srcCompat="@drawable/logosapra" />

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SMK SATYA PRAJA 2 PETARUKAN"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="28sp"
android:textStyle="bold" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="98dp"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:layout_weight="1"
android:orientation="horizontal">

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView5"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home" />

<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="HOME"
android:textColor="#0B0B0B"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView6"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home"
tools:srcCompat="@drawable/web" />

<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="WEB"
android:textColor="#0D0C0C"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView8"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home"
tools:srcCompat="@drawable/pdf" />

<TextView
android:id="@+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="PDF"
android:textColor="#141212"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="116dp"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:layout_weight="1"
android:orientation="horizontal">

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView9"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/siswa" />

<TextView
android:id="@+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="SISWA"
android:textColor="#070707"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView10"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home"
tools:srcCompat="@drawable/product" />

<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="PRODUK"
android:textColor="#141414"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView11"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home"
tools:srcCompat="@drawable/bantuan" />

<TextView
android:id="@+id/textView11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="BANTUAN"
android:textColor="#070707"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:layout_weight="1"
android:orientation="horizontal">

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView5"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home"
tools:srcCompat="@drawable/galerry" />

<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="GALLERY"
android:textColor="#0B0B0B"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView6"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home"
tools:srcCompat="@drawable/survey" />

<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="SURVEY"
android:textColor="#0D0C0C"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_margin="20dp"
android:layout_weight="1"
app:cardBackgroundColor="#8BC34A"
app:cardCornerRadius="20dp"
app:cardElevation="10dp">

<ImageView
android:id="@+id/imageView8"
android:layout_width="match_parent"
android:layout_height="70dp"
app:srcCompat="@drawable/home"
tools:srcCompat="@drawable/exit" />

<TextView
android:id="@+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:text="EXIT"
android:textColor="#141212"
android:textSize="15sp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>
</LinearLayout>


</LinearLayout>


</LinearLayout>

Tidak ada komentar:

Posting Komentar

Subnetting

 subnetting adalah suatu metode untuk memperbanyak network ID dari suatu network ID yang telah anda miliki. SUBNET  MASK DEFAULT ini untuk m...