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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:47:47+00:00 2026-06-01T04:47:47+00:00

I got the following problem: In my Android App I am using a table

  • 0

I got the following problem: In my Android App I am using a table to show some information. This information also contains 2 boolean values which are displayed as a checkbox. When the table is loaded the checkboxes work as they should but as soon as I change the interface orientation both checkboxes get checked even if the data values are false.

The table is defined like this:

<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+id/table_properties"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffffff"  
/>

And a single boolean row in that table:

<TableRow
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>   
    <TextView
        xmlns:android="http://schemas.android.com/apk/res/android"      
        android:id="@+id/text_jobprop_name" 
        style="@style/text_list_black"      
        android:layout_height="fill_parent"
        android:textSize="12dp"         
        android:padding="3dp"
        android:singleLine="false"  
        android:gravity="center_vertical"
        android:background="@color/table_property_name_background"  
        android:layout_weight="0.7"     
        android:layout_width="0dp"
    />  
    <LinearLayout
        android:layout_height="wrap_content"
        android:gravity="left"
        android:layout_marginRight="5dp"
        android:layout_marginLeft="10dp"
        android:layout_weight="1"   
        android:layout_width="0dp"
        android:background="@color/white">
        <CheckBox
            xmlns:android="http://schemas.android.com/apk/res/android"      
            android:id="@+id/chckbox_jobprop_value" 
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:clickable="false"   
            android:layout_marginLeft="10dp"                    
        />
    </LinearLayout>
</TableRow>

And in the onCreate method of the activity I call a function that sets all the values for the table. I know that this function is called everytime I change the interface orientation but I debugged it and the data values do not change.

Any hints, ideas, whatever?

Thanks.

  • 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-01T04:47:48+00:00Added an answer on June 1, 2026 at 4:47 am

    And in the onCreate method of the activity I call a function that sets
    all the values for the table. I know that this function is called
    everytime I change the interface orientation but I debugged it and the
    data values do not change.

    That’s true but try putting the setting of the checkboxes in the onResume method… If not: when is your super.onCreate called?

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

Sidebar

Related Questions

I've got following problem: (c#) There is some class (IRC bot), which has method,
In my android app I've got the below code creating my database. This works
I got a complicated problem involving a ListView and some Intents on Android: I
I've got some problems with a table layout I used to show communication data
I've got following problem. If I'll run my app in eclipse it works OK,
i got the following problem: I am developing an app which requires the zxing-QR-Code
I have got a small problem in an Android app I am working on
Ive got the following problem. I have a model called user which has a
I have got the following problem since the server has safe mode turned on,
I've got the following problem: I have two tables: (simplified) +--------+ +-----------+ | User

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.