package com.example.test;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.Button;import android.widget.EditText;import android.widget.TextView;public class MainActivity extends Activity {private EditText edit;private TextView txt1,txt2;private Button mButton01;@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);txt1 = (TextView)findViewById(R.id.myTextView01);txt2 = (TextView)findViewById(R.id.myTextView02);edit = (EditText)findViewById(R.id.myEditText);mButton01 = (Button)findViewById(R.id.myButton);mButton01.setOnClickListener(new mClick());}class mClick implements View.OnClickListener{public void onClick(View v){String passwd;passwd=edit.getText().toString();if (passwd.equals(abc123))txt2.setText();elsetxt2.setText();}}}
[SOLVED] android package com.example.test;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.Button;import android.widget.EditText;import android.widget.TextView;public class MainActivity extends Activity { private EditText edit; private TextView txt1,txt2; private Button mButton01; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); txt1 = (TextView)findViewById(R.id.myTextView01); txt2 = (TextView)findViewById(R.id.myTextView02); edit = (EditText)findViewById(R.id.myEditText); mButton01 = (Button)findViewById(R.id.myButton); mButton01.setOnClickListener(new mClick()); } class mClick implements View.OnClickListener { public void onClick(View v) { String passwd; passwd=edit.getText().toString(); if (passwd.equals(abc123)) txt2.setText(); else txt2.setText(); } }}
$25
File Name: android_package_com.example.test;import_android.app.Activity;import_android.os.Bundle;import_android.view.View;import_android.widget.Button;import_android.widget.EditText;import_android.widget.TextView;public_class_MainActivity_extends_Activity_{____private_EditText_edit;____private_TextView_txt1,txt2;____private_Button_mButton01;____@Override____public_void_onCreate(Bundle_savedInstanceState)_____{________super.onCreate(savedInstanceState);________setContentView(R.layout.activity_main);________txt1_=_(TextView)findViewById(R.id.myTextView01);________txt2_=_(TextView)findViewById(R.id.myTextView02);________edit_=_(EditText)findViewById(R.id.myEditText);________mButton01_=_(Button)findViewById(R.id.myButton);________mButton01.setOnClickListener(new_mClick());____}____class_mClick_implements_View.OnClickListener____{________public_void_onClick(View_v)________{____________String_passwd;____________passwd=edit.getText().toString();____________if_(passwd.equals(abc123))________________txt2.setText();____________else________________txt2.setText();________}____}}.zip
File Size: 10098.24 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.