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

  • SEARCH
  • Home
  • 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 8887471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:49:00+00:00 2026-06-14T21:49:00+00:00

I am developing a Android Cell phone application using MonoDevelop for Android and the

  • 0

I am developing a Android Cell phone application using MonoDevelop for Android and the MapsAndLocationDemo. I am wanting to display some text under each overlay item. I have overridden the Draw method to do this.

Here is my code:

        public override void Draw (Android.Graphics.Canvas canvas, MapView mapView, bool shadow)
        {
            base.Draw (canvas, mapView, shadow);

            var paint = new Paint ();
            paint.AntiAlias = true;

            var gp = overlayDetailsForThisOverlay.overlayGeoPoint;
            var pt = mapView.Projection.ToPixels (gp, null);     

            canvas.DrawRect (pt.X, pt.Y, pt.X + 50, pt.Y + 50, paint);
            canvas.DrawText("Test", pt.X, pt.Y, paint);
        }

I am only wanting to display the text. However, if I remove the canvas.DrawRect line of code, no text is displayed at all.

Can I please have some help to display some desired text under an overlay item without having a rectangle drawn at all?

  • 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-14T21:49:01+00:00Added an answer on June 14, 2026 at 9:49 pm

    try this inside your xml layout

        android:background="@android:color/transparent"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing android push notification application using C2DM,I am facing some problems in
I am developing android application in which I am using text to speech conversion.What
I'm developing android application for CAR usage and I need that in phone or
I am developing Android Application. In which i am having list view with text
I am developing Android Application having ContactUs Page having Phone Number. I had given
I am new in developing android applications. I want to create an android application(using
Hi I am developing android application using WebView implementation. I followed the official android
I am developing android application, and I have 2 TableView on my window. Each
I am developing android application.In my application I want to display images from sd
Hi I am developing Android application using Titanium.I want to change value of particular

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.