Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Ma nActivty . java add this code findViewByld ( R . id . Subtract ) . setOnClickListener ( new android.view.View.OnClickListener ( ) { @

In ManActivty.java add this code
findViewByld(R.id.Subtract).setOnClickListener(new android.view.View.OnClickListener(){
@ Override public void onClick(android.view.View view){ android. widget.EditText InputWidget = findViewByld(
R.id. NumberO1 number01= Integer.parselnt(InputWidget.getText().toString());
InputWidget = findViewByld(R.id.NumberO2).
number02= Integer.parselnt InputWidget.getText().toString());
result = number01-number0:
android. widget.EditText OutputWidget = findViewByld(
R.id. Result);
OutputWidget.setText(Integer.toString(result));
}});
Drag from top and touch the back button to
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

To what microcultural groups do you belong?

Answered: 1 week ago

Question

help asp

Answered: 1 week ago