• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

xml help

mathkid95

Newbie
May 29, 2010
21
0
Hi all, I really need help with implementing this layout in my xml file. I have tried this many times, but it's not working. Can you please help me, or guide me on how to do this?

I am doing a math sorta thing with a linear equation

What I want is a layout like this:

a x (plus or minus) b = c

There needs to be an edittext under the a, b, and c. Also I need a Button under that too which has the text calculate, and a TextView underneath that also to show the values of x.

So in all, the layout needs to be

a x (plus or minus) b = c
(edittext) (edittext) (edittext)

Button [Calculate!]

TextView [The solns are:]

I am not sure whether to use a RelativeLayout or LinearLayout because the edittexts have to be under the textview a, b, and c.

Thank you so much!
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones