TextView borders when contained in a tablerow?

by Mark Freeman » Tue, 25 Jan 2011 02:51:09 GMT


Sponsored Links
 Hi everyone. I have an interesting problem.  I am using a TableLayout to 
arrange a series of labels and TextViews.  In some cases, the text within 
the TextView is bold and colored blue to represent a field which is 
clickable. Meaning that I have a listener on it to launch a new activity. 
 On fields where I have done this, the bottom border seems to disappear. 
 Has anyone seen this before? Here is an example of the problem.  Notice the 
border missing below the address and phone rows.

**<https://lh5.googleusercontent.com/_h03pCOGU1n0/TTiu4GkUUPI/AAAAAAAAAAc/ABLJYekrrPU/borders.JPG>
*
*
*Here is an example of how I have a regular field defined:*

   <TableRow>
       <TextView
           android:text="Status"
           android:textStyle="bold"
           android:gravity="right"
           android:padding="3dip" />
       <TextView android:id="@+id/status"
           android:text=""
           android:padding="3dip"
           android:layout_marginRight="2sp"
           android:background="#FFFFFF"
           android:textColor="#000000" />
   </TableRow>


*And one that is clickable:*

       <TextView
           android:text="Email"
           android:textStyle="bold"
           android:gravity="right"
           android:padding="3dip" />
       <TextView android:id="@+id/email"
           android:focusable="true"
           android:focusableInTouchMode="true"
           android:clickable="true"
           android:text=""
           android:padding="3dip"
           android:layout_marginRight="2sp"
           android:background="#FFFFFF"
           android:textColor="@color/link_blue"
           android:textStyle="bold" />
   </TableRow>

-- 



Other Threads

1. FileNotFoundException on FileOutputStream when writing on sdcard, no idea why





Are you certain this path exists on the SD card?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

2. Where can I find android's DynamicLayout example

Hi,

Can you please tell me where I can example in using android's Dynamic Layout?
I know android's TextView uses it. But I am looking for a simpler
example in showing how to use Dynamiclayout for Text Wrapping?

Thank you.

-- 

3. Working with the new ContactContracts API

4. How to check if the phone is in Standby from a service?

5. connect 2 emulators over lan

6. The account of the administrator

7. alarm being triggered, but app not launched...