Questions tagged [scrollview]

1

votes
2

answer
76

Views

Wrap content not working and scroll stopped working

Wrap content not working and scroll stopped working. Hi, I'm developing an app for Android and I have noticed that my app works perfectly in smartphones, however in Tablets in Portrait mode it adds a huge space and the ScrollView stops working. Smartphone's view: Tablet's view: My XML code: If I rem...
Federico Navarrete
1

votes
0

answer
9

Views

Xamarin.Forms ScrollView adds extra space

My ScrollView adds extra spaces above the first child and under the last on my iPhone X. There is no padding or margin. I gave the ScrollView a blue background to see it's dimensions better. If I remove the ScrollView, the spacing also is gone. Here`s the code I am using .... Is this maybe a bug or...
1

votes
4

answer
6.1k

Views

Android: Listview inside ScrollView

I want to have a layout that can scroll and a listview inside it. The listview will expand it's height base on how many items in it. Only the ScrollView outside is scrollable. This is my code: But the listview is neither expanded nor scrollable. Please help!
Ngo Van
1

votes
1

answer
1.8k

Views

ScrollView not working in RelativeLayout

Im trying to create a application , which is just a simple list with text, buttons etc... But the list is too large and it doesn't fit on a mobile screen. So I tried to make a ScrollView, but it doesn't work. EDIT: Scrolling doesn't work on the phone.
Rajat
1

votes
1

answer
1.2k

Views

React Native, How to make a ScrollView load minimum fullscreen without scrollbar but then scroll as content grows

I have a ScrollView that is being problematic because I need to put a bottom border on it, so I need it to load initially as fullscreen, but be able to have the ScrollView automatically increase in height when an component is added. It doesn't seem to work with just flex: 1, so I am trying to expli...
agm1984
1

votes
3

answer
52

Views

How to fix collapsing toolbar scrolling issue

I am trying to implement collapsing toolbar which I implement but I am not getting proper output. when I'll try to scroll using recyclerview item it's not scrolling properly but somehow it's scrolling ok if I'll scroll on touch outside of recyclerview I am getting this output Any help would be highl...
Chirag Patel
1

votes
1

answer
68

Views

React Native Image URL lowers my performance

When I display my images in the horizontal scroll-view with paging enabled the performance of app decreases. I know it is due to high resolution of the image. I want a good way so that I can load image with out degrading it's quality. Thank you in advance.
Alish Manandhar
1

votes
0

answer
40

Views

bottom of screen address bar

I am trying to imitate the address bar in Chrome Dev Apk or the chrome:flags for android with just a EditText and a imgButton. I have tried many ways to do this such as with a scrollview but nothing is working. I have a removed the code for the scrollview and am wondering if you could tell me where...
EquiWare
1

votes
0

answer
92

Views

ScrollView not scrolling with ConstraintLayout inside

When my device goes into landscape mode, my layout will not scroll. I have seen a number of other questions on this but most are slightly unrelated or talking about past bugs that have been fixed since. I know there is a bug that causes me to use fillViewport = true. I am not sure if this is an e...
KickingLettuce
1

votes
0

answer
210

Views

Why auto-scroll in Advanced Recycler View not working when dragging item?

I am creating an Android App. In that I am using advanced Recycler View. I implemented Drag and drop feature. When I am dragging an item, if I go above the screen size, the list are not auto -scrolled. That is, the dragged item, goes into the screen end and disappears. Since this is a Third Party...
Lord Commander
1

votes
1

answer
38

Views

LinearLayout onShow it moves the ScrollView down

I want to display my notification_bar_linearlayout on top of the ScrollView. In code after the data in ScrollView has been populate I will then show the notification_bar_linearlayout. But When I show: notification_bar_linearlayout.setVisibility(View.VISIBLE); The data inside the ScrollView will aut...
Joolah
1

votes
1

answer
70

Views

Why do line breaks stop working with addition of ScrollView?

I am currently working on a project where I need to create a line-break in a TextView. I know how to do this with \n and did so. However, when I wrapped my code in a ScrollView, line breaks don't work no matter what I do. What causes the line breaks to stop working and how do I fix it? Here is the c...
rabowlen
1

votes
0

answer
329

Views

MapView inside fragment inside nestedScrollView

I have an activity that should show a map so I made a separate fragment that contains a mapView and do the necessary logic in the fragment. In the activity I made a container which inside a nestedScrollView and to show the map I just commit the fragment in there and it works fine, but there's one is...
Alaa AbuZarifa
1

votes
0

answer
145

Views

get Scrollview inside navigation drawer Programmatically

i have a navigation drawer base on menu items.i want to get Scrollview inside navigation drawer. my navigation drawer: items:
docbigolo
1

votes
0

answer
31

Views

ScrollView in my .xml file is making the dropdown navigation toolbar nonresponsive

So, I am trying to make a daily task activity for my application, sort of like a planner. I want to be able to scroll down, but putting scroll view around my textview and edit text boxes makes my navigation dropdown unclickable. If I put the toolbar inside the scrollview all disaster occurs, and if...
Kaiti
1

votes
0

answer
284

Views

Testing scrollintoview while unit testing angular

When unit testing a scrollintoview() method in Angular 2+, I receive an error -> 'Failed: Cannot read property 'scrollIntoView' of undefined' in Angular 2+ Here is my scrollintoview code: document.getElementsByClassName('class')[0].scrollIntoView(); Any ideas on how to resolve this trough an execute...
Justin Degonda
1

votes
0

answer
25

Views

Open ScrollView by Click

I want to open a horizontal ScrollView with images by clicking on a central image. I already have my ScrollView loading dynamically my images: int[] images = new int[] { R.drawable.image1, R.drawable.image2, R.drawable.image3 }; LinearLayout sv; @Override protected void onCreate(Bundle savedInstance...
rm -rf
1

votes
0

answer
45

Views

How to calculate the height of a scrollView using ViewTreeObserver?

I have a ScrollView with some layouts in it, called the fragment_about_sl.xml.And the class associated to it is called AboutSLFragment.java.I want to calculate the height of the scrollView to get height ratio for an image.I researched the web and found this code. ViewTreeObserver vto = scrollView.ge...
C. Chan
1

votes
2

answer
56

Views

Set linearLayout margin

I need to fill a LinearLayout (child of a ScrollView) with dynamic TextViews. The problem is that, in my app, the position where the scroll starts is not defined (it changes dynamically while using the app) and I think I've resolved this with layout_constraintTop_toBottomOf. The main problem is that...
Angie
1

votes
0

answer
472

Views

this.props.position.interpolate is undefined and not a function

I have a component which has a scrollview class DiscoverThings extends React.Component { state = { scrollY: new Animated.Value(0), }; onPageScroll = ({ nativeEvent }) => { Animated.event( [{nativeEvent: {contentOffset: {y: this.state.scrollY}}}], {useNativeDriver: true}, ); this.props.setScrollable...
Aayushi
1

votes
0

answer
1.8k

Views

React Native scrollview is bouncing only on ios, not Android

How can I make scrollview bounce on Android ? From the documentation it seems that scrollview should only bounce on ios?! Is there another way other than setting bounces = {true} ?
Ahmad Moussa
1

votes
0

answer
321

Views

Make soft keyboard scroll view rather than resize it

I am trying to emulate an iOS-like keyboard for my Android app. Simply put, the contents of my activity should scroll behind the keyboard without resizing the spacing (which is what android:windowSoftInputMode='stateHidden|adjustResize' does). I can achieve a close scroll behavior by making my paren...
thearchitector
1

votes
2

answer
73

Views

Android Studio - Not all nested layouts inside ScrollView's child are showing

I need your help! I have an activity which supposed to be scrollable, Therefore the ScrollView is the top layout(i hope this is how you call it). I used android:fillViewport='true' on the ScrollView -The ScrollView's child is a LinearLayout with a couple of more nested LinearLayouts. Now my problem...
Dor Sloim
1

votes
1

answer
496

Views

Call function on scroll once in React-Native

I'm building an app, where I have a realizable header called which has prop isCollaped (value can be true or false) which opens and closes the container, and a (Screenshot below, sorry for not having text in English). Screenshots of an app: Case when isCollaped == false Case when isCollaped == tr...
1

votes
0

answer
39

Views

How can I add more floating sub-sections to a UITableView?

My goal is to represent a tree hierarchy much like this: Building Zone Floor Room ... using a table view. To accomplish this the design asks for each tree level to be embedded as its own Section. A .plain UITableView is limited as it supports only one floating Section. Further research led me to cr...
Sebastian Dwornik
1

votes
1

answer
83

Views

View at the bottom of RelativeLayout does not stick to the keyboard

... ... ... this is my writeActivity.xml when i clicked title_edit like this. i want this flow like below picture. but it's doesn't work way i wanted it to. it work like this. i think i was able to do it this way before, but i think i got it wrong. i've added a scrolling view, but it doesn't seem t...
01hanst
1

votes
1

answer
33

Views

Adding a scrollView to make other views present on the screen

I have a problem concerning the scrollView. In my xml code I have a bunch of TextViews and under these TextViews I have a button. Because I have too many TextViews, the button does not appear on the screen. Therefore, I added a layout containing all of these TextViews and I put this layout inside a...
Bazouk55555
1

votes
0

answer
138

Views

Xamarin Forms ScrollView displays blank screen

The following XAML shows my page just fine, until I added the ScrollView , now it just displays a blank screen. Can anyone spot anything obvious with this? I suspect it my be because I'm setting the height of the grid within the ScrollView but I'm not sure UPDATE looks like it's the ContentRationCon...
DarkW1nter
1

votes
0

answer
206

Views

ScrollView Children and Accessibility

I'm developing a Calendar Application and I want to make it accessible for visually impaired users. The CalendarScreen has a ScrollView that has one child, a DayViewGroup, which contain and lays out EventViews. For each EventView I set the contentDescription. Everything is created and added programa...
Ian Christie
1

votes
1

answer
30

Views

Flickering in Images inside GridLayout inside of ScrollView

I have ScrollView and inside I have a GridLayout and inside the GridLayout I have images, but when I scroll the Images (ImageView) start to flick. This only happens in API 22 or below. My layout looks like this:
Carlos Guerrero
0

votes
0

answer
13

Views

How to fix my scrollview is not scrolling correctly Android

I have been having problems with my scrollview with my app and i don't know what could be the problem, the scroll doesn't show the things that are in the top of the layout and instead is showing a blank space in the bottom I've tried using the scroll view as the father view , i've tried to put it in...
Jjx51
1

votes
1

answer
815

Views

Clicked button move to scrollView in swift

I have some question. When i clicked button, how to move scroll View for next scroll page. I made storyboard . enter image description here I have two direction button. This is my code(This code not include two button) import UIKit class ScrollDetailVC: UIViewController, UIScrollViewDelegate { let...
chen
1

votes
0

answer
49

Views

Remove space at the top of a UIScollView in Swift

I have created a ScrollView and a ImageView: let scrollView: UIScrollView = { let scroll = UIScrollView() scroll.backgroundColor = UIColor.red scroll.contentSize.height = 1234 scroll.translatesAutoresizingMaskIntoConstraints = false return scroll }() let filmImageView: UIImageView = { let imageView...
Nick89
1

votes
1

answer
156

Views

Add subviews programmatically to ScrollView using Visual Format Language

scroll view - layout programmatically - swift 3 Dear friends: I hope someone could revise this project and help me before my brain been burned. Thanks in advance. The task: Horizontal Scroll - Layout an array of 4 images, square of 240 x 240 and 20 of spacing. The constraints for the scroll view set...
acidosulfurico50
1

votes
1

answer
65

Views

Confusion with react native docs about 'ScrollView'

The doc is here When I was reading official docs and try to figure out how to properly use ScrollView, I was confused with the following words: Keep in mind that ScrollViews must have a bounded height in order to work, since they contain unbounded-height children into a bounded container (via a scro...
krave
1

votes
1

answer
202

Views

ScrollView inside Framelayout with BottomNavigationView not scrolling in android

I am trying to create an application with BottomNavigationView. For that i use Bottom navigation activity template in android studio. In a fragment i use ScrollView as top view. But it doesn't scroll. but if i use fixed height in dp to ScrollView it works properly else it does not scroll. here is my...
Pourush Rohila
1

votes
0

answer
114

Views

FlatList - Keep the ScrollView Content Position at same place?

When click the row extends the content, keep that row position at same place (in same viewport) and show the extended content below. Actual Result: Right now, its moving up the old content above and shows the new content in that position. Expected Result: I want the touched row should be at same pla...
1

votes
1

answer
109

Views

Kivy \\ How to tie a button to the bottom of the boxlayout

from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label from kivy.core.window import Window from kivy.uix.scrollview import ScrollView from kivy.effects.scroll import ScrollEffect from kivy.uix.widget import Widget from kivy.uix.button import Button class B...
1

votes
0

answer
72

Views

Collapsing Toolbar Layout with PDF Viewer

I am using Collapsing Toolbar Layout with PDF Viewer lib by barteksc. The problem is when i scroll up PDF viewer scrolling is not working. When i start scrolling up Collapsing Toolbar Layout works fine but under that PDF Viewer not scroll. I try every possible solution but no success, here is my c...
Zain
1

votes
0

answer
176

Views

Triple nested ScrollVIew not scrolling

I am writing an expo + nativebase app. I have... // how to get this to scroll? How can I get the nested Content (nativebase's ScrollView) to scroll? I've tried replacing Content with ScrollView with no success. Image before any scrolling Image after scrolling down as far as possible. The nested sti...
Simon

View additional questions