• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add two buttons below

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that you make the scroll view take up the entire screen. Don't do that.
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to avoid scrollview take entire view?
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Steve.Still i have issue.can you please give me a example?.
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you answer my question?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic