Nama : Theresia Nawangsih NRP : 5025201144 Kelas : PPB - I Mengenal Composable Pada pertemuan kali ini, kelas kami diminta untuk membuat project " Happy Birthday" Pertama, pilih new project lalu memilih 'Empty Activity' Lalu yang terakhir, sesuaikan code dengan kebutuhan. Jika saya seperti gambar dibawah ini Source Code package com.example.happybirthday import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime. Composable import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview. Preview import androidx.compose.ui.unit.sp import com.example.happybirthday.ui.theme.HappyBirthdayTheme i...
Nama : Theresia Nawangsih NRP : 5025201144 Kelas : PPB - I View Model and State in Compose Pada pertemuan kali ini, kelas kami diminta untuk membuat project "Unscramble " Pertama, pilih new project lalu memilih 'Empty Activity' Lalu yang terakhir, sesuaikan code dengan kebutuhan. Hasil saya seperti gambar dibawah ini Source Code MainActivity.kt /* * Copyright (C) 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licen...
Nama : Theresia Nawangsih NRP : 5025201144 Kelas : PPB - I Android 1 - JetPack Compose Pada pertemuan kali ini, kelas kami diminta untuk menginstal Android Studio dan mengexplor 'Hello World!' Pertama, menginstall Android Studio pada halaman Download Android Studio & App Tools - Android Developers Kedua, pilih new project lalu memilih 'Empty Activity' Lalu yang terakhir, sesuaikan code dengan kebutuhan. Jika saya seperti gambar dibawah ini
Comments
Post a Comment