Day33 of #100DaysOfCode

Kushagra Kesav
Mar 11, 2022

--

#CodeTogether Day 33/100

Hii folks πŸ™Œ

Today I completed the mini android app following Unit 1 of Android Basics in Kotlin.

Unit 1: Kotlin basics

Pathway 3: Build a basic layout

Source: https://developer.android.com/courses/android-basics-kotlin/course

So, I completed my mini basic android app. It was fun building one!

  • The Resource Manager in Android Studio helps you add and organize your images and other resources.
  • An ImageView is a UI element for displaying images in your app.
  • ImageViews should have a content description to help make your app more accessible.
<ImageView
android:id="@+id/imageView"
android:layout_width="0dp"
android:layout_height="0dp"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/androidparty" />
  • Text that is shown to the user like the birthday greeting should be extracted into a string resource to make it easier to translate your app into other languages.
android:text="@string/happy_birthday_text"

That is all for Day33 βœ…

Thanks for reading, See you tomorrow!

--

--

Kushagra Kesav
Kushagra Kesav

Written by Kushagra Kesav

Developer Relations | Communities | Software Engineering | https://www.linkedin.com/in/kushagrakesav

No responses yet