views:

19

answers:

0

heyho,

i want to show an image (left cell) and text (right cell) in a tablerow. my problem ist that the text-view ist floating outside the visible screen, so i can't see the wohle text (text should break at the visible right end of screen). I#ve tried to set a maxWidth with a pixel value but that doesn't work...

maybe anyone can help me outside? or there's a better layout solution for my case, what do you think? thanks in advance for yout hints

my layout-definition:

<TableRow>
    <ImageView   
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:tint="#55ff0000"
      android:src="@drawable/bla"/> 
    <TextView  
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:text="@string/aboutblaImageText" 
        android:textSize="6pt" 
        android:textColor="#FFF"
        android:maxWidth="100px"    
        />        
</TableRow>