Sunday, October 29, 2023

Build A List In Android Studio Jetpack Compose

Step 1: Download Flower Images 



Step 2: Copy Flower Names


val names = listOf(
"Zygopetalum Orchid",
"English Rose",
"Dinner Plate Dahlia",
"Turkscap Lily",
"Himalayan Poppy",
"Delphinium",
"Toad Lily",
"Foxglove",
"Bearded Iris",
"Peony",
"Bird of Paradise",
"Cockscomb",
"Protea",
"Love-Lies-Bleeding",
"Wisteria",
"Hydrangea",
"Passionflower",
"Anemone",
"Daffodil",
"Parrot Tulips",
"Hibiscus",
"Japanese Camellia",
"Million Bells",
"Balloon Flower",
"Columbine",
"Hollyhock",
"Hyacinth",
"Nasturtium",
"Moss Rose",
"Zinnia"
)

Step 3: Copy Flower Images Name


val imageIds = listOf(
R.drawable.f1,
R.drawable.f2,
R.drawable.f3,
R.drawable.f4,
R.drawable.f5,
R.drawable.f6,
R.drawable.f7,
R.drawable.f8,
R.drawable.f9,
R.drawable.f10,
R.drawable.f11,
R.drawable.f12,
R.drawable.f13,
R.drawable.f14,
R.drawable.f15,
R.drawable.f16,
R.drawable.f17,
R.drawable.f18,
R.drawable.f19,
R.drawable.f20,
R.drawable.f21,
R.drawable.f22,
R.drawable.f23,
R.drawable.f24,
R.drawable.f25,
R.drawable.f26,
R.drawable.f27,
R.drawable.f28,
R.drawable.f29,
R.drawable.f30,
)

Step 4: Copy Flower Description


val desc = listOf(
"Take the inherent beauty of the orchid, and add fantastic speckling and unusual anatomy. You will recognize one of the dozen or so species of the Zygopetalum genus of orchids. Unlike ",
"English roses like the 'Abraham Darby' variety shown here are revered for their large blooms packed with petals and old-world fragrance. Many of the most beloved English roses (Rosa) ",
"Some people automatically think of giant dinner plate-sized blooms at the mention of dahlias, but the Dahlia genus includes a huge diversity of plant and bloom size and flower forms. ",
"So many features of the Turkscap lily (Lilium martagon) make it unique: the impressive four-foot stalks, the pendant-like shape of each blossom, and the profusion of blooms on each ",
"Previously known as: Meconopsis betonicifolia. The allure of the Himalayan poppy is strong due to its hard-to-find blue color. These plants have very particular growing conditions in",
"Few flowers are as arresting as a healthy stand of Delphinium elatum in full bloom. Delphinium comes in coveted shades of blue from wispy powder puff blue to robust violet and purple.",
"Although the exotic-looking toad lily (Tryicyrtis hirta) seems like a tender tropical plant, this shade-loving perennial is surprisingly hardy. The fall bloomers can grow in zone 4, ",
"Bumblebees flock to foxglove and love them so dearly they sometimes spend the night in the tubular blossoms so they can get an early start when the sun rises. Foxglove blooms are shaped",
"Bearded irises (Iris germanica) are as tough and low maintenance as they are exquisite to behold in a sunny zone 3 to 9 garden. Expect to see varieties like 'Wabash,' a Dykes Memorial",
"The name says it all. While there aren't any unattractive peonies (Paeonia), 'Bowl of Beauty' pictured here is the perfect marriage of color and form. The large circumference of fuchsia",
"You won't be the first one to coddle and pamper your bird of paradise flowers as if they were pets. These South African beauties have an exotic appearance, are not fussy plants, and they",
"Whether you think Celosia argentea var. cristata is gaudy or gorgeous, no one can deny that the crested flowers are fascinating. Cockscomb flowers are annuals that are easy to grow from",
"At the same time being both spiky and delicate, king protea (Protea cynaroides) evolved to survive in the harsh South African climate with dry, hot summers and wet, cold winters. while",
"Love-lies-bleeding plants are easy to grow as annuals in all growing zones. These plants bloom from July to frost in full sun, and blooming panicles can reach up to two feet long. The",
"Although non-native wisteria varieties like Chinese wisteria (Wisteria sinensis) have an invasive reputation in the garden, a well-maintained native wisteria vine (Wisteria",
"Hydrangeas are fast-growing shrubs with resplendent colorful blooms. The many different species of hydrangeas produce various flower forms in a range of cool colors and bloom at ",
"Passionflower has unusual-looking yet exquisite flowers that remain open for only about a day. It has intricate details, with a broad, flat petal base with five or 10 petals appearing",
"Also called windflowers, anemones look similar to poppy or dogwood blooms, swaying delicately in the breeze. The flowers are usually simple single blossoms, though some types feature ",
"Daffodils are hardy, easy to grow, and are one of the most popular spring-blooming bulbs. Blooms are usually yellow but can also be shades of orange or pink, and white, with more than",
"The late spring blooming parrot tulip is a truly unique and whimsical plant thanks to its eye-catching variety of twisted, ruffled, or curled petals drenched in vivid color combinations",
"The pretty blooms of this shrub appear late in the summer season when the rest of the garden is beginning to fade. The exotic trumpet flowers come in many colors, and varieties, such as",
"The showy blooms of the Japanese camellia (Camellia japonica) are the state flower of Alabama, a popular flower in the southern U.S. There are more than 3,000 types of camellias;",
"Million bells (Calibrachoa) look a lot like miniature petunias, but they are a separate annual species that bloom abundantly from spring to the first frost. These pretty flowers attract",
"Balloon flowers (Platycodon grandiflorus) are an easy-to-grow bellflower perennial plant with puffy, balloon-like buds that swell to produce the two-to three-inch star-shaped flowers. ",
"Columbine (Aquilegia spp.) blooms look exotic, like ornate works of art with spurs and delicate petals that attract hummingbirds. This herbaceous perennial comes in many colors and",
"If you're looking for a stalky, showy, six- to eight-foot tall plant with big blossoms in luscious colors, hollyhock is a must-have for any cottage garden. It has large, heart-shaped ",
"Pretty hyacinths produce spikes of brightly colored tubular flowers with a strong floral scent. Deer tend to avoid strong-scented flowers, including Hyacinthus orientalis. You can choose",
"Nasturtium are fast-growing climbing and vine-like annuals with cheery flowers that come in fiery shades of red, orange, yellow, pink, and salmon. The rounded lily-pad-looking leaves",
"Moss rose is a drought- and heat-tolerant annual plant that is low-growing with succulent leaves. It will flower all season in gorgeous yellow, red, pink, salmon, white, and orange shades",
"Zinnias are very easy to grow from seed or from nursery transplants. They tolerate drought, heat, and deer. They bloom easily with bold-colored rounded blooms. Flower forms vary from daisy"
)


Step 5: Create Home Screen






Wednesday, October 18, 2023

Create Your Own Library In Android Studio Jetpack Compose And Publish Android Library On Github

 Step 1: Create Android Library

implementation(project(":mylibrary"))




Step 2: Create Github Account




Step 3: Publish Android Library On Github


maven(url = "https://jitpack.io")
implementation ("com.github.wlprojt:dimage:1.0")







Friday, October 6, 2023

Image Pick And Crop In Android Studio Jetpack Compose

 Step 1: Add Dependencies


implementation("com.github.CanHub:Android-Image-Cropper:4.0.0")

Step 2: Add Repositories 

maven(url = "https://jitpack.io")

Step 3: Add Activity In Manifest


<activity android:name="com.canhub.cropper.CropImageActivity"
android:theme="@style/Base.Theme.AppCompat"/>


Step 4: UI Design




UI Design #2 




### Source Code ###








Power Of Compounding

 Power Of Compounding 1 = 1 2 = 2 3 = 4 4 = 8 5 = 16 6 = 32 7 = 64 8 = 128 9 = 256 10 = 512 11 = 1024 12 = 2048 13 = 4096 14 = 8192 15 = 163...