aspose file tools*
The moose likes Android and the fly likes how to add two buttons below Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to add two buttons below" Watch "how to add two buttons below" New topic
Author

how to add two buttons below

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
this is my scroll view xml file.But it doesn't show the buttons in below.I need to have two buttons as a footer.How to add them as a footer?

Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

The problem is that you make the scroll view take up the entire screen. Don't do that.


Steve
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
how to avoid scrollview take entire view?
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

How do you control the size of things in a LinearLayout? http://developer.android.com/guide/topics/ui/layout/linear.html
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
Hi Steve.Still i have issue.can you please give me a example?.
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Can you answer my question?
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
using android:layout_width="fill_parent" for child element.


anyway i found solution.i don't know it's the best way.anyway its working fine.if there is a better way to do this please let me know Steve.Thanks for helping me.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

A few suggestions.
I don't know what exactly you are trying to do here, but
but if you have to define 97 elements, then you might want to consider using a ListView and populating it dynamically.
You might also want to consider using tools like Droid Draw to get your basic layout in place.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
actually i am trying to show some schedule for week.so i have seven fixed columns .But rows may vary. anyway maximum 15 row s.So i have names Text views as TextView11 for first column firs row. So TextView97 means 7th column 9th row Text View.
 
Don't get me started about those stupid light bulbs.
 
subject: how to add two buttons below