How to make a Date and Time List view in swiftUI?
// // DataListView.swift // ScrollableCardView // // Created by WilliamJiamin on 2024/7/2. // import SwiftUI struct DataListView: View { // let dateFormatter: DateFormatter = { // let formatter = DateFormatter()…
Android Day 26 ToDoList App
Android Day 26 ToDoList App package com.williamjiamin.supertodolistapp import android.widget.Toast import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.material.Card import androidx.compose.material.FloatingActionButton import…
Android Day 25 How to pass data from one screen to another screen?
Android Day 25 How to pass data from one screen to another screen? We need to modify alot of thing, just be patient: package com.williamjiamin.multiscreennavigationdemo import android.os.Bundle import androidx.activity.ComponentActivity import…
Android Day 24 Multi-Screen Navigation
Android Day 24 Multi-Screen Navigation In order to use navigation, we need to import some dependency: dependencies { val nav_version = "2.7.7" // Java language implementation implementation("androidx.navigation:navigation-fragment:$nav_version") implementation("androidx.navigation:navigation-ui:$nav_version") // Kotlin…
Android Day 23 MVVM model Intro
Android Day 23 MVVM model Intro MVVM(Model-View-ViewModel) 1.Model: Data and Logic of the App. 2.ViewModel:Handle the logic of Updating the Data.Handle the exposure of the data to the view. 3.View:…
Android Day 21 Let’s show our items in the List
Android Day 21 Let's show our items in the List I use an empty lambda expression and a new composible for this, don't worry, I will share more lambda expression…
Android Day 22 Let’s add edit and save functionality to our Contact App
Android Day 22 Let's add edit and save functionality to our Contact App I first seperate the dialog to a seperate composible, so we are not having so much things…
Android Day 20 Let’s create a more complex layout logic ! A contact App Mock!
Android Day 20 Let's create a more complex layout logic ! A contact App Mock! Let's make a contact app mock. It will have the functionality of adding contact info…
Android Day 19 How to collapse the dropdown menu?
Android Day 19 How to collapse the dropdown menu? Let's cut the chase : We are going to use state variable to control it. For example, using onDismissRequest = {…
Android Day 18 Why somethings I can’t click anywhere else when the dropdown menu is working and why the input textfield won’t show anything while I click?
Android Day 18 Why somethings I can't click anywhere else when the dropdown menu is working and why the input textfield won't show anything while I click? First, somethings you…