TableLayout borders

by Robertico » Mon, 23 Feb 2009 05:20:24 GMT


Sponsored Links
 Hi,

Is there a way to set something like border="1" in a TableLayout?

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


    <TableRow>
        <TextView
            android:text=""
            android border="1" <<< ???
            android:background="#00000000"
            android:padding="15dip" />

Regards,
Robertico

--~--~---------~--~----~------------~-------~--~----~



TableLayout borders

by neuzou » Sat, 14 Mar 2009 02:11:39 GMT


 I have the same question, I want to display the border on TableLayout,
but Android does't give any method to do this, anybody can help me?
Thanks.

Regards
Dwyane




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Connect to other device through WIFI (ZeroConf/Bonjour)

Hi all,

I want to implement an android application which can detect other
devices under current local wifi network, like pc, mobile phones,
ipad...etc.

This means this application is capable to register itself on local
area network, and also detect other devices.
This is just what Zero Configuration networking(Apple's Bonjour) does.

Now, I prepare to start to implement, but I am kinda confused about
which lib I should use,
I don't really know the difference or characteristics of the two:

1. JmDNS - a java implementation of multicast-DNS which can be used
for service registration and discovery
2. DNS-SD - it's a technology - DNS service discovery. it provides C
and Java APIs for windows, linux platform.

Both are capable to do service registration and discovery, and also
implemented in JAVA.
I don't really know which one I should use to develop android
application.

Any information is appreciated!!.  Thanks a lot!



-- 

2. ListView as part of a Activity

Hi am trying to add a List view as below. But the list never appears.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
<EditText
        android:id="@+id/entry"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@android:drawable/editbox_background"
/>
<ListView
                android:id="@+id/list"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/entry"
        android:entries="@array/strarr"
        android:dividerHeight="14.5sp"
                />
<Button
        android:id="@+id/ok"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/list"
        android:layout_alignParentRight="true"
        android:layout_marginLeft="10dip"
        android:text="Add to List" />

</LinearLayout>

What am I doing wrong?

-- 

3. Google Location and Weather API

4. loadDataWithBaseURL stopped working on Nexus 1 2.2

5. Message search

6. zoom picker

7. Android device drivers