Achieving Custom Day View in Android - android

Hi everyone, I'm try to make a custom day view in application, similar to the Google Calender's day view.
There are two things that I need to figure out:
How to display an event on top of a ListView similiar to event of
the 'Laliga match' in the reference image.
How to create events through selecting hours on the list, should I
use buttons, checkboxes or what?
I'm kinda stuck here, any help would be appreciated! Thanks.

Related

Displaying one item from a ListView of many items like a SlotMachine

I am new to android. I want to use ListView to display only one item at a time and there should be way to know that the slot is showing a particular item once the user stops scrolling. To be particular I want to make it look like slot machine. Please help me out! Thanks in advance!
Please find the image below:
http://i.stack.imgur.com/7OzNm.jpg
WheelView is what actually you are looking for. Check this link:
http://sunilsuthar02.blogspot.in/2012/10/wheel-view-demo-in-android.html
https://github.com/LukeDeighton/WheelView

Hourly list view in android

I'm trying to implement a simple calendar as my first Android app, but I don't know how I would go about implementing the daily view which consists of a ListView of all available hours, including those that have an event assigned to them.
Should I generate the empty hours and insert them into an ListView? Is there any better way?
Thanks!
You insert into your ListView what you want to show to your users. If you want to show a row of empty case for those hours without an event then yes you put those hours into the ListView. However, if you want to represent a collapsed view where only the hours with an event are shown then you don't include the other hours.
A good idea would be to represent only the hours with events but expand the list to dynamically include the other hours for the day when the user touch on it and vice-versa.
You could also use an ExpandableListView if you want to have something more like an hierarchy but using an ExpandableListView is not essential if you want to dynamically add or remove items to your ListView.

Best way to create a week or day view for a calendar using GridView while getting the times right as well?

So I have decided to create my week or day views using a GridView. Getting an individual day or week and putting the events thats corresponds to it isn't so bad. But there is one thing I have no idea how to implement correctly. I would like to put events in the right time frame as well, down to the minute if possible. I was hoping to get some advice on how to possibly accomplish this. Appreciate any help.
You can definitely have a day GridView within each cell of the month GridView. Not sure what the performance would be like though. Perhaps it might be best to create your own Panel that overrides onMeasure & onLayout to put the events in the correct spots.

Android: Custom layout for the SectionIndex dialog

I have a Custom ListView containing events. The Adapters SectionIndexer indexes the day of the week and time of the events upon fastscrolling (e.g. Monday 10:00) but with the default styling of the fastscrolling text, the text is to big and gets cut at the edges.
Is there any way to change the layout of the SextionIndexer dialog? I specifically want to remove the box in the background (or enlarge it to match the day and time displayed) and change the textSize.
There must be a way :) I can't be the only one wanting to index something else than the first letters!
Maybe you already got your answer but anyway for you and others I found a post about this problem
Take a look at this post Fast Scroll display problem with ListAdapter and SectionIndexer
Hope it helps!

Displaying Calendar in an Android App

I would be obliged if someone could provide me a solution as to which component to be used so that I can display a fairly good looking calendar in my Android application.
I kept browsing for a solution for the past two days, but unfortunately could not find a solution. Since this is a very basic requisite, I am sure that there will be a perfect solution for this.
Please help with suggestions, comments and solutions.
Any help in this regard is well appreciated.
Looking forward,
Regards,
Rony
The only way to do this is to develop your own calendar widget from scratch
I am also searching for this. For now, the only thing available seems to be this:
http://code.google.com/p/android-calendar-view/
However it lacks swipe gestures, does not work on landscape, or higher density screens.
Your question may be from 2010, however it still shows up on my first result page while googling the same question.
Therefore, I felt like I should share the 2 library I eventually selected that doesn't seem to be depreciated yet :
Caldroid from Thomas Dao and Times Square from Jake Wharton.
You would have to use a gridView for the month view, a list view for the agenda view and the scroll view for the day view. You could also use a gridView for the week view. For the grid, you could set the col # to 7 so that you get 7 columns for 7 days and have another child gridView to display the weekdays as headers. For the day, you could add a framelayout inside the scroll view. this would ensure that you can overlap and add multiple events to s single column. for the agenda view it would be simple to just use a list view and set list items using a list adapter.

Categories

Resources