About 431,000 results
Open links in new tab
  1. Make Android View Scrollable both Horizontally and Vertically

    Jul 12, 2020 · If you want to have a Android Activity to be scrollable both horizontally and vertically be its any parent layout i.e LinearLayout, TableLayout, RelativeLayout or GridLayout, you can achieve it by making use of both HorizontalScrollView and ScrollView. Step 1: Choose your Parent layout.

  2. android - How can I make my layout scroll both horizontally and ...

    I am using a TableLayout. I need to have both horizontal and vertical scrolling for this layout. By default I am able to get vertical scrolling in the view but horizontal scrolling is not working. I am using Android SDK 1.5 r3. I have already tried android:scrollbars="horizontal".

  3. TabLayout | API reference | Android Developers

    Feb 10, 2025 · TabLayout provides a horizontal layout to display tabs. Population of the tabs to display is done through TabLayout.Tab instances. You create tabs via newTab(). From there you can change the tab's label or icon via TabLayout.Tab.setText(int) …

  4. Android ScrollView Example | Scrolling Widgets - Vertically or …

    There are two types of ScrollView that can help you arrange widgets: Vertical ScrollView: To scroll widgets vertically. Here is an example project we have built in which we are sharing XML codes for both Horizontal and Vertical Scroll Views.

  5. ScrollView And Horizontal ScrollView Tutorial With Example In Android

    Horizontal ScrollView: In android, You can scroll the elements or views in both vertical and horizontal directions. To scroll in Vertical we simply use ScrollView as we shown in the previous code of this article and to scroll in horizontal direction we need to use HorizontalScrollview.

  6. Android ScrollView and HorizontalScrollView Tutorial with …

    In Android, ScrollView is a Layout type, which is a rectangular container with a vertical scroll bar. It is able to contain another component larger-sized than itself. Similar to ScrollView, HorizontalScrollView is a container with a horizontal scroll bar.

  7. android - How to enable horizontal scroll in tab like Google Play ...

    I just wrapped the TabLayout with <HorizontalScrollView android:layout_width="match_parent" android:layout_height="match_parent">. Only thing is when I swipe to a tab off the screen, it doesn't focus on that tab.

  8. android - How to make layout scrollable both horizontally and ...

    Jun 12, 2016 · ScrollView and HorizontalScrollView are layout container for a view hierarchy that can be scrolled vertically or horizontally by the user, allowing it to be larger than the physical display.

  9. ScrollView in Android - GeeksforGeeks

    Jan 28, 2025 · A ScrollView supports Vertical scrolling only, so in order to create a horizontally scrollable view, HorizontalScrollView is used. Defines whether the ScrollView should stretch its content to fill the viewport. Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. Defaults to false.

  10. Android HorizontalScrollView Tutorial With Example

    In this post, we are going to learn about how to use android horizontalScrollView widget in any android application. We will also go through different attributes of horizontalScrollView widget that can be used to customise it.

Refresh