Help Needed With Some Layout - UI Problems

by MobDev » Mon, 08 Feb 2010 22:56:47 GMT


Sponsored Links
 Hi,
I'd like to create an UI existing out of the following elements :

<LinearLayout>
    <TableLayout>
        <TableRow>
           <ImageButton>
           <TextView>
        </TableRow>
   </TableLayout>
   <ScrollView>
      <TableLayout>
         <TableRow>
            <ImageButton>
            <ImageButton>
         </TableRow>
          <TableRow>
            <ImageButton>
            <ImageButton>
         </TableRow>
          <TableRow>
            <ImageButton>
            <ImageButton>
         </TableRow>
      </TableLayout>
    </ScrollView>

So in short :
A vertical LinearLayout, which contains first a TableLayout with just
one TableRow, and afterwards a Scrollable Table...

If I try it like above I actually will only see the first TableLayout,
the ScrollView (with it's tabel and tablerows) won't show at all...
I read that within a ScrollView there should be a LinearLayout and in
there the TableLayout...
So I did that and it works but ONLY if I completely remove the first
TableLayout, which I actually want to keep..

So is this some kind of know bug, or how could I possibly solve this ?
Is it possible for a ScrollView to co-exist with another TableLayout
(on the same XML "level") ? Or can it onky exits if it's the only
child of the base-layout ?

--



Help Needed With Some Layout - UI Problems

by TreKing » Tue, 09 Feb 2010 02:39:12 GMT


 



What's the point of having a TableLayout with just one row? Why not just use
a horizontal LinearLayout?

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

--


Sponsored Links


Help Needed With Some Layout - UI Problems

by Sekhar » Tue, 09 Feb 2010 03:12:59 GMT


 It will work, make sure you have the orientation set to vertical for
the LinearLayout.




--



Help Needed With Some Layout - UI Problems

by MobDev » Tue, 09 Feb 2010 16:38:57 GMT


 well the idea of a tablelayout with just one row is that I want to
place two items, one on the left side of the screen and one centered
within the screen...
so if you have any idea how to achieve this ? Or will a horizontal
linearlayout fix that ?
I am having a lot of trouble, I love the fact that it's all so
customizable but it's somewhat TOO customizable.. I mena if I place a
Widget onscreen afterwards I got like 40 fields with options to set...
Some are completely criptic, many have a Gravity AND a
Layout_Gravity.. what's up with that ? If I place the gravity on
horizontal_centered it won't work but if I set the property "layout
center horizontal" to true it will... So I got 3 options, who all seem
to do the same but some will work the others won't and God help us
there is no good explanation/documentation about it... Anyone up to
finding the needle in the haystack ? ;)






--



Other Threads

1. Android phone hosts McObject's new DBMS benchmark

Database benchmarks are standard fare on mainframe computers, servers and
PCs. With mobile applications managing growing volumes of complex data, is
it any wonder the DBMS performance test has now come to smartphones?

Software vendor McObject has successfully deployed its TestIndex benchmark
application on T-Mobile Android-based G1 smartphone, to measure
performance of the SQLite embedded database alongside McObject open source
Perstembedded database as the two perform typical data management
functions.

The comparison showed that gaps in database performance can be measured as
easily in this pocket-sized test bed as in more traditional benchmark
environments with rack-mounted hardware. On three of the four TestIndex
metrics, Perst performed database tasks significantly fasterore than 16
times faster, in the case of database inserts.

McObject has gathered benchmark results and analysis into a report,
available for free
download<http://www.mcobject.com/index.cfm?fuseaction=download&pageid=653&sectionid=140>from
McObject Web site. McObject also offers the TestIndex
application<http://www.mcobject.com/index.cfm?fuseaction=download&pageid=581&sectionid=133>,
with complete source code, to run in the Android emulator as well as on the
T-Mobile G1 and any future phones based on Google Android platform.

You can also read McObject's announcement
<http://www.mcobject.com/march9/2009>summarizing the benchmark test
findings.

Regards,



Ted Kenney
McObject
www.mcobject.com

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

2. Search Engine in Android

In current android release, search engine is NOT available yet. I have
investigated the possible search engine for android. One is Clucence,
the antoher is Sqlite FTS3. Clucence is the well-known and widely used
search engine with fully function supported. FTS3 can be under Sqlite
via Sqlite VirtualTables extension; however some important functions
like relevance computing are not supported yet.

Can someone know the roadmap of search engine in android?  Which open
source search engine will be used in android? What's the develop plan
for search engine in android, including content indexing service?

Thanks & Regards,
Sun Jianhong
--~--~---------~--~----~------------~-------~--~----~

3. How about buffer communications between Camera service and PV Author?

4. Getting Mobile number from phone is not working. PLEASE HELP

5. android session veriable

6. the camera can not be used

7. Help: ADT and Eclipse integration problem (I think)