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. Drawable advantage over bitmap for memory in android

This question is linked with the answers in the following question:

http://stackoverflow.com/questions/4259851/error-removing-bitmapsandroid/4260269#4260269

Is there any advantage of using Drawable over Bitmap in Android in
terms of memory de-allocation ?

I was looking at Romain Guy project Shelves and he uses SoftReference
for images caches but I'm unable to search where is the code which is
de-allocating these Drawables when SoftReference automatically
reclaims the memory for Bitmap. As far as I know .recycle() has to be
explicitly called on the Bitmap for it to be de-allocated.

Thanks

-- 

2. OOT WTPaging All Sellers

Permisi...
Saya mau paging semua seller yang ada di milis ini.

Mohon kirim email ke ris...@ratjoen.com yah...

*kangtaw*

Makasih jalumnya...
@jakontil
HTC HD2 going Android http://wp.me/p13ELj-4

-- 
===============
"

3. Update (SOLD) WTS: Nexian Journey Oprekan

4. Which Intent flag should I use?

5. Database Database Database

6. WTH: Galaxy Tab ada pesan downloadi ng 鈥

7. Licensing Verification Library and Demo versions