Questions tagged [android-scroll]

195 questions
1
vote
1 answer

Making a 2D scrollable Table with clickable objects inside

I'm trying to make a table/grid filled with items. So far, I have implemented a GridView as proposed by Fuzzical Logic. Here is an image of the result. I can scroll in both directions. My problem is that by setting a new OnTouchListener to my…
1
vote
0 answers

FrameLayout and TabHost - wrapping/scrolling

I have a problem with my layout. On large screens tab content is wrapped (between the end of the content and the buttons at the bottom you will see only the background). On the other hand on small screens scrollbar is visible. Is there a way to do…
1
vote
1 answer

Scrolling button android

All I want button like below image. An button is scrollable and get the selected digit as like in image currently 0 is selected. Any one have an idea?
1
vote
0 answers

Custom scrollable view with zooming

I would like to implement a view that acts as a viewport for a larger content area. The user should be able to scroll horizontally and vertically and zoom by pinching. Think of it as a MapView, instead of custom-drawn content instead of a map. Is…
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
1
vote
1 answer

android handle both scroll and click events on a TextView

I have a problem with my android app. I'm using a simple Textview with a vertical scrollBar to display lyrics from a song. The problem is that in my activity I set a Onclick event on this same Textview. So when I scroll the lyrics in the textview,…
muchwow
  • 715
  • 7
  • 22
1
vote
1 answer

Don't scroll on ListView

i have a ViewFlipper, which contains only on ListView.The flipper uses SwipeDetection to change Next/Previous-Elements.These implementation works fine, but I have a problem with the scrollig function of the embedded ListView, cause often if I only…
Kooki
  • 1,157
  • 9
  • 30
0
votes
2 answers

HorizontalScrollView and image wrapping

I've implemented a LinearLayout with a tall/narrow image on the left side (top to bottom) and a HorizontalScrollView on the right side for showing a long image. The problem is that I have not managed to handle the HorizontalScrollView properly. It…
0
votes
0 answers

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 from start to finish. Could someone provide a…
zeus
  • 12,173
  • 9
  • 63
  • 184
0
votes
0 answers

Android. Compose how to implement page by page scroll

I am new in compose and I'm trying to implement own ViewPager. I was create HorizontalPager and PagerState. Inside Pager I create LazyRow, and everything looks good but I have some problem. I want to make it scroll only one item at a time. but it…
0
votes
2 answers

There is no way to prevent ScrollView from automatically scrolling when TextView is focused?

If I click text2 for the first time or whenever I click text2 after clicking text1, the ScrollView seems to be scrolling text2 to the top. If I put android:descendantFocusability="blocksDescendants" in the LinearLayout this scrolling does not…
0
votes
1 answer

Motion layout with RecyclerView, scroll at the end of recyclerview

Any ideas how to implement scrollToPosition with MotionLayout? Currently I have a RecyclerView and some header that hides on scroll and shows if you scroll to top. This is the scene:
0
votes
1 answer

Recyclerview measure scroll distance to disable keyboard

I want to hide keyboard if user starts scrolling in RecyclerView. dy is scrolled distance if I understood that correctly, and if it passes certain value, I can hide keyboard. But I found out if you press and hold the finger on screen and scroll…
0
votes
1 answer

Appium can't scroll in Android App when starting on clickable element

My situation I want to write UI-tests for an Android App and therefore I need to scroll in some of the App's fragments. The tests are written in Kotlin, Appium version is v1.15.1 . My problem I use the standard approach for scrolling(see below) and…
Erik Schmidt
  • 85
  • 1
  • 8
0
votes
1 answer

How do I synchronize scrollview positions of dynamic horizontal scroll views inside a container?

I have a parent container in one of my activities which make a call to it's child containers consisting of a horizontal scrollview as one of the objects. Sort of like a recyclerview with row objects placed inside where there is a common row/item…
user11455292
0
votes
1 answer

How to increase speed when drag item from top to bottom of listview?

I'm building and android music app, i created playlist song which user can choose any song to add into playlist, but i had problem. In case of there are many song into playlist (more than 100 or 200 song), if user drag a song from position 1 to…
Le Minh
  • 135
  • 1
  • 1
  • 12