How to Make Android Constraintlayout Scrollable Using Android Scrollview

Published: 09 August 2020
on channel: Coding Demos
70,104
827

Hi and welcome to another tutorial from CodingDemos :)

In this tutorial, you will learn how to make Android Constraintlayout Scrollable using Android Scrollview.

Here are the steps:
1- Open up Android Studio.

2- Open activity_main.xml file and change the root layout from Android Constraintlayout to Scrollview.

3- Add a Constraintlayout inside the Scrollview.

4- Add padding inside the Constraintlayout so that you can include other sub views.

5- Add 2 Android Textviews and 5 Buttons inside the Constraintlayout to have a scrollable effect.

6- Add margin-top in each views just to have enough space between each other.

7- Once you are done with adding those sub views, remove the padding from the Constraintlayout.

8- Finally build and run the app to see the final output.

#androiddevelopment #androidprogramming #androidtutorial #androidstudio #androidstudiotutorial #java

Links:
Android Scrollview tutorial:    • Android scrollview example  
Website: https://www.codingdemos.com
FaceBook:   / codingdemos  

Introduction 00:00
Final output 00:35
Add ScrollView & Constraintlayout in XML file 02:10
Add other views in XML file 08:55
Conclusion 13:10


On this page of the site you can watch the video online How to Make Android Constraintlayout Scrollable Using Android Scrollview with a duration of hours minute second in good quality, which was uploaded by the user Coding Demos 09 August 2020, share the link with friends and acquaintances, this video has already been watched 70,104 times on youtube and it was liked by 827 viewers. Enjoy your viewing!