Reputation: 425
I want to create calendar. I want to use ListView as Hours For day viewing .
I came across a problem For showing events in day. I use my View as event.When I want to show my View between two hours, every thing is good(because simply in getView() method in adapter I inflate my View and show it ) but I can't show my View between two times that aren't between two hours.
For example I can't show my View between 2:30 and 3:30. I want to add my View over ListView.
This is ICS calendar, I want some thing like this:
You can see event between 5:30 and 6:30.
Upvotes: 2
Views: 645
Reputation: 7472
Use Relative layout to create 'layers'. Your bottom layout will be ListView and TextView as a top. But this layout can cause a lot of headache.
I recommend to create custom component (based on LinearLayout) where you can draw hours yourself and place TextView using absolute positioning.
Upvotes: 2