0

Hi I have implemented my own calendar using the help of Custom Android Calendar Now I am implement the scroll up and down view for getting previous or next months calendar similar to CalendarView API. I am sure this possible as it can be done through calendarView.

Can somebody direct me to right page to implement this? Do I need Gestures or scrollView?

If I use ScrollView inside the gridview - I am not able to get the calendar properly the view gets cut automatically!

 <ScrollView
        android:id="@+id/scrollview"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <GridView
            android:id="@+id/gridview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/header"
            android:layout_gravity="center_horizontal"
            android:listSelector="@android:color/transparent"
            android:numColumns="7"
            android:stretchMode="columnWidth" />

    </ScrollView>

Let me know!

TheDevMan
  • 5,914
  • 12
  • 74
  • 144

2 Answers2

1

I used the Gestures UP and DOWN and solved the issue. With some help from SIMPLE GESTURE LISTENER SAMPLE! Thanks! !

TheDevMan
  • 5,914
  • 12
  • 74
  • 144
0

@TheDevMan,if you are pointing to this viewCalender app's scroll effect This is called Parallax Effect. There are many libraries which can help you.

(Each library project contains guidelines which will help you for respective library.)

Particularly ParallaxEveryWhere is impressive. But you should adopt on bases of your usage.

HBB20
  • 2,743
  • 1
  • 24
  • 35
  • Thanks for the quick reply. actually I am not looking Stock Calendar App view. I am looking at CalendarView API which is there in SDK. Just a simple GridView with Scroll is required. If I swipe up it should go to next Month if swipe down it should go to previous month. – TheDevMan Apr 10 '15 at 16:15
  • So I want to know how the swipe up and down can be achieved. In SDK's calendarView swipe up and down work just fine. – TheDevMan Apr 10 '15 at 16:18