Speaker session taken by Mr. Adit Lal who is GDE Android and Individual Consultant. It was all about jetpack compose along with some hands-on application.
3. Jetpack Compose
/ jet ·pak kuhm· powz /
noun
Jetpack Compose is a declarative & modern toolkit for building native
Android UI. It simpli
fi
es and accelerates UI development on Android.
57. Column (
Modifier. background (Color. Green ) Hello World
) { Hello World
Text ( text = “ Hello World” )
Text ( text = "Hello World" )
}
Layout modifiers
96. Code
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
NotesApplicationTheme {
/
/
A surface container using the 'background' color from the theme
Surface(
modif
i
er = Modif
i
er.f
i
llMaxSize(),
color = MaterialTheme.colors.background
) {
Greeting("Android")
}
}
}
}
97. Code
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
NotesApplicationTheme {
/
/
A surface container using the 'background' color from the theme
Surface(
modif
i
er = Modif
i
er.f
i
llMaxSize(),
color = MaterialTheme.colors.background
) {
Greeting("Android")
}
}
}
}
98. Code
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
NotesApplicationTheme {
/
/
A surface container using the 'background' color from the theme
Surface(
modif
i
er = Modif
i
er.f
i
llMaxSize(),
color = MaterialTheme.colors.background
) {
Greeting("Android")
}
}
}
}
99. Code
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
NotesApplicationTheme {
/
/
A surface container using the 'background' color from the theme
Surface(
modif
i
er = Modif
i
er.f
i
llMaxSize(),
color = MaterialTheme.colors.background
) {
Greeting("Android")
}
}
}
}
100. Code
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
NotesApplicationTheme {
/
/
A surface container using the 'background' color from the theme
Surface(
modif
i
er = Modif
i
er.f
i
llMaxSize(),
color = MaterialTheme.colors.background
) {
Greeting("Android")
}
}
}
}
103. Check out
https://github.com/aldefy/Andromeda
https://bit.ly/3Nic0JF - Sample catalog app
Andromeda is an open-source Jetpack Compose design system. A
collection of guidelines and components can be used to create
amazing compose app user experiences. Foundations introduce
Andromeda tokens and principles while Components provide the bolts
and nuts that make Andromeda Compose wrapped apps tick.