Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class JavaTest extends AppCompatActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_java_test);
- }
- public void changeInfo(View view){
- setContentView(R.layout.activity_java_test);
- TextView t = (TextView)findViewById(R.id.textSpace1);
- if (t.getText()==getResources().getString(R.string.lorem_ipsum)){
- t.setText("[Email Here]");
- }
- else{
- t.setText(getResources().getString(R.string.lorem_ipsum));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement