Guys I watched a YouTube tutorial about an android that has 200 videos, but didn't explain what Bundle, View, and Context are.
1st question , what is a bundle?
Second question What is a bunch inside the onCreate method , where does this come from ? what's inside this package?
3rd question What is context? I found that Activity expands the context, is it right to say that Context is the activity itself? or context of this activity?
Fourth Question What is View? I found that TextView extends View and other widgets like Button EditText extend TextView, which means that they also extend the view. I also found that the syntax of Button, EditText, and other widgets is ...
TextView(Context);
Button(Context);
EditText(Context);
so my assumption is that "Context = Activity = Screen" and that "View = Button = TextView = EditText"
therefore in this example
public Example extends Activity{
onCreate(){
Button buttonObj = new Button(this):
}
}
Button buttonObj = new Button(this);
" Example, Activity. " , View , , "?
, Button? , Activity.
5- , ?
add.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
}
});
View.onclickListener()?? , , onClickListener??
?