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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:08:54+00:00 2026-06-13T06:08:54+00:00

I have a problem and I really don’t know now how to deal with

  • 0

I have a problem and I really don’t know now how to deal with it.This is my .xml file:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/ScrollView01"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="top"
    android:fillViewport="true"
    android:overScrollMode="always"
    android:scrollbarAlwaysDrawVerticalTrack="false" >

<RelativeLayout
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/rlActivityDetails"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#000000"
    android:overScrollMode="always" >

    <ImageButton
        android:id="@+id/ibStartTrip"
        android:layout_width="95dp"
        android:layout_height="80dp"
        android:layout_marginLeft="16dp"
        android:layout_marginTop="10dp"
        android:src="@drawable/car" />

   <TextView
        android:id="@+id/tvStartTrip"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/ibStartTrip"
        android:layout_marginLeft="35dp"
        android:textColor="#FFFFFF" />

    <ImageButton
        android:id="@+id/ibStartActivity"
        android:layout_width="95dp"
        android:layout_height="80dp"
        android:layout_alignTop="@+id/ibStartTrip"
        android:layout_toRightOf="@+id/ibStartTrip"
        android:src="@drawable/tools" />

     <TextView
        android:id="@+id/tvStartActivity"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/ibStartActivity"
        android:layout_centerHorizontal="true"
        android:textColor="#FFFFFF" />

    <ImageButton
        android:id="@+id/ibEndActivity"
        android:layout_width="95dp"
        android:layout_height="80dp"
        android:layout_alignTop="@+id/ibStartActivity"
        android:layout_toRightOf="@+id/ibStartActivity"
        android:src="@drawable/finish" />

    <TextView
        android:id="@+id/tvEndActivity"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignRight="@+id/ibEndActivity"
        android:layout_below="@+id/ibEndActivity"
        android:layout_marginRight="16dp"
        android:textColor="#FFFFFF" />

    <TableLayout
        android:id="@+id/tableLayoutInfo"
        android:padding="10dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"       
        android:layout_margin="10dp"
        android:layout_below="@+id/tvStartActivity"
        android:layout_centerHorizontal="true" >

        <TableRow
            android:id="@+id/tableRow1"
            android:layout_marginTop="5dp"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" >
            <ImageView
               android:id="@+id/imageView1"
               android:layout_width="24dp"
               android:layout_height="24dp"
               android:layout_column="0"
               android:src="@drawable/number" />            
            <TextView
                android:id="@+id/tvActivityIdValue"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_column="1"
                android:layout_weight="1"
                android:layout_marginLeft="10dp"
                android:text="aaaaaaaaaaaaaaaa"
                android:textColor="#FFFFFF"
                android:textSize="16dp" />             
        </TableRow>

        <TableRow
            android:id="@+id/tableRow5"
            android:layout_marginTop="5dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
            <ImageView
                android:id="@+id/imageView2"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_column="0"
                android:src="@drawable/activity_type" />                
            <TextView
                android:id="@+id/tvActivityTypeValue"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="10dp"
                android:layout_column="1"
                android:layout_weight="1"
                android:text="aaaaaaaaaaaaaaaa"
                android:textColor="#FFFFFF"
                android:textSize="16dp" />      
         </TableRow>

        <TableRow
            android:id="@+id/tableRow2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
            <ImageView
                android:id="@+id/imageView3"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_column="0"
                android:src="@drawable/site" />                      
            <TextView
                android:id="@+id/tvSiteNameValue"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_column="1"
                android:layout_weight="1"
                android:layout_marginLeft="10dp"
                android:textColor="#FFFFFF"
                android:text="aaaaaaaaaaaaaa"
                android:textSize="16dp" />                  
        </TableRow>

        <TableRow
            android:id="@+id/tableRow3"
            android:layout_marginTop="5dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
            <ImageView
                android:id="@+id/imageView4"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_column="0"
                android:src="@drawable/brand" />                    
            <TextView
                  android:id="@+id/tvBrandValue"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_column="1"
                  android:layout_marginLeft="10dp"
                  android:gravity="fill_horizontal"
                  android:text="aaaaaaaaaaaaaaaaaa"
                  android:layout_weight="1"
                  android:textColor="#FFFFFF"
                  android:textSize="16dp" />                    
        </TableRow>

        <TableRow
            android:id="@+id/tableRow4"
            android:layout_marginTop="5dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
            <ImageView
                android:id="@+id/imageView5"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_column="0"
                android:src="@drawable/subject" />          
             <TextView
                android:id="@+id/tvSubjectValue"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:layout_column="1"
                android:textColor="#FFFFFF"
                android:layout_marginLeft="10dp"
                android:text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
                android:textSize="16dp" />                               
        </TableRow>


        <TableRow
            android:id="@+id/tableRow5"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
            <ImageView
                  android:id="@+id/imageView6"
                  android:layout_width="24dp"
                  android:layout_height="24dp"
                  android:layout_column="0"
                  android:src="@drawable/text" />           
            <TextView
                  android:id="@+id/tvTextValue"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_column="1"
                  android:layout_marginLeft="10dp"
                  android:text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasssssssssssssssssss"
                  android:textColor="#FFFFFF"
                  android:layout_weight="1"
                  android:textSize="16dp"
                  android:width="0dip" />            
        </TableRow>
         </TableLayout>

    <TableLayout
        android:id="@+id/tableLayoutAssets"
        android:padding="10dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" 
        android:layout_below="@+id/tableLayoutInfo"
        android:layout_centerHorizontal="true" >
        <TableRow
            android:id="@+id/tableRow6"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
            </TableRow>

     </TableLayout>

     <HorizontalScrollView
            android:id="@+id/horizontalScrollImageView"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_below="@+id/tableLayoutAssets"
            android:layout_marginTop="10dp">     

                 <LinearLayout
                    android:id="@+id/myGallery"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal" >                            
                 </LinearLayout>             
         </HorizontalScrollView>   

         <ProgressBar
             android:id="@+id/progressBarAttachment"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginTop="10dp"
             android:layout_centerHorizontal="true"
             android:layout_below="@+id/tableLayoutAssets"
             android:visibility="gone" 
                />

             <ImageButton 
               android:id="@+id/ibAddImage"  
               android:layout_width="wrap_content"
               android:layout_height="wrap_content" 
               android:layout_below="@+id/horizontalScrollImageView"
               android:src="@drawable/add_button"
               android:layout_marginBottom="50dp"/>


</RelativeLayout>
</ScrollView>

As you can see I have 3 image buttons.Under them a table layout with 6 rows.After that another table layout which is populated dynamically and under that a horizontal scroll view which is populated dynamically with pictures,and an image button for adding new pictures.

Now,my problem is that every time i open the activity,after the pictures are loaded in the horizontal scroll view, the last row from my first table layout is disappearing(is not disappearing completely but its width is getting very small and it only fits one letter per row).
I think that after the pictures are loaded the entire layout is redrawing itself and the first table doesn’t maintain his properties(the “weight” property also does’t apply anymore after the pictures are loaded).I could really use some help.
Any suggestions will be appreciated. Thx.

  • 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-13T06:08:55+00:00Added an answer on June 13, 2026 at 6:08 am

    There is no need for the android:width attribute on the last TextView. Remove it and the TextViews should behave.

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

Sidebar

Related Questions

I have this problem and really don't know how to solve this. I'm having
I have this problem when I deploy, I really don't know how to solve
I'm stuck on a problem I really don't know how to solve: I have
I have a problem which I don't really know how to solve. I have
So I have a problem that I don't really know how to go about.
I have a homework problem that I really don't know how to start. Here
I really have problem with this one. So I have a jar with a
Ok I have this problem that I've never had before, it's really bugging me.
I have written code below.but it will print this exception and i really don't
I have a pesky problem I really don't understand the error message I'm getting

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.