I'm new to constraintlayouts.
I have constraintlayout in scrollview. When I'm designing the bottom of the screen (so i can't see top of the screen), on every change (moving an imageview) scrollview scrolls to top.
So i go back to bottom of the screen for continue to design again and again.
Maybe studio rendering the view and resets but it makes the designing hard.
Here is the video : https://www.youtube.com/watch?v=9zZQBqPmMew&feature=youtu.be
Inside AppBarLaout , add child CollapsingToolbarLayout and TabLayout . Keep Toolbar and ImageView into CollapsingToolbarLayout . 4. Add attribute app:layout_scrollFlags="scroll|exitUntilCollapsed" to CollapsingToolbarLayout and attribute app:layout_scrollFlags="scroll|enterAlways" to Toolbar for collapsing effect.
In Android, a ScrollView is a view group that is used to make vertically scrollable views. A scroll view contains a single direct child only. In order to place multiple views in the scroll view, one needs to make a view group(like LinearLayout) as a direct child and then we can define many views inside it.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main. xml. In this above code, we have declare Linear layout as parent and added Vertical Scroll view.
Make Size custom as i shown in 1st image
then just adjust size as i shown in second picture then u r done :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With