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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:10:48+00:00 2026-06-08T01:10:48+00:00

what I am trying to do is to show a menu bar at any

  • 0

what I am trying to do is to show a menu bar at any time no matter what layout or Activity is being displayed. What I’m basically doing is create an activity (lets call it MenuActivity), that creates the buttons, and make the other activities extend from MenuActivity. The problem is, I cant find a way to make the buttons get displayed on the other activities. Here is the xml of the buttos if this helps:

<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/relativeLayout" >

    <Button
        android:id="@+id/ABC"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_x="14dp"
        android:layout_y="373dp"
        android:text="@string/abc" />

    <Button
        android:id="@+id/favoritos"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_x="62dp"
        android:layout_y="374dp"
        android:text="@string/favoritos" />

    <Button
        android:id="@+id/Cupones"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_x="243dp"
        android:layout_y="372dp"
        android:text="@string/cupones" />

    <Button
        android:id="@+id/destacados"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_x="145dp"
        android:layout_y="375dp"
        android:text="@string/destacados" />

</AbsoluteLayout>

Thanks in advance!

  • 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-08T01:10:50+00:00Added an answer on June 8, 2026 at 1:10 am

    I guess that your problem will be solved if you include this layout as child layout in layout of other Activities:

    <include  layout="@layout/menulayout" android:id="@+id/menuLayout"  ...  />
    

    The menulayout.xml is name of your above layout that should be defined in res/layout and you like that be shown as menu in all Activities,also menuLayout is id of your menulayout and you can reference to it in your Activity’s layout or in your code.
    You can override all the layout parameters. This means that any android:layout_* attribute can be used with the <include /> tag. Here is an example:

    <include android:layout_width="fill_parent" layout="@layout/image_holder" />     
    

    You can see more details in about include in this page.
    Edit:
    If you have problems in about finding views in included layout,see this questions,I hope these help you:
    findViewById not working for an include?
    Finding an view by id?

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

Sidebar

Related Questions

I'm trying to show an extra menu item (contextual action bar) when the user
I'm trying to dynamically show/hide (or create/dispose) a SWT Menu (via JFace MenuManager) at
I am trying to create a menu bar for my application. I have created
I am trying to create a menu bar which will consist of a series
Im trying to get a custom menu to show when the menu button is
I'm trying to show a popup menu when right clicking my Notification Icon, which
I am trying to make content div show a horzontial scroll bar once the
What I am trying to accomplish with Cocos2d, is to create a horizontal menu,
I am trying to add an adapter to my activity so I can show
I'm trying to add a secondary menu bar besides the main menu bar because

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.