Category: kotlin Android studio course

Introduction to Android layouts and all the components.

Layouts, organize our views The prerequisite for this tutorial is the knowledge of layouts resources, allowing us to describe our views in Android. Let's start to see now, the main components, also called Widgets, that will allow us to organize our views in different ways. LinearLayout This container will organize its elements in line, horizontal or [...]

Read More

Menu: Bottom navigation Bar (kotlin/java) Example.

Today we will discover a new way of making menus in Android. Menu: Bottom Navigation Bar Our new menu is called Bottom Navigation Bar. And you will see that this name represents very well the graphics rendering. Menu: Bottom navigation Bar kotlin java As you can see in the picture above: the menu is at the bottom [...]

Read More

Save items – SharedPreferences (kotlin/java) Example

Introduction to SharedPreferences (kotlin/java) Save items – SharedPreferences (kotlin/java) Under Android, it is common to want to save an element, for example, the name of the connected user, or for example a string list. We have in this case several methods: SharedPreferences Write to a file Save to a database I will not go into the details [...]

Read More

Lesson 35 – Draw: text in kotlin

Another resource that allows the Canvas class is to plot text. 1 - We created a project called: Project039 We delete the TextView that automatically adds the Android Studio and define the ConstraintLayout id with the value: layout1:   Now we encode the class in Kotlin where all logic is found: package com.coding180.project039 import android.content.Context [...]

Read More

lesson 34 – Draw: ovals in Kotlin

Issue: Draw an oval that occupies the entire screen and a circle inside it. 1 - We created a project called: Proyecto038 We delete the TextView that automatically adds the Android Studio and define the ConstraintLayout id with the value: layout1:   Now we encode the class where the whole logic is: package com.coding180.project0038 import [...]

Read More

Lesson 32 – Draw: rectangles in Kotlin

Issue: Paint the white background and draw a series of rectangles with different styles. 1 - We created a project called: Proyecto036 We delete the TextView that automatically adds the Android Studio and define the ConstraintLayout id with the value: layout1:   Now we encode the class where the whole logic is: package com.coding180.project036 import [...]

Read More
Loading