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 9223395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:04:06+00:00 2026-06-18T04:04:06+00:00

I’m developing a calendar application and here’s what i want to do; for example,

  • 0

I’m developing a calendar application and here’s what i want to do;
for example, i have various activities in various days of a month and on the calendar, i want to add an icon to days which have activity(a concert for example). if a day does not have an activity this day will not have an icon.

Note: I’m using CalendarView as calendar UI.

Here’s the image what i’m trying to explain ;

http://postimage.org/image/kdejw72nb/

Please help me to add this tiny icons to this spesific days.

Thanks in advance.

  • 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-18T04:04:07+00:00Added an answer on June 18, 2026 at 4:04 am

    You would have to create your custom gridView. It could look something like this :

    layout for the weekdays

    <GridView
        android:id="@+id/weekdays"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:clickable="false"
        android:numColumns="7" />
    

    layout.xml for the days

    <GridView
        android:id="@+id/days"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:numColumns="7" />
    

    java code for displaying the weekdays

    GridView weekdays = (GridView) linearLayout.findViewById(R.id.weekdays);
    weekdays.setAdapter(new Weekdays());
    
    
    public class WeekDays extends BaseAdapter {
    String[] weekdays = null;
    
    public WeekDayAdapter() {
      DateFormatSymbols dateFormatSymbols= new DateFormatSymbols();
    
      weekdays = = dateFormatSymbols.getShortWeekdays();
    }
    
    public int getCount() {
      return 7;
    }
    
    public Object getItem(int position) {
      return weekdays[position];
    }
    
    public long getItemId(int position) {
      return GridView.INVALID_ROW_ID;
    }
    
    public View getView(int position, View convertView, ViewGroup parent) {
      View view = null;
    
      view = new LinearLayout(parent.getContext());
      view.setLayoutParams(new GridView.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
      view.setOrientation(Horizontal);
    
      LinearLayout linearLayout = new LinearLayout(parent.getContext());
      linearLayout.setOrientation(Vertical);
    
      TextView weekDays = new TextView(parent.getContext());
      weekDays.setText(weekdays[position + 1]);
    
      linearLayout.addView(weekDays);
    
      view.addView(linearLayout);
    
      return view;
    }
    }
    

    You could do something similar for setting the days of the month. Feel free to ask any questions.

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

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have a French site that I want to parse, but am running into
I have an autohotkey script which looks up a word in a bilingual dictionary
I have an array which has BIG numbers and small numbers in it. I
I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is

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.