1,769 questions
1
vote
1
answer
125
views
ScrollView contents below navigation bar
I'm struggling with the new edge-to-edge display introduced by default with SDK 36. My scroll view contents are behind the navigation bar even when scrolled to the bottom.
I had a look at the "...
0
votes
2
answers
66
views
Buttons inside horizontal ScrollView doesn't response
I write project in react-native and have weird issue.
in my home page i have horizontal ScrollView, and inside it components that contain buttons, but the buttons not work. e.g. pressing on the ...
1
vote
1
answer
271
views
How to implement a scrolling behavior in Jetpack Compose similar to YouTube's channel UI?
I'm working on an Android app using Jetpack Compose, and I'm trying to implement a scrolling interface similar to the YouTube app's channel UI.
Here's what I want to achieve:
The top of the screen ...
0
votes
1
answer
71
views
Why is my layout not scrolling despite implementing Scrollview in android?
I have a layout file of a fragment in which i am trying to implement scrollview in it. I have made Scrollview as a parent view but still it doesn't scoll up and down. Below is the code of my layout ...
0
votes
1
answer
51
views
Cardviews not scrollable inside scrollview
In the beginning, I searched for a solution to the problem extensively but couldn't resolve it, even after trying all the solutions and answers to similar questions here.
I have a scrollview which ...
0
votes
1
answer
70
views
Android - ScrollView not scrolling, beginner programmer question
I'm beginner student of Android programming
I've added LinearLayout and ScrollView. I've filled LinearLayout with many long TextViews, to ensure, that it is long enough, to be able to scroll. My issue ...
1
vote
1
answer
74
views
Pdf generated from scrollview using PdfDocument only prints contents of first page keeping other pages blank
I want to generate a pdf document using Android's PdfDocument class by scrolling through contents of a scrollView.
Right now, correct number of pages are being generated but contents are printed only ...
0
votes
1
answer
98
views
Is there a way to remove the space between the top of the screen and top of the image in ScrollView?
I wanted to display my super-tall image, so I tried to put it into ScrollView,and constraint it to the top of the screen so it would be possible to scroll through it. I imagined it would fill in the ...
0
votes
1
answer
59
views
HorizontalScrollView doesn't scroll
I want to make a Table with a solid column on the left and scrollable columns on the right that scoll horizontally.
I've devided it into two differnt Table Layouts and put the right one in a ...
3
votes
3
answers
138
views
How to check if the ScrollView is actually displayed or not?
I have this dynamic text which will change. I need to enable the button of this layout only if the user read all the texts. (scrolled to the bottom). This is working with the method that I have ...
2
votes
1
answer
573
views
Expo Android over scroll glitch
I have an annoying glitch when using my expo app on Android. When I use ScrollView with overScrollMode set to 'always' or 'auto' and I scroll bit fast on beginning, I can reach bit further then where ...
3
votes
1
answer
154
views
Changing the position of a view while user scrolling
I have a long screen and I use NestedScrollView and a RecyclerView with it like the below screen:
As you see I have a commentConatiner layout at the bottom of the screen, currently the user sees it ...
1
vote
1
answer
142
views
why is it showing me blank screen?
App.tsx
import React from 'react';
import type {PropsWithChildren} from 'react';
import {
Dimensions,
FlatList,
Image,
Pressable,
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
...
1
vote
0
answers
103
views
Minimal working example of using Android's OverScroller class?
I'm trying to understand how to use the OverScroller class in Android for smooth scrolling. While the documentation provides an overview, I'm having trouble piecing together a minimal working example ...
0
votes
2
answers
736
views
My ViewPager2 height (android:layout_height="0dp") is not covering the parent and filling the available space, when i put it in scroll view
here i have a ViewPager inside the scroll view its 'layout_height' is 0dp
EXPECTED BEHAVIOUR : The viewPager should have covered the remaining screen
REAL BEHAVIOUR : The viewPager height gets ...
1
vote
0
answers
482
views
Jetpack Compose LazyColumn not scrolling when inside XML ScrollView
I am attempting to implement a functional LazyColumn within a ScrollView in XML. Unfortunately, the nestedScroll functionality of the LazyColumn is not working as expected. I have provided a ...
0
votes
0
answers
24
views
I'm unable to scroll horizontally in my project
I'm trying to create a story line that stacks horizontally on each other and you can scroll it horizontally from the beginning to the end but when I created it with the code below it didn't work at ...
1
vote
1
answer
211
views
Pin a child view at top of the screen on scrolling using scroll view
I need to pin a view at top of the screen when it reaches the top on scrolling. When it reaches the top the view should stay there as a header and rest of the views below that should scroll as normal.
...
0
votes
1
answer
43
views
Do I get any performance advantage by using RecyclerView for shorter data sets over NestedScrollView?
Question:
I have a NestedScrollView with 11 type of views (ImageView, 6 TextViews, 4 CardViews(with 1 RecyclerView in each)), the images of the layout is attached below. I am thinking of Implementing ...
0
votes
2
answers
440
views
Can i obseve fragment scrolling in activity?
I structured it like this:
FragmentContainerView in Main activity
ViewPager2 in HomeFragment
Nested scroll view / recycler view in ViewPager2 fragments
I want to set the visibility for a button in ...
0
votes
1
answer
488
views
ScrollView not working in android in react-native-popover-view
After upgrading react-native to version 0.71.3, the ScrollView passed as a children to react-native-popover-view is no longer scrollable in android but works in iOS. It used to work before the upgrade ...
0
votes
2
answers
432
views
Extends SwitchMaterial and NPE happen
I am trying to customize SwitchMaterial class in Android, like this
class TipSwitchMaterial @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = ...
0
votes
0
answers
90
views
Multiple Scrollable views android
1st Image shows initial view when screen opened
2nd Image should be the view after scrolling down and soon after
image is passed it should locked and bottom should be able to
scroll separately
...
1
vote
0
answers
32
views
Android ScrollViews with 50%+ height
I need to create an Android layout with two ScrollViews arranged vertically. If the device screen is small - each of them should occupy 50% of the screen (picture 1). But if the screen height allows, ...
0
votes
1
answer
1k
views
Fragment with RecyclerView inserted into compose does not scroll
I have a fragment that implements RecyclerView that I have included in jetpack compose view via AndroidView. I have pager, one page is in compose and second is in the old style.
Example of whole ...
1
vote
0
answers
278
views
Scrolling a ScrollView page-by-page
I'm trying to scroll a ScrollView in a loop and do something between the scrolls until it reaches the bottom. Ideally, I would like to scroll it "page-by-page" to minimize the number of ...
0
votes
1
answer
35
views
ScrollView error when I have used ScrollView in both fragments
Can anyone help me to solve this?
java.lang.IllegalStateException: ScrollView can host only one direct
child
I get this error because I have used ScrollView in both fragments. How to solve this?
I ...
0
votes
0
answers
330
views
ScrollView can host only one direct child and i also have only one child
I have a layout which need to be scrollable.This is a fragment and the fragment hosted on a activity.The ScrollView has only one child which is relativeLayout and the relativeLayout has multiple child....
0
votes
2
answers
94
views
The scrollview doesn't scroll
I'm trying to use Scrollview but it is not working for me whatsoever.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas....
0
votes
0
answers
48
views
Android ScrollView with custom scrolling from TextView1 to TextView2
I have a huge vertical ScrollView which contains many TextViews and ShapableImageViews.
The standard ScrollView allows a smooth scrolling. But I want to have it like this in my app:
As soon as the ...
0
votes
2
answers
2k
views
Android. How to show button to top of keyboard when it's opened?
I need to show my button to top of soft keyboard (when it's opened). For this I implement this https://medium.com/@madalinnita/android-how-to-move-views-above-keyboard-when-its-opened-quick-secure-...
2
votes
0
answers
46
views
How can I create a RecyclerView in Kotlin that can be smoothly scrolled both horizontally and vertically
I was able to create a structure like the one seen in the following video, but it shows strange behavior towards the bottom right and top right corner
DEMO GIF
fragment_standings.xml
...
<androidx....
0
votes
1
answer
81
views
How to keep Buttons stuck at bottom while the rest above are occupied by scrollable layout?
I have this RelativeLayout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="...
0
votes
0
answers
146
views
How to scroll ScrollView and RecyclerView on fragment Resume
I've faced a problem during my app development, that I need to save scroll position when leave fragment. Obviously, ScrollView can be scrolled to position with scrollTo() or smoothScrollBy(), and ...
0
votes
2
answers
1k
views
Strange behaviour using keyboard on ConstraintLayout
I have a problem developing my app on Android. For a long time, the app was intended to run only on tablets of fixed resolution, so we designed the layout using LinearLayouts. Now we need to deploy ...
2
votes
1
answer
5k
views
How do I disable stretch effect on React Native Scrollview/Flatlist?
This is the effect I am describing. I am emulating using a Pixel 3 with API 32 on android studio. This page is a scrollview with no styling, and a bunch of views with color stylings and height and ...
0
votes
2
answers
437
views
Android XML ScrollView wrap_content height inside ConstraintLayout
I have the following screen:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/...
0
votes
0
answers
20
views
Constraint layout stacks at the top when using scrollview
I have been trying to make an application for a school but I ran into some problems. I am trying to make the User Details page scrollable but the constraint layout stacks up at the top:
<?xml ...
2
votes
3
answers
204
views
formatted html text (Spannable) dosen't fully appear inside textview and scrollview
I am trying to add privacy policy page in my app, the whole page is html content, and I used this method to make text scrollable but the problem is the full text dosen't appear inside textview and I ...
0
votes
1
answer
970
views
ScrollView inside of a ConstraintLayout exceeds bounds of parent
I have the following structure for a fragment:
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://...
0
votes
0
answers
452
views
Disabling React Native ScrollView scrollbar during scrollToEnd
I'm using a ScrollView in my React Native App, and calling scrollToEnd({animated: true}) within a useEffect.
When its scrolling, the scroll bar temporarily appears. Is there some way to change that ...
1
vote
0
answers
167
views
How to achieve nested scrolling of WebViews in a RecyclerView?
I am rendering a vertical feed of WebViews using a RecyclerView. The WebViews may have different content heights, and but we need to cap the height of a WebView to be at most the height of the feed ...
0
votes
1
answer
99
views
scrollView.fullScroll(ScrollView.FOCUS_UP) not working in fragment in android studio
I have a scroll view parent in my fragment and one child view which is a constraint layout in the first child constraint layout I have many views so my question is how to scroll parent scroll view to ...
-3
votes
2
answers
45
views
how I can make the scroll in this case just below the line in android by java
this image of the activity that I am working on it
I want the scroll start form here below the View
this is my 2 RelativeLayout
-1
votes
1
answer
74
views
Data of addview cannot appeared in linearLayout of scrollview
I am trying to applying tutorial,
this a dummy store app, I showing the data that added from user inside view then added it in linear layout of scrollview, the app is run fine and the data is added to ...
1
vote
3
answers
1k
views
"androidOverscrollIndicator" is deprecated and shouldn't be used
I am applying stretch effect to Listview , I use androidOverscrollIndicator
ScrollBehavior(
androidOverscrollIndicator: AndroidOverscrollIndicator.stretch
),
I work perfectly but i see a warning ...
0
votes
1
answer
128
views
Android Keyboard hides TextView Element NativeScript
When I try to write something in an TextView-Element which is at the bottom of the screen, the Android keyboard hides the element. How can I resolve this issue? I already tried adding 'adjustPan' and ...
0
votes
1
answer
73
views
How to have top of ScrollView be visible on back press
I'm creating an Android app using MVVM and view binding. My home fragment has a ScrollView with three horizontal RecyclerViews inside.
When the user navigates to another view by clicking on an item &...
1
vote
0
answers
37
views
problem with listview in my Drawerlayout dont' scrolling
i can' scroll my listView in DrawerLayout.
mycode activity_main:
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app=&...
1
vote
1
answer
132
views
How to delegate scroll of RecycleView to ScrollView
I have a RecyclerView inside ScrollView. I want RecyclerView to start scrolling itself only after it reached a top of the screen, and while it isn't it should scroll his parent ScrollView. How to ...