<linearlayout xmlns:android= "Http://schemas.android.com/apk/res/android" Android:id= "@+id/warpcontent" Android:layout_width= "Fill_parent" android:layout_height= "Fill_parent" android:orientation= "Vertical" > Android:id= "@+id/scrollview" Android:layout_width= "Fill_parent" android:layout_height= "Wrap_content" > <textview
Android:id= "@+id/resulttext"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
Android:layout_gravity= "Right"
Android:gravity= "Right"
Android:padding= "8DP"
android:paddingleft= "10DP"
android:paddingright= "10DP"
android:text= "@string/number0"
Android:textsize= "40sp"/>
</horizontalscrollview > <tablelayout Android:id= "@+id/buttontable" Android:layout_width= "Fill_parent" android:layout_height= "0DP" android:layout_weight= "1" android:stretchcolumns= "*" > <tablerow android:layout_width= "Fill_parent" android:layout_height= "0DP" android:layout_weight= "1" <button android:id= "@+id/button7" android:layout_width= "Wrap_ Content " android: layout_height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number7"/> <button android:id= "@+id/button8" android:layout_width= "Wrap_ Content " android: layout_height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number8"/> <button android:id= "@+id/button9" android:layout_width= "Wrap_ Content " android: layout_height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number9"/> <button android:id= "@+id/buttonbackspace" android:layout_width= "Wrap _content " Android : layout_height= "fill_parent" android:onclick= "Onclicklistener" android:text= "@string/backspace"/> <button android:id= "@+id/buttonclear" android:layout_width= "Wrap _content " Android : layout_height= "fill_parent" android:onclick= "Onclicklistener" android:text= "@string/clear"/> </tablerow> <tablerow android:layout_width= "Fill_parent" android:layout_height= "0DP" android:layout_weight= "1" <button android:id= "@+id/button4" android:layout_width= "Wrap_ Content " android: layout_height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number4"/> <button android:id= "@+id/button5" android:layout_width= "Wrap_ Content " android: layout_height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number5"/> <button android:id= "@+id/button6" android:layout_width= "Wrap_ Content " android: layout_height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number6"/> <button android:id= "@+id/buttonmultiply" android:layout_width= "Wrap _content " Android : layout_height= "fill_parent" android:onclick= "Onclicklistener" android:text= "@string/multiply"/> <button android:id= "@+id/buttondivide" android:layout_width= "Wrap _content " Android : layout_height= "fill_parent" android:onclick= "Onclicklistener" android:text= "@string/divide"/> </tablerow> </tablelayout> <linearlayout Android:layout_width= "Fill_parent" android:layout_height= "0DP" android:layout_weight= "1" android:orientation= "Horizontal" > <tablelayout Android:layout_width= "0DP" android:layout_height= "Fill_parent" android:layout_weight= "3" android:stretchcolumns= "*" > <tablerow android:layout_width= "Fill_parent" android:layout_height= "0DP " Android:layout_ weight= "1" <button android:id= "@+id/button1" android:layout_width= "Wrap_content" Android:layout_ height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number1"/> <button android:id= "@+id/button2" android:layout_width= "Wrap_content" Android:layout_ height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number2"/> <button android:id= "@+id/button3" android:layout_width= "Wrap_content" Android:layout_ height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number3"/> </tablerow> <tablerow android:layout_width= "Fill_parent" android:layout_height= "0DP " Android:layout_ weight= "1" <button android:id= "@+id/button0" android:layout_width= "Wrap_content" Android:layout_ height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/number0"/> <button Android:id= "@+id/buttondot" Android:layout_width= "Wrap_content" android:layout_height= "Fill_parent" android:onclick= "Onclicklistener" android:text= "@string/dot"/> <button
Android:id= "@+id/buttonnegsign"
Android:layout_width= "Wrap_content"
android:layout_height= "Fill_parent"
android:onclick= "Onclicklistener"
android:text= "@string/negsign"/>
</TableRow>
</TableLayout> <button Android:id= "@+id/buttonplus" Android:layout_width= "0DP" android:layout_height= "Fill_parent" android:layout_weight= "1" android:onclick= "Onclicklistener" android:text= "@string/plus"/> <linearlayout android:layout_width= "0DP" android:layout_height= "Fill_parent" android:layout_weight= "1" android:orientation= "Vertical" <button android:id= "@+id/buttonminus" android:layout_width= "Fill _parent " android: layout_height= "0DP" android:layout_weight= "1" android:onclick= "Onclicklistener" android:text= "@string/minus"/> <button Android:id= "@+id/buttoneval" Android:layout_width= "Fill_parent" android:layout_height= "0DP" android:layout_weight= "1" android:onclick= "Onclicklistener" android:text= "@string/eval"/> </LinearLayout> </LinearLayout> </LinearLayout> |