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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:33:39+00:00 2026-06-12T21:33:39+00:00

The First image shows a dialog created using an XML layout that seems to

  • 0

The “First” image shows a dialog created using an XML layout that seems to function OK.

If the tablet goes into “hibernate”, after the tablet is activated again the screen image then looks like the “Second” image.

Why does the layout change when entering/leaving hibernation.

The layout file is :

    <TableRow android:id="@+id/tableRow2" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:layout_marginBottom="3dp" >
        <TextView android:id="@+id/textView3" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content" android:layout_marginRight="10dp" 
            android:text="Concept" 
            android:layout_weight="1"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:background="@drawable/rectanglewhite"
            android:textColor="#000000" 
            android:gravity="right"/>
        <TextView 
            android:id="@+id/tvsctconcept" android:layout_width="wrap_content" android:layout_height="wrap_content" 
            android:layout_weight="11" 
            android:text="" 
            android:textAppearance="?android:attr/textAppearanceMedium"/>            
    </TableRow>
    <TableRow android:id="@+id/tableRow3" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:layout_marginBottom="3dp" >
        <TextView android:id="@+id/textView3" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content" 
            android:layout_marginRight="10dp" 
            android:text="PT" 
            android:layout_weight="1" 
            android:textAppearance="?android:attr/textAppearanceMedium" 
            android:background="@drawable/rectanglepurple"
            android:textColor="#000000"
            android:gravity="right"/>
        <TextView 
            android:id="@+id/tvsctpt" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content" 
            android:text="" 
            android:layout_weight="11"
            android:textAppearance="?android:attr/textAppearanceMedium"/>            
    </TableRow>
    <TableRow android:id="@+id/tableRow4" 
        android:layout_height="wrap_content"
        android:layout_marginBottom="3dp" >
        <TextView android:id="@+id/textView3" 
            android:layout_width="50dp" 
            android:layout_height="wrap_content"
            android:layout_marginRight="10dp"
            android:text="FSN" 
            android:layout_weight="1" 
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:background="@drawable/rectanglebg2" 
            android:textColor="#000000"
            android:gravity="right" />
        <TextView 
            android:id="@+id/tvsctfsn" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content" 
            android:text="" 

            android:layout_weight="11"
            android:textAppearance="?android:attr/textAppearanceMedium"/>            
    </TableRow>
</TableLayout>

Before
After

  • 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-12T21:33:40+00:00Added an answer on June 12, 2026 at 9:33 pm

    You’re using wrap_content on the views width. when the xml is first rendered, it’s not measuring against any content. After waking up there are values in those textviews, and so they are wrapped to that content. You should set the width to a specific value or match_parent.

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

Sidebar

Related Questions

I cannot figure out what is obscuring my buttons. The first image shows the
I have image Array with two images out of that first image its showing
I'm building my first Android image, i noticed that compiling a new kernel is
The code i current have is this. function update (){ latest_id = $('#image:first').data('position'); /*
I have a image cropper that first crops the image and then saves it
Using the following code, I get the size of an image: function getFileSize(img) {
I am trying to create a custom dialog box that displays an image in
i m using a custom dialog with an ImageView and 2 Button . first
First I'm going to show you an image of what I'm trying to recreate
The first image is from a Galaxy Note, the second is from a Droid

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.