Android Studio Tutorial - Part 3 (2020 Edition)

Опубликовано: 23 Февраль 2020
на канале: DJ Malone
66,579
766

In this Android Studio tutorial let's work with ConstraintLayout, but basic building block for building the UI for screens. This Inventory Management app needs to allow users to provide a product name, product owner and date purchased. We'll use a Button widget for the submit button and some EditText's for entering text.

An EditText is a special widget in Android Studio that will allow the user to provide a string (text). When the user taps the EditText on their phone Android will automatically focus the EditText then open the phone's keyboard for the user to type. The keyboard is just what you'd expect: a full keyboard, just like when entering text into any app like Snapchat, Facebook, Twitter or Gmail. Word suggestions even work.

ConstraintLayout can be complicated, but hopefully this tutorial will help. In this video we won't even touch the XML code behind ConstraintLayout but instead use the visual editor in Android Studio.

To position elements (widgets) on the screen, first drag an element from the Palette pane in Android Studio into the add_product.xml file. Then click and drag the circle icons on the edges of the widget to constraint the widget to the left, right, top or bottom of the screen. You can even constrain elements to other elements, as we do in this tutorial.

If you have any questions please leave comments and I'll try to respond! If this video worked for you and you have the time, can you try to help others in the comments? Thanks so much!

See you in the next video!

Note: We won't be dealing with Kotlin in this video, but are purely focused on the UI, which doesn't use Kotlin. We'll get back to Kotlin in a future tutorial.

Connect with me on LinkedIn!   / danielmalone  


Смотрите видео Android Studio Tutorial - Part 3 (2020 Edition) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DJ Malone 23 Февраль 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 66,57 раз и оно понравилось 76 людям.