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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:56:12+00:00 2026-06-10T21:56:12+00:00

when i searched for it i found these links as solutions: http://android-codes-examples.blogspot.in/2011/04/google-map-example-in-android-with-info.html and https://github.com/jgilfelt/android-mapviewballoons

  • 0

when i searched for it i found these links as solutions:

http://android-codes-examples.blogspot.in/2011/04/google-map-example-in-android-with-info.html

and

https://github.com/jgilfelt/android-mapviewballoons

but i found both are complicated.

I am wondering if there is any simple way to do this. Like inflating a layout and showing it as a pop up just on the marker clicked.

Right now i am using just a Toast to show info when user taps on the marker. But the main problem is I want this toast(or other layout) to appear just above the marker which is clicked, not at the default toast position.

Thank You

  • 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-10T21:56:13+00:00Added an answer on June 10, 2026 at 9:56 pm

    Try this, modify according to your requirement:

    @SuppressWarnings({ "deprecation" })
        @Override
        protected boolean onTap(int index)
        {
            CustomView customView=new CustomView(MyMap.this);
            absMap.removeAllViews();
            absMap.addView(customView);
            customView.setBackgroundResource(R.drawable.maplocation1);
            customView.setVisibility(View.INVISIBLE);
    
            customView.removeAllViews();
    
              absMap.invalidate();
              customView.bringToFront();
              customView.setVisibility(View.VISIBLE);
              TextView tv2=new TextView(MyMap.this);
            //  tv2.setText(overlayItemList.get(index).getTitle());
              tv2.setWidth(170);
              tv2.setSingleLine(true);
              tv2.setEllipsize(TruncateAt.END);
              tv2.setSingleLine(true);
              tv2.setSingleLine();
    
              tv2.setTextColor(Color.WHITE);
              tv2.setTextSize(14);
              tv2.setTypeface(Typeface.DEFAULT_BOLD);
    
              TextView tv1=new TextView(MyMap.this);
              tv1.setSingleLine();
              tv1.setWidth(170);
              tv1.setSingleLine(true);
              tv1.setEllipsize(TruncateAt.END);
              tv1.setSingleLine(true);
              tv2.setText(overlayItemList.get(index).getSnippet());
    
    
              tv1.setTextColor(Color.WHITE);
              tv1.setTextSize(12);
              tv1.setTypeface(Typeface.DEFAULT_BOLD);
              customView.setTag(overlayItemList.get(index).getTitle());
              customView.addView(tv2, new AbsoluteLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT,10,5));
              customView.addView(tv1, new AbsoluteLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT,10,25));
              customView.setLayoutParams(new MapView.LayoutParams( 250, 100, overlayItemList.get(index).getPoint(),-125,-137, MapView.LayoutParams.MODE_MAP|MapView.LayoutParams.TOP_LEFT));
              customView.setOnClickListener(new OnClickListener() {
    
                @Override
                public void onClick(View v) 
                {
                }
            });
    
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have searched through internet & found that there are no any direct method
I searched and found three fairly good posts but all of them were animating
I have searched and found that in cordova.plist we need to add a row
I have searched and found a lot of different things but none that actually
I have searched and found another with quite close question but the result was
I've searched and found a good discussion here on SO , but it is
I've searched and I found some things about compiling to JARs in Eclipse, but
I've searched around and found that when implementing an authentication module in MVC architecture
Sorry if this is a duplicate question...I've searched around and found similar advice but
Searched a lot about this problem but never found a answer, that solved it.

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.