. Android Developers Blog: Jetpack
Showing posts with label Jetpack. Show all posts
Showing posts with label Jetpack. Show all posts

Monday, 3 July 2023

JetPack Compose: Basic TextView Sample in JetPack Compose

 Hi All,     This is the very basic Text View Sample Jetpack compose.  1. Text Color: Change the text color using color parameter @Composable fun ColorText() { Text("Text in Red Color", color = Color.Red , modifier = Modifier .padding(8.dp) // margin .padding(8.dp) // padding ) } 2. Text Size:...

Tuesday, 28 September 2021

Android Jetpack Compose Toolbar example | Jetpack Compose TopAppBar

Hi Friends,              Many of us looking for Toolbar example in Jetpack Compose orTopAppBar example in Jetpack compose. Today I am going to share  you a sample which helps you in creating Toolbar in Jetpack compose.Also in this tutoriail I am providing you how...

Android Jetpack Compose Dropdown menu Example | Dropdown menu using DropdownMenu Composable

Dropdown menu:       We are going to use DropdownMenu Composable for creating dropdown menu.fun DropdownMenu( expanded: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, offset: DpOffset = DpOffset(0.dp, 0.dp), properties: PopupProperties = PopupProperties(focusable = true), content: @Composable ColumnScope.() -> Unit)In Above code if expanded is true, the popup...

Friday, 24 September 2021

Android Jetpack Compose Button Example | How to center a button in jetpack Compose | How to onclick listener on button in Jetpack Compose

Hi Friends,             Today I am sharing a Sample of Jetpack Compose Button view. I will show you howto set onclick listener on button in Jetpack Compose. How to style on Button inJetpack Compse , how to set height and width of button in Jetpack...

Android Jetpack compose- Android Listview using Jetpack compose | Jetpack compose listview clicklistener

 Hello all,         Today I am going to share my anothere Android Jetpack Compose tutoria.How to set clicklistener on listview in android Jetpack Compses, how to set clicklistener on button using Jetpack Compse.I am sharing below code where I am handling list item click in jetpack compose. This file...

Android Jetpack Compose Alert Dialog Sample | Jetpack Compose Dialog

 Hi Friends,                 Today I am sharing the Jetpack Compse Alert Dialog Sample.What is Alert Dialog?- Alert dialog is a Dialog which interrupts the user with urgent information, details or actions.Code: This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

Tuesday, 21 September 2021

Android Jetpack- Composable functions

Jetpack Compose is built around composable functions. These functions let you define your app's UI programmatically by describing how itshould look and providing data dependencies, rather than focusing on the process of the UI's construction (initializing an element, attaching it to a parent, etc.).To create a composable function, just add the @Composable annotationto the function name. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters package com.example.composesample import android.os.Bundle import...

Wednesday, 1 September 2021

Android Jetpack Compose- Android Studio with Jetpack Compose Getting Started | Jetpack Compose Tutoria

Hi All,  Today I am going to share my first JetPack Compose Tutorial. Here we learn how\nto setup android compose in android studio. We see the rquired dependency and other settings.Step 1: Installation:  First we have to download Android Studio Arctic Fox. That’s because when we use Android Studio to...

 

Copyright @ 2013 Android Developers Blog.