Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio design screen scrolling top on every change

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

like image 644
Emre Akcan Avatar asked Jun 02 '18 08:06

Emre Akcan


People also ask

How do I fix scroll position on top of layout?

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.

How do I set scroll view?

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.

How do I make my apps vertically scrollable?

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.


1 Answers

Make Size custom as i shown in 1st image

then just adjust size as i shown in second picture then u r done :) enter image description here enter image description here

like image 84
Vaibhav Pallod Avatar answered Nov 11 '22 11:11

Vaibhav Pallod