Click here to Skip to main content
13,148,503 members (67,409 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i am developing an application where i need to create horizontal scrollable buttons.Actually what i am trying to do is,i have an array of some dates and i want that every dates should be in form of buttons and if user clicks that button it should open a list view of the data relevant to that date.i don't have any idea how to achieve this functionality,so any help will be cordially appreciated,thanks in advance.
Posted 24-Sep-12 0:05am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Straight to code !
Use the XML given below in your layout and it will start scrolling horizontally.

Note: You cannot have both horizontal and vertical scrolls using the built-in framework.

<scrollview xmlns:android="">
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    <horizontalscrollview xmlns:android="">
        android:layout_width="320px" android:layout_height="fill_parent">

        <tablelayout xmlns:android="">
            android:id="@+id/linlay" android:layout_width="320px"
            android:layout_height="fill_parent" android:stretchColumns="1"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170924.2 | Last Updated 24 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100