![]() ![]() Line 11 – 14: Here we created the reference of Buttons and EditText. ![]() Public class MainActivity extends AppCompatActivity Here we have 1 EditText. ![]() You can find the explanation of highlighted line below the code. So open you MainActivity.java file from left side of IDE (app -> java -> -> MainActivity.java).Now we have to add our Java code in our MainActivity.java file.Here is a final project structure for your application.After clicking Finish, it takes around around ~2 minutes to build Activity and files.Leave the activity name MainActivity as it is and leave everything as it is. ![]()
0 Comments
Leave a Reply. |