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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:39:17+00:00 2026-05-27T11:39:17+00:00

I have an Activity A which has a "down" button (see image above). When

  • 0

Flow of desired behaviour

I have an Activity A which has a "down" button (see image above). When I press this button, I want to launch an Activity B on top of Activity A such that some of Activity A at the bottom is still visible. Activity B can in turn launch a number of other Activities (C, D etc) such that they only display within the same screen area as B. Does anybody know whether this is possible and, if so, how I can go about it?

Edit

I am aware that I can add android:theme="@android:style/Theme.Dialog" to my Activity’s manifest declaration. However, as far as I am aware, this displays in the centre of the screen and not such that I can resize it how I require. Correct me if I am wrong

  • 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-27T11:39:18+00:00Added an answer on May 27, 2026 at 11:39 am

    This is the XML for activities that should be on top of Activity A:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#00000000" >
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="0"
            android:layout_weight="0.6"
            android:background="#000000" >
            //use this for your new activity contents
        </LinearLayout>
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="0"
            android:layout_weight="0.4"
            android:background="#00000000" >
            //this is empty
        </LinearLayout>
    </LinearLayout>
    

    Now, in your manifest for Activities B, C etc:

    <activity
        android:label="@string/app_name"
        android:name=".ActivityB"
        android:theme="@style/Theme.Transparent"
        android:screenOrientation="portrait" >
    

    In values/styles.xml:

    <?xml version="1.0" encoding="utf-8"?>  
    <resources>
        <style name="Theme.Transparent" parent="android:Theme.NoTitleBar">  
            <item name="android:windowIsTranslucent">true</item>
            <item name="android:windowBackground">@drawable/theme_transparent</item>
        </style>
    </resources>  
    

    Finally, in drawable/theme_transparent.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android" >
        <solid android:color="#00000000" ></solid>
    </shape>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom activity which has inargument<MyClass>. MyClass has several properties. I want
Here's the scenario I have an activity(A) which has a button and textview. I
I have one Application which has more then 5 Activity I want to know
I have an activity which has an ImageView in it. What I want to
I have a launching Activity A1 which has a start button which starts a
I my project I have an activity which has a grid view. This grid
I have an activity which has a database query and it brings back 300
So I have an Activity which has a FragmentPagerAdapter and inside each fragment I
I have an Activity named whereActity which has child dialogs as well. Now, I
I have a workflow which has a custom activity which calls a web service.

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.