Day33 of #100DaysOfCode
Mar 11, 2022
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!