Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9197755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:08:28+00:00 2026-06-17T22:08:28+00:00

I am looking to create 3 different Calendar views in my application, each triggered

  • 0

I am looking to create 3 different Calendar views in my application, each triggered by a different button.

The first one is a standard calendar allowing you to pick a specific date.
The second one is similar, except you just select the month as a whole rather than a day.
The final one you just select the year as a whole.

I realize there is a CalendarView widget, but it is not available for API levels below 11.

I have seen a few custom ones around but they involve quite a number of classes, created by others and I don’t really want to rely on them. I have also looked into DatePicker, because it doesn’t necessarily need to look like a Calendar. If each date picker just had a spinner for the relevant field(s), that would work as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:08:29+00:00Added an answer on June 17, 2026 at 10:08 pm

    I managed to find a solution without the need to use other projects or starting from scratch. It is probably not the BEST solution, but it seems to work perfectly fine for me.

    I used the DatePicker widget rather than a calendar as it is simpler and does exactly what I need. I essentially remove (View.GONE) the date picker until one of the buttons is selected (e.g. “select full date”, “select month in year”, “select year”).

    In the first case with the “select full date”, I just set the date picker to VISIBLE. That is all that is required.

    In the second case with “select month in a year”, I set the date picker VISIBLE but I also call a method which using Reflection to hide the DAY part of the date picker.

    The final case is like above, except I hide the DAY and MONTH part of the date picker.

    In all the cases, a new button appears below the date picker “Set Date” or “Set Month” or “Set Year” (depending on which initial button was selected). Each of the buttons will extract the relevant field information from the date picker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to create something like in this image. Each block would have an
I'm looking to create an MVC application to edit the results of various customer
I'm looking to create a ribbon button for an OL2k10 add-in that opens a
I'm looking to create one of those purchase timers sort of like what they've
I'm looking for a WP plugin which can allow me to create different forms
I'm looking to create myself a licensing system and I am looking at different
I am looking to create a client/server application that I can use to slit
I'm looking to create roles like user / admin on signup to different controllers.
I am currently looking to create an application in Android where a user can
I'm looking to create a Button class in my custom XNA GUI that accepts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.