Java
Format : setOnClickListener(new View.OnClickListener() { });
new Intent(CurrentActivity.this, NextActivity.class) : Be careful of the type, Next Activity should be class
* We usually use dp for view size, sp for text size.
str = EditText.getText().toString() : get EditText's text and put it into str with string type
Intent.putExtra("key", value);
Toast : Pop-up screen from bottom
Toast.makeText(getApplicationContext(), "String", Toast.LENGTH).show();
출처 : https://www.youtube.com/playlist?list=PLC51MBz7PMyyyR2l4gGBMFMMUfYmBkZxm
'Android' 카테고리의 다른 글
| SharedPreferences (0) | 2022.01.31 |
|---|---|
| ListView (0) | 2022.01.31 |
| Package (0) | 2022.01.30 |
| EditText&Button (0) | 2022.01.29 |
| TextView (0) | 2022.01.29 |