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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:51:35+00:00 2026-05-25T05:51:35+00:00

I have MyActivity with WebView element. When I long press on web view the

  • 0

I have MyActivity with WebView element. When I “long press” on web view the ActionBar pops up. If I try to access the action bar like

getActionBar()

somewhere inside my activity I get null. It seems the web view is using some kind of menu popup.

QUESTIONS:

  1. How can I access that action bar?
  2. How to set the action bar not to move the activity down when it is displayed (so ActionBar to be on top of it > position:absolute)?

enter image description here

  • 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-25T05:51:35+00:00Added an answer on May 25, 2026 at 5:51 am

    This is called an ActionMode. You can make it overlay your Activity by setting android:windowActionModeOverlay="true" in your theme, like setting android:windowActionBarOverlay to have the ActionBar overlay content.

    There is an ActionMode hook in Activity which you can maybe use: onActionModeStarted().

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

Sidebar

Related Questions

I have Webview application that uses progress bar dialog. It works fine but the
I have one activity(MyActivity), in which I have a grid view. Also I have
I want to have a button press display a web page, I use the
Say I have an Intent like this: Intent intent = new Intent(context, MyActivity.class); I
Have a n-tire web application and search often times out after 30 secs. How
i have integrated a webview in my activity. accwebView.setClickable(false); accwebView.setHorizontalScrollBarEnabled(true); accwebView.setVerticalScrollBarEnabled(true); accwebView.getSettings().setDefaultZoom(ZoomDensity.FAR); accwebView.getSettings().setSupportZoom(true); accwebView.getSettings().setBuiltInZoomControls(true);
I have written a simple helloworld app with a WebView which has a link
I have an activity using an xml layout where a WebView is embedded. I
I have an activity(say, MyActivity) that contains fragments, and i am using fragmentTransaction.replace(XX,YY) for
I've got an issue with WebView on Android 3.1 and higher. I have a

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.