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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:56:42+00:00 2026-06-13T07:56:42+00:00

Scenario: I have a main layout running. Upon clicking on the help button a

  • 0

Scenario:
I have a main layout running.
Upon clicking on the “help” button a dialog appears
I dismiss the help dialog
The main screen has 2 buttons which are now broken (their graphics are wrong)

I am attaching the screenshot of the screen with the buttons which are now not complete (the bad buttons are “search contacts” and “call”).

The question is obviously, how can I dismiss the dialog without affecting the graphics of the main screen?
Screen with bad buttons after dialog disappears

The main screen layout

<LinearLayout 
    xmlns:android           = "http://schemas.android.com/apk/res/android"
    android:layout_width    = "fill_parent"
    android:layout_height   = "fill_parent"
    android:paddingLeft     = "@dimen/general_logo_padding"
    android:paddingRight    = "@dimen/general_logo_padding"
    android:orientation     = "vertical"
    android:background      = "@drawable/login_background" >


        <!-- Logo -->
        <ImageView    
            android:id                  = "@+id/imgLogo"
            android:src                 = "@drawable/emobile_logo10"
            android:contentDescription  = "@string/login_imgdescriptor_logo"
            android:layout_width        = "fill_parent"
            android:layout_height       = "wrap_content"
            android:layout_marginTop    = "@dimen/callback_logo_margin"
            android:scaleType           = "fitStart" 
            android:layout_weight       = "0.1"/>


        <!-- Callback Fields -->
        <!-- Your Number -->
        <LinearLayout 
            xmlns:android               = "http://schemas.android.com/apk/res/android"
            android:layout_width        = "fill_parent"
            android:layout_height       = "wrap_content"
            android:orientation         = "horizontal" 
            android:layout_marginTop    = "@dimen/callback_yournumber_margin" 
            android:layout_weight       = "0.2">

            <TextView
                android:id              = "@+id/tvCBYournumber"
                android:layout_width    = "fill_parent"
                android:layout_height   = "wrap_content"
                android:text            = "@string/callback_btn_yournumber"
                android:textAppearance  = "?android:attr/textAppearanceMedium"
                android:textSize        = "@dimen/login_fields_text_size" 
                android:textColor       = "#F26A05" 
                android:layout_weight   = "6"/>

            <EditText 
                android:id                  = "@+id/etCBYourNumber"
                android:layout_height       = "wrap_content"
                android:layout_width        = "fill_parent"
                android:inputType           = "number"
                android:ellipsize           = "end"
                android:singleLine          = "true"
                android:minHeight           = "@dimen/edittext_min_height"
                android:background          = "@drawable/edittext_round_corners"        
                android:gravity             = "center"
                android:textAppearance      = "?android:attr/textAppearanceMedium"
                android:textSize            = "@dimen/login_fields_text_size" 
                android:layout_weight       = "4" />
        </LinearLayout>

        <!-- Connect To -->
        <LinearLayout 
            xmlns:android               = "http://schemas.android.com/apk/res/android"
            android:layout_width        = "fill_parent"
            android:layout_height       = "wrap_content"
            android:layout_marginTop    = "@dimen/callback_connectto_margin"
            android:orientation         = "horizontal" 
            android:layout_weight       = "0.2">

            <TextView
                android:id              = "@+id/tvCBConnectto"
                android:layout_width    = "fill_parent"
                android:layout_height   = "wrap_content"
                android:text            = "@string/callback_btn_connectto"
                android:textAppearance  = "?android:attr/textAppearanceMedium"
                android:textSize        = "@dimen/login_fields_text_size" 
                android:textColor       = "#F26A05" 
                android:layout_weight   = "6"/>

            <EditText 
                android:id                  = "@+id/etCBConnectTo"
                android:layout_height       = "wrap_content"
                android:layout_width        = "fill_parent"
                android:inputType           = "number"
                android:ellipsize           = "end"
                android:singleLine          = "true"
                android:minHeight           = "@dimen/edittext_min_height"
                android:background          = "@drawable/edittext_round_corners"        
                android:gravity             = "center"
                android:textAppearance      = "?android:attr/textAppearanceMedium"
                android:textSize            = "@dimen/login_fields_text_size" 
                android:layout_weight       = "4"/>
        </LinearLayout>

        <!-- Line of Buttons -->
        <LinearLayout 
            xmlns:android               = "http://schemas.android.com/apk/res/android"
            android:layout_width        = "fill_parent"
            android:layout_height       = "wrap_content"
            android:orientation         = "horizontal" 
            android:layout_marginTop    = "@dimen/callback_button_margin" 
            android:minHeight           = "@dimen/callback_button_height"
            android:layout_weight       = "0.1">

            <Button
                android:id                  = "@+id/btnCBSearchContacts"
                android:layout_width        = "fill_parent"
                android:layout_height       = "fill_parent"
                android:text                = "@string/callback_btn_searchcontacts" 
                android:textSize            = "@dimen/login_fields_text_size" 
                android:drawableLeft        = "@android:drawable/ic_menu_my_calendar"
                android:layout_weight       = "1" />

            <Button
                android:id                  = "@+id/btnCBCall"
                android:layout_width        = "fill_parent"
                android:layout_height       = "fill_parent"
                android:text                = "@string/callback_btn_call" 
                android:layout_marginLeft   = "@dimen/callback_button_margin_betweenbuttons"
                android:textSize            = "@dimen/login_fields_text_size" 
                android:drawableLeft        = "@android:drawable/ic_menu_call"
                android:layout_weight       = "1" />

        </LinearLayout>                        

        <RelativeLayout 
            xmlns:android               = "http://schemas.android.com/apk/res/android"
            android:layout_width        = "fill_parent"
            android:layout_height       = "fill_parent" 
            android:layout_weight       = "3">

            <Button
                android:id                      = "@+id/btnCBHelp"
                android:layout_width            = "wrap_content"
                android:layout_height           = "wrap_content"
                android:padding                 = "@dimen/callback_button_help_padding"
                android:text                    = "@string/callback_btn_help" 
                android:layout_centerInParent   = "true"
                android:textSize                = "@dimen/login_fields_text_size" 
                android:drawableLeft            = "@android:drawable/ic_menu_help" />
        </RelativeLayout>

</LinearLayout>
  • 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-13T07:56:43+00:00Added an answer on June 13, 2026 at 7:56 am

    Well, I found the problem.

    It seems that the problem is with the library I use to create the buttons with, it is in very early Beta stages and for some reason causes this problem.

    I am using Pixate library

    I have now tweaked the code to use LayoutInflater (Parth Doshi’s idea – thanks), and instead of extending Dialog I am now using an Alert dialog (Md Abdul Gafur), using these two methods decreases the problem but doesn’t solve it.

    Thank you all,
    Chaiavi.

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

Sidebar

Related Questions

Our scenario: We have a main database that stores company-wide information. We have several
Scenario I have a Windows Forms Application. Inside the main form there is a
Scenario I have a C# Win Forms App, where the Main Form contains a
I have a scenario where i need to copy the array of Objects(Main array)
I have the next scenario: I define an int[][] variable in my main class.
Scenario: I have a main Latex file (main.tex) in which I include a subfile
Scenario I have a C# WinForms application with a main form. I also have
The scenario is the following: I have an activity RunTrainingWorkoutsView that uses XML layout
I am facing a scenario, where my main.xml has its main hierarchy written in
Hypothetical scenario: I have a daemon thread responsible for some I/O, the main thread

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.