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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:29:21+00:00 2026-06-05T07:29:21+00:00

I have an layout with some icons. When i touch one icon on the

  • 0

I have an layout with some icons. When i touch one icon on the bottom, in the 1/4 of the screen on the bottom wil become something like an option menu which I created myself.

My goal is to fade / dimm now the rest of the screen, except the 1/4 on the bottom. An also to make this part of the screen inactive, like for the optionMenu in android.

Do you have any idea how could I do this? Shuld I create two separate layouts, one with the icons and another with the menu?

Thank you.

Here Is ma initial layout:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg" >


 <RelativeLayout
     android:id="@+id/mainRelativeLayout"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_alignParentBottom="true"
     android:layout_alignParentLeft="true"
     android:layout_alignParentRight="true"
     android:layout_alignParentTop="true"
     android:layout_marginLeft="10dp"
     android:layout_marginTop="10dp" >

     <TextView
         android:id="@+id/CenterTextViewJournals"
         android:layout_width="wrap_content"
         android:layout_height="20dp"
         android:layout_centerHorizontal="true"
         android:layout_centerVertical="true"
         android:text="         " />

     <ImageView
         android:id="@+id/invisibleImageView"
         android:layout_width="120dp"
         android:layout_height="120dp"
         android:layout_centerHorizontal="true"
         android:layout_centerVertical="true" />

     <ImageView
         android:id="@+id/EditorialBoard"
         android:layout_width="120dp"
         android:layout_height="120dp"
         android:layout_above="@+id/CenterTextViewJournals"
         android:layout_centerHorizontal="true"
         android:onClick="goEditorialBoard"
         android:src="@drawable/button_about_active" />

     <ImageView
         android:id="@+id/Contact"
         android:layout_width="120dp"
         android:layout_height="120dp"
         android:layout_alignBottom="@+id/CenterTextViewJournals"
         android:layout_toRightOf="@+id/CenterTextViewJournals"
         android:onClick="goContact"
         android:src="@drawable/button_about_active" />

     <ImageView
         android:id="@+id/AimsAndScope"
         android:layout_width="120dp"
         android:layout_height="120dp"
         android:layout_alignBottom="@+id/CenterTextViewJournals"
         android:layout_toLeftOf="@+id/CenterTextViewJournals"
         android:onClick="goAimsAndScope"
         android:src="@drawable/button_about_active" />

     <ImageView
         android:id="@+id/Articles"
         android:layout_width="180dp"
         android:layout_height="180dp"
         android:layout_centerHorizontal="true"
         android:layout_centerVertical="true"
         android:onClick="goArticles"
         android:paddingBottom="9px"
         android:paddingLeft="6px"
         android:paddingRight="8px"
         android:paddingTop="4px"
         android:src="@drawable/button_about_active" />

 </RelativeLayout>


<ImageView
    android:id="@+id/StartSelectingDifferentJournal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:scaleType="fitXY"
    android:src="@drawable/journal_selecting_barr" />

<Gallery
    android:id="@+id/gallery"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_above="@+id/SelectDifferentJournaleditText"
    android:layout_alignParentLeft="true"
    android:gravity="bottom" />

<EditText
    android:id="@+id/SelectDifferentJournaleditText"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_alignParentBottom="true"
    android:visibility="gone"
    android:hint="Search Journal">
</EditText>

<ImageView
    android:id="@+id/SelectingDifferentJournal"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_above="@+id/gallery"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:gravity="bottom"
    android:scaleType="fitXY"
    android:src="@drawable/journal_selecting_barr" />

  • 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-05T07:29:23+00:00Added an answer on June 5, 2026 at 7:29 am

    Alright, here’s a simple way of doing this, but your going to have to modify your layout setup.

    <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg" >
    
    
     <RelativeLayout
         android:id="@+id/mainRelativeLayout"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignParentBottom="true"
         android:layout_alignParentLeft="true"
         android:layout_alignParentRight="true"
         android:layout_alignParentTop="true"
         android:layout_marginLeft="10dp"
         android:layout_marginTop="10dp" >
    
         <TextView
             android:id="@+id/CenterTextViewJournals"
             android:layout_width="wrap_content"
             android:layout_height="20dp"
             android:layout_centerHorizontal="true"
             android:layout_centerVertical="true"
             android:text="         " />
    
         <ImageView
             android:id="@+id/invisibleImageView"
             android:layout_width="120dp"
             android:layout_height="120dp"
             android:layout_centerHorizontal="true"
             android:layout_centerVertical="true" />
    
         <ImageView
             android:id="@+id/EditorialBoard"
             android:layout_width="120dp"
             android:layout_height="120dp"
             android:layout_above="@+id/CenterTextViewJournals"
             android:layout_centerHorizontal="true"
             android:onClick="goEditorialBoard"
             android:src="@drawable/button_about_active" />
    
         <ImageView
             android:id="@+id/Contact"
             android:layout_width="120dp"
             android:layout_height="120dp"
             android:layout_alignBottom="@+id/CenterTextViewJournals"
             android:layout_toRightOf="@+id/CenterTextViewJournals"
             android:onClick="goContact"
             android:src="@drawable/button_about_active" />
    
         <ImageView
             android:id="@+id/AimsAndScope"
             android:layout_width="120dp"
             android:layout_height="120dp"
             android:layout_alignBottom="@+id/CenterTextViewJournals"
             android:layout_toLeftOf="@+id/CenterTextViewJournals"
             android:onClick="goAimsAndScope"
             android:src="@drawable/button_about_active" />
    
         <ImageView
             android:id="@+id/Articles"
             android:layout_width="180dp"
             android:layout_height="180dp"
             android:layout_centerHorizontal="true"
             android:layout_centerVertical="true"
             android:onClick="goArticles"
             android:paddingBottom="9px"
             android:paddingLeft="6px"
             android:paddingRight="8px"
             android:paddingTop="4px"
             android:src="@drawable/button_about_active" />
    
     </RelativeLayout>
    
    
    <ImageView
        android:id="@+id/StartSelectingDifferentJournal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:scaleType="fitXY"
        android:src="@drawable/journal_selecting_barr" />
    </RelativeLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/dimmer_layout"/>
    <RelativeLayout
        layout_width="match_parent"
        layout_height="match_parent">
    <Gallery
        android:id="@+id/gallery"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/SelectDifferentJournaleditText"
        android:layout_alignParentLeft="true"
        android:gravity="bottom" />
    
    <EditText
        android:id="@+id/SelectDifferentJournaleditText"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_alignParentBottom="true"
        android:visibility="gone"
        android:hint="Search Journal">
    </EditText>
    
    <ImageView
        android:id="@+id/SelectingDifferentJournal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/gallery"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:gravity="bottom"
        android:scaleType="fitXY"
        android:src="@drawable/journal_selecting_barr" />
    </RelativeLayout>
    </FrameLayout>
    

    When the menu gets opened, set the Linear Layout’s background to a transparent black like 0x55000000.

    void onMenuOpen() {
        openTheMenu();
        LinearLayout llDimmer = (LinearLayout)findViewById(R.id.dimming_layout);
        llDimmer.setBackgroundColor(0x55000000);
    }
    

    Then you can set the background color to 0x00000000 after the menu closes.

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

Sidebar

Related Questions

I build a SideBar menu that contains some icons, when clicking on one of
I have a simple layout file which displays the icons and some text view
I have a ListView which layout looks like a Windows Explorer view (icon +
I have some layout css questions. Their more like best practices and whats the
I have a layout that is three linear layouts. The top has some icons
I'd like to have an app layout as the one they used for Gmail.
I want to set layout something like What i thought that i will have
We have an adaptive layout where some list elements are displayed horizontally: | Li1
I face some layout differences in IE and in Chrome. I have searched Stack
I have implemented an application for modify the xml layout with some properties. I

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.