Click here to Skip to main content
12,509,509 members (59,510 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Mobile Android
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
 
good
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="http://schemas.android.com/apk/res/android">
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:scrollbars="vertical">
  Permalink  
v2

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 | Mobile
Web01 | 2.8.160927.1 | Last Updated 24 Sep 2012
Copyright © CodeProject, 1999-2016
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