How to Make Android Constraintlayout Scrollable Using Android Scrollview

Pubblicato il: 09 agosto 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online How to Make Android Constraintlayout Scrollable Using Android Scrollview della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Coding Demos 09 agosto 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 70,104 volte e gli è piaciuto 827 spettatori. Buona visione!