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. extended AbsSpinner class work fine in Eclips+SDK but gets error message when compiled in AOSP

Hi,

I have extended AbsSpinner class and resulting application runs fine
when complied in Eclips + SDK (all version). But when I try to compile
it with Android Source Code it gives me error message to implement an
abstract method layout(int delta, boolean animate) of class
AbsSpinner. but the code is same as in first case .

Can any one , please explain what I am missing here ...

$home/project/froyo  mmm packages/apps/CardList
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2.1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
make: Entering directory `/home/project/froyo'
target Java: CardList (out/target/common/obj/APPS/
CardList_intermediates/classes)
packages/apps/CardList/src/com/cardlist/gadgetronic/CardView.java:21:
com.cardlist.gadgetronic.CardView is not abstract and does not
override abstract method layout(int,boolean) in
android.widget.AbsSpinner
public  class CardView extends AbsSpinner {
        ^
1 error
make: *** [out/target/common/obj/APPS/CardList_intermediates/classes-
full-debug.jar] Error 41
make: Leaving directory `/home/project/froyo'


----------------------------------------------------------------------------------
After if I Override the abstract method I still get following error

make: Entering directory `/home/project/froyo'
target Java: CardList (out/target/common/obj/APPS/
CardList_intermediates/classes)
packages/apps/CardList/src/com/cardlist/gadgetronic/CardView.java:21:
com.cardlist.gadgetronic.CardView is not abstract and does not
override abstract method layout(int,boolean) in
android.widget.AbsSpinner
public  class CardView extends AbsSpinner {
        ^
packages/apps/CardList/src/com/cardlist/gadgetronic/CardView.java:156:
method does not override or implement a method from a supertype
                @Override
                ^
2 errors
make: *** [out/target/common/obj/APPS/CardList_intermediates/classes-
full-debug.jar] Error 41
make: Leaving directory `/home/project/froyo'



----------------------------------------------------------------

Thanks in advance and looking forward to get your response

Regards,
argongold

-- 

2. [hawkboard.org] Setting up ADB on hawkboard

Srinidhi,

thats an optional step (to make sure omap device is listed under
ubuntu host), we can skip and continue..

I check ADB over USB/ethernet on froyo, with oamp4 blaze.., so we can
check if any problem

here u should've seen device lsited.,
can you try "stop adbd;start adbd" in host side?
also, did u see usb attached in debug mode, in android home screen notification?






-- 
Regards,
Deva
www.bittoggler.com

-- 

3. Error install aplikSi

4. cannot play video

5. openGLES different behavior on different devices

6. Hi evryone please help me in solving libcameraservice.so issue.....

7. User perception of required permissions