This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1073
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: 4167
    
  21

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


Steve
sam liyanage
Ranch Hand

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

Joined: Jan 28, 2003
Posts: 4167
    
  21

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

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

Joined: Jan 28, 2003
Posts: 4167
    
  21

Can you answer my question?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1073
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: 10172
    
    8

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 liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1073
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to add two buttons below
 
Similar Threads
odd framelayout/surfaceview problem
Need Help on the scrolling Bar in Android?
android table Layout columns different color
Have ways for remain previous layout in all pages?
how to call button inside a slidingDrawer