About 2,330,000 results
Open links in new tab
  1. ScrollView in Android - GeeksforGeeks

    Jan 28, 2025 · This example demonstrates the steps involved to create a ScrollView in Android using Kotlin. Click on File, then New => New Project. Choose “Empty Activity” for the project template. Select language as Kotlin/Java. Select the minimum SDK (According to the need).

  2. android - Is there a way to programmatically scroll a scroll view

    Jul 26, 2011 · The answer of Sherif elKhatib can be greatly improved, if you want to scroll the view to the center of the scroll view. This reusable method smooth scrolls the view to the visible center of a HorizontalScrollView.

  3. ScrollView And Horizontal ScrollView Tutorial With ... - Abhi Android

    Aug 4, 2021 · Tutorial on Scrollview and Horizontal ScrollView teaches how views are make scrollable vertically and horizontally using examples and code in Android Studio.

  4. Android Scroll View - Naukri Code 360

    May 1, 2022 · Let's learn how to code it in a program by building a basic Android application that uses Scroll View. First, we need to create a new project in Android Studio by selecting the empty activity option. Now add some strings that will be displayed on the screen, in the strings.xml file. strings.xml: <resources> <string name="app_name">Scroll View ...

  5. Android ScrollView Example - StackTips

    Sep 17, 2023 · In this tutorial we will show you, how to use Android ScrollView component and create a simple example using various ScrollView properties. ScrollView is a special kind of layout, designed to hold view larger than its actual size.

  6. How to use ScrollView in Android? - Stack Overflow

    Jul 13, 2011 · Using ScrollView is not very difficult. You can just add one to your layout and put whatever you want to scroll inside. ScrollView only takes one child so if you want to put a few things inside then you should make the first thing be something like a LinearLayout.

  7. Multiple Views Inside a ScrollView in Android - GeeksforGeeks

    Aug 25, 2022 · 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. A ScrollView supports Vertical scrolling only, so in order to create a horizontally scrollable view, HorizontalScrollView is used.

  8. Animate a scroll gesture | Views | Android Developers

    Apr 16, 2025 · This document describes how to display a scrolling effect in response to touch gestures using scrollers. Your app can use scrollers— Scroller or OverScroller —to collect the data needed to produce a scrolling animation in response to a touch event.

  9. How to add a ScrollView in Android App - Studytonight

    Aug 23, 2021 · So let's implement a simple ScrollView in our android app. Step 1: Create a new Project. Click on File, then New > New Project. (Learn how to setup Android Studio and create your first Android project) Choose "Empty Activity" for the project template window. Select language as Java. Select the minimum SDK. Now, wait for the project to finish ...

  10. Can I scroll a ScrollView programmatically in Android?

    Jun 22, 2011 · If you want to scroll to a specific View, let's say txtview, in this case, just write: scrollView.smoothScrollTo(txtView.getScrollX(),txtView.getScrollY()); And you are done.

  11. Some results have been removed
Refresh