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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:53:24+00:00 2026-05-26T23:53:24+00:00

I have used FrameLayout in which I have used two LinearLayouts. The second one

  • 0

I have used FrameLayout in which I have used two LinearLayouts. The second one is initially invisible but when I press a button on layout one, the second layout becomes visible and overlaps the first layout. What I want is when my second layout appears the first layout’s elements should not be clickable (or enabled).
For this I have tried setEnabled(false) and setClickable(false) but both of these are not working I am not getting what is the problem.

Code is as follows

TableLayout table; 

EditText edit;  
ScrollView scroll;

Button btn_save;
Button btn_layer_save;
Button btn_cross;

AlertDialog alert_dialog;

LinearLayout layout_above;

int primary_selected;

RadioButton radio_geo;
RadioButton radio_alumni;

String geo = "no" ;
String alumni = "no" ;

int color;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    table = (TableLayout) findViewById(R.id.tableLayout1);
    edit = (EditText) findViewById(R.id.message_select_friends_edit_search);
    search_geo_name_list = new ArrayList<String>();
    search_id_list = new ArrayList<String>();

    scroll = (ScrollView) findViewById(R.id.register_scroll_view);

    btn_cross = (Button) findViewById(R.id.register_cross);
    btn_save = (Button) findViewById(R.id.register_save);
    btn_layer_save  = (Button) findViewById(R.id.register_layer_save);

    btn_cross.setOnClickListener(this);
    btn_save.setOnClickListener(this);
    btn_layer_save.setOnClickListener(this);

    layout_above = (LinearLayout) findViewById(R.id.regsiter_layout_layer_above);

    createTableRows(name_list,id_list);



}

void createTableRows(ArrayList<String> list_name , ArrayList<String> list_id )
{
    /*-----R O W S   O F   T A B L E   C R E A T E D   D Y N A M I C A L L Y ------*/
}

@Override
public void onClick(View v) 
{
    // TODO Auto-generated method stub

    switch (v.getId())
    {
    case R.id.register_save:

          layout_above.setVisibility(LinearLayout.VISIBLE);
          btn_save.setVisibility(LinearLayout.INVISIBLE);

        scroll.setEnabled(false);
        edit.setEnabled(false);
        edit.setClickable(false);
        scroll.setClickable(false);

        break;

    case R.id.register_cross:
        Toast.makeText(this, "Cross Cancel", 1000).show();
        Intent intent = new Intent(this, TestSave.class);
        startActivity(intent);
        finish();
        break;
    case R.id.register_layer_save:
        selectedInfo();
        break;

    } 

}`
  • 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-26T23:53:24+00:00Added an answer on May 26, 2026 at 11:53 pm

    Take front layout’s size as background layout’s size and set front
    layout’s background color transparent so background layout is partially
    visible.
    And set onClickListener to front layout and in onClick method do nothing.

    This answer is not exactly as you want but it is a good alternative.

    Hope it helps

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

Sidebar

Related Questions

Have used google maps dozens of times but cannot get around this one. Doing
We have used Custom List View inside that one Text View and two Edit
I have used split function to split the string in javascript. which is as,
I have used microsoft system.security.cryptography to make md5 in c# application but I need
I have used following code to add three variables but instead of adding these
I have used ajax in the code which works perfectly and give me json
I have used initialization lists a great deal in my C++ programs but wasn't
((TextView)((FrameLayout)((LinearLayout)((ViewGroup)getWindow().getDecorView()).getChildAt(0)).getChildAt(0)).getChildAt(0)).setGravity(Gravity.CENTER); I have used this above code for aligning my title of activity in
I have used FrameLayout within a Gallery as the Gallery Item. There are 2
I have used Jetty in the past but I have little experience with jWebSocket.

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.