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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:45:49+00:00 2026-05-23T04:45:49+00:00

I´m having a problem with my Android Project. I have a screen filling custom

  • 0

I´m having a problem with my Android Project.

I have a screen filling custom View, which displays a canvas. The canvas consists of a background picture and another picture layer, in which can be finger drawn. Additionally, the canvas view can be dragged and pinch-zoomed.
Now I implemented a detection for ‘longClicks’, i.e. finger down on same region for 1 second. As a result of this gesture, a small menu should pop up over the pointed region. The menu itself should consist of something like a TabHost/TabWidget, i.e. smaller icons on riders on top which reveal separate EditText, Buttons etc. at the lower part of the menu.

Now the question is: How can it technically be done?

1) I played around with TabHost etc., but I think it´s only possible to use when having a TabActivity. Is this correct?

2) Then I searched for a possibility to overlay my main activity with this TabActivity, resulting in that it´s possible, but I couldn´t really control where the overlay Activity was placed, it always started on top left. Is there a possibility to place an Activity somewhere on the screen?

3) Next I discarded my idea with the tabbed menu and searched for a possibility to only overlay my view with another view (and have the possibility to remove it later again). I read, that it´s possible with the ViewManager. But how do I access the ViewManager? Documentation says: http://developer.android.com/reference/android/view/ViewManager.html

call Context.getSystemService().

but via this function, I can only get the WindowManager and not the ViewManager. wtf?

I´m really stuck right now…can somebody give me a hand here?

edit:
I managed the view over view problem by programmatically instanciating a Layout and then handing it in as contentView.

rl = new RelativeLayout(getBaseContext());
 rl.addView(cview);
 cview.setId(1111);
 View overlay = getLayoutInflater().inflate(R.layout.menuoverlay, rl, false);
 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
 lp.addRule(RelativeLayout.ALIGN_LEFT, cview.getId());
 lp.addRule(RelativeLayout.CENTER_VERTICAL, cview.getId());
 rl.addView(overlay, lp);

Now when making the Layout static and by writing some getter/setter methods, I’m now able to control adding and removing of views.

private static rl;
//scroll scroll
 public static void addView(View view){
 rl.addView(view);

}

  • 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-05-23T04:45:50+00:00Added an answer on May 23, 2026 at 4:45 am

    I finally used PopupWindow now.
    http://developer.android.com/reference/android/widget/PopupWindow.html

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

Sidebar

Related Questions

I am developing an android application in which i have to implement custom rating
I am having another problem with my android app which I can't find an
I'm having a strange problem with Android 1.6 I have an application that has
On Android, I'm having a problem trying to figure out which ringtone is actually
I am having a problem with views overlapping in a RelativeLayout on Android 1.5...
I have just begun working with the Android SDK and I am having problems
We are having problem with the server migration. We have one application that are
I'm having problem when running my Windows Forms program. In the program, I have
I thought I'd have a crack at building an Android app having not done
I have developed some reusable android component which is basically a class . This

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.