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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:39:24+00:00 2026-06-08T12:39:24+00:00

(i have put the code at the end of my post) i would like

  • 0

(i have put the code at the end of my post)

i would like to make a hidden menu.

I don’t know if i take the good way.

I have some button visible, some invisible button and at the an another visible button.
One of the button in first layout have to set visible the hidden buttons.

I would like to have the last button just after the first bunch.
But like i have put invisible the Layout so i have an empty space.

I would like when i pressed the button for set visible that the last button go down.

I hope you will understand want i want to do and what i have done.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:orientation="vertical"
   android:background="@drawable/fond"
   >


    <ImageView
        android:id="@+id/imageView1"
        android:contentDescription="@string/desc"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/top" 
        android:layout_gravity="top" 
        android:adjustViewBounds="true" 
    />

    <LinearLayout 
        android:layout_below="@+id/imageView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:background="@drawable/fond2"
        >
        <LinearLayout 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginLeft="30dp" 
            android:layout_marginRight="30dp"

            >
            <LinearLayout 
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:weightSum="3"
                >
                <Button 
                    android:id="@+id/button_garçon"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:text="@string/Bg"
                    android:background="@drawable/button_purple" 
                    android:layout_weight="1"
                    android:textColor="#ffffff"
                    android:onClick="actionGarçon"
                />
                <Button 
                    android:id="@+id/button_mixte"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:text="@string/Bm"
                    android:background="@drawable/button_purple" 
                    android:layout_weight="1"
                    android:textColor="#ffffff"
                    android:onClick="actionMixte"
                />
                <Button
                    android:id="@+id/button_fille"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:text="@string/Bf"
                    android:background="@drawable/button_purple" 
                    android:layout_weight="1"
                    android:textColor="#ffffff"
                    android:onClick="actionFille"           
                />
            </LinearLayout>
            <LinearLayout 
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:weightSum="1"
                >

                <Button
                    android:id="@+id/button_param"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/Bp"
                    android:background="@drawable/button_green" 
                    android:layout_weight="1"
                    android:textColor="#ffffff"
                    android:onClick="actionParametre"           
                />
            </LinearLayout>
            <!-- invisible -->
            <LinearLayout 
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:visibility="invisible"
                >
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/Tq" 
                    android:textColor="#000000"
                />
                <EditText android:id="@+id/edit_message"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/Emc"
                    android:singleLine="true"
                />
                 <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/Tpre"
                    android:textColor="#000000"
                />
                <EditText android:id="@+id/edit_message"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/Epre"
                    android:singleLine="true"
                />
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/Tsuf" 
                    android:textColor="#000000"
                />
                <EditText 
                    android:id="@+id/edit_message"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/Esuf"
                    android:singleLine="true" 
                />

                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/Tl"
                    android:textColor="#000000"
                />
                <LinearLayout 
                    xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal" 
                    android:weightSum="100"
                    >

                    <Button android:id="@+id/button_court"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/Blc" 
                            android:layout_weight="25"
                            android:background="@drawable/button_purple"
                            android:textColor="#ffffff" 
                            android:onClick="actionCourt"
                    />
                    <Button android:id="@+id/button_moyen"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/Blm" 
                            android:layout_weight="25"
                            android:background="@drawable/button_purple"
                            android:textColor="#ffffff" 
                            android:onClick="actionMoyen"
                    />
                    <Button android:id="@+id/button_long"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/Bll"
                            android:layout_weight="25" 
                            android:background="@drawable/button_purple"
                            android:textColor="#ffffff"
                            android:onClick="actionLong" 
                    />
                    <Button android:id="@+id/button_tous"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/Blt"
                            android:layout_weight="25" 
                            android:background="@drawable/button_purple"
                            android:textColor="#ffffff"
                            android:onClick="actionTous" 
                            android:state_pressed="true"
                    />
                </LinearLayout>

                <Button android:id="@+id/button_orig"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:text="@string/Bo"
                        android:background="@drawable/button_purple" 
                        android:textColor="#ffffff"
                        android:onClick="actionOrigine"
                />
            </LinearLayout>
            <!-- /invisible -->
            <Button android:id="@+id/button_recher"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="@string/Br"
                android:background="@drawable/button_green"
                android:textColor="#ffffff"
                android:onClick="actionRecherche"
            />
        </LinearLayout>
    </LinearLayout>      
</LinearLayout>

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-08T12:39:25+00:00Added an answer on June 8, 2026 at 12:39 pm

    If I understand correctly you want to use android:visibility="gone" so that what ever you set to "gone" does not occupy any space on the layout.

    Basically, instead of android:visibility="invisible" you should use android:visibility="gone"

    See if that works.

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

Sidebar

Related Questions

Do I have to put code from .cpp in a namespace from corresponding .h
the code in my app.coffee it uses coffee script i have put body parser
I'm extracting Android Grass live wallpaper code from the Android source. I have put
I have extended a server control (not a user control) and put the code
[Rails] Where to put this code? I have a user1 and when another registered
I have some code that I want to put into an svn repository for
I have the following code which should put programs startable in Bash. if [
I have this code for update: public Boolean update() { try { data.put(ContactsContract.Groups.SHOULD_SYNC, true);
I have this code that I've edited: http://pastebin.com/vrqHek6S I've put in comments where I
I have the following code which works when i put it in any blank

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.