File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Button tag is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Button tag is not working " Watch "Button tag is not working " New topic
Author

Button tag is not working

shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 194



only text box is display on the screen.. Button is not displaying??
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 3932
    
  17

I forget, is LinearLayout vertical or horizontal by default? If it is horizontal, then by setting theEditText's width to fill_parent you would be leaving no room for the button.


Steve
shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 194

okeys

how can i set linear layout to vertical?

thanks steve..
shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 194

Yeah steve you are correct..
Now its working..

Thanks Steve..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
I'm sure if you search for "android linearlayout tutorial" or some such phrase you will find the answer very quickly. Or just read the javadocs of the LinearLayout class.


Ping & DNS - updated with new look and Ping home screen widget
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Button tag is not working
 
Similar Threads
regarding layout
Have ways for remain previous layout in all pages?
Layouts, bottom position
when i change android:orientation to horizontal it shows blank screen
how to add a scrollbar to a view