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
Watch video Android Studio Tutorial - Part 3 (2020 Edition) online without registration, duration hours minute second in high quality. This video was added by user DJ Malone 23 February 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 66,579 once and liked it 766 people.