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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:16:32+00:00 2026-05-11T03:16:32+00:00

I have an application that has a primary layout of portrait (it is fixed

  • 0

I have an application that has a primary layout of portrait (it is fixed as portrait), and there is one place to type in text. I would like to launch like a popup window in landscape orientation with the background image fogged out. I know there is a Popup Widget, but any ideas for rotating the text edit box would be great. Rotating it into a portrait view (text box only) when the keyboard is slid out would also work, as would showing a new screen with the text box on keyboard slide.

  • 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. 2026-05-11T03:16:33+00:00Added an answer on May 11, 2026 at 3:16 am

    The easiest solution to your problem is to display your EditText within a separate dialog themed Activity that you launch from within your main (portrait-fixed) Activity.

    The EditText Activity shouldn’t have its orientation fixed, so it will rotate as you’d expect when you slide out the keyboard.

    Creating the Text Entry Activity

    Create a new Activity the contains only the EditText View and anything else you want to include (probably OK / Cancel buttons and maybe a label?). Within the manifest set its theme to Theme.Dialog.

    <activity android:name='TextEntryActivity'            android:label='My Activity'            android:theme='@android:style/Theme.Dialog'/> 

    Fogging or Blurring the Activities behind a dialog is done by modifying the Window properties of the foreground Activity (your text entry dialog). Within it’s onCreate method use getWindow().setFlags to apply blurring to any background Activities.

    getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,                        WindowManager.LayoutParams.FLAG_BLUR_BEHIND); 

    Launching and Reading Entered Values from the Text Entry Activity

    Use startActivityForResult to launch the text entry Activity. Within that Activity call setResult to return the text string entered within the returned intent using the techniques described in this post.

    Override the onActivityResult method to listen for the result from the sub Activity.

    Triggering Launch on Keyboard Exposed

    You can launch the text entry Activity whenever you want, but if you want to always display it when the keyboard is exposed you can capture this event explicitely.

    Start by adding the android:configChanges attribute to the portrait Activity’s manifest entry. It should be registered to listen for keyboardHidden.

    android:configChanges='keyboardHidden' 

    Within that Activity, override onConfigurationChanged to launch the text entry Activity.

    @Override public void onConfigurationChanged(Configuration newConfig) {     Intent i = new Intent(this,TextEntryActivity.class);       startActivityForResult(i, STATIC_INTEGER_VALUE); } 

    You may want to check to confirm the keyboard is being exposed (rather than hidden) using the newConfig variable before launching the text entry Activity.

    You may also want to use the same technique to automatically return from the text entry activity when the keyboard is hidden.

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

Sidebar

Related Questions

We have an application that has one or more text console windows that all
We have a server application that has one module installed on a separate server,
We have an application that has to be flexible in how it displays it's
I have an application that has created a number of custom event log sources
I have an application that has Powershell 1 embedded into it, but we need
I have an application that has many different types of objects that each persist
I have an application that has several objects (about 50 so far, but growing).
I have an application that has multiple states, with each state responding to input
I have an application that has to deal with getting special characters in its
Background: We have an application that has been in the works for over 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.