import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void setHelloJavaText2(View view) {
TextView helloJavaText = "findViewById"(R.id.textView);
}
}
hidden #10426395
Level 2
My task is to make the Button component change the text on my TextView with onClick method. How shoud I do this on below given code?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
4 November 2019, 16:58
You need to attach the codegym task you are working on
0