Android Basics: BirthDayCardVideo

Опубликовано: 16 Июнь 2026
на канале: David Lopes
37
0

BirthDayCard made for Android Basics Course.

Initial ideia was a Birthday card. Simple Cake Image with some BirthDay message.

In this simple first Android Card i used Relative Layout with One Image view and two text views.
All views have Identification for later use.

In this image View, with id set to "photo_image_view" i have setup the cake2 picture (saved from the internet in to in drawable folder).
To align the picture i used alignParent with true in Left, Top and Start.
I used scaleType to centerCrop to setup the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height)
of the image will be equal to or larger than the corresponding dimension of the view (minus padding).

In the first Text_view layout width matches parent to fit in screen.
Margins are set to 20dp to avoid the text near the corners.
The font its a sans-serif-light in white.
Text is 36sp for better text look


The second Text View its aligned to the Bottom and to the Right
The look its the same as the first text view.

And this was my first Card APP in Android Studio.
I wait your feedback.

Code and Source in:

https://github.com/algarvi0/Android-H...