Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Android 101 (Class 3)

UOZ
by

Rasti Mohammed Amin

on 19 November 2017

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Android 101 (Class 3)

Android: Class #3
1. Review what you learn!
2. Complete calculator program implementation and show the result using Toast and Alerts


Homework 3
Rasti J Mohammed Amin
Nov 19, 2017
Today:
1.
Overview what we learn last lecture.
2.
Layouts
.
3.
Height and Width
.
5.
Event Listeners
Last Lecture!!
findViewById()
integer.parseInt()
Listener
4.
Toast
Toast
EditText
TextView
.setText("")
.getText()
.toString()
Layouts
horizontal or vertical
Height and Width
Common Layouts
Toast.makeText(MainActivity.this,"Text here",Length).show();
Item.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {

}
});
Alert
AlertDialog.Builder a_builder = new AlertDialog.Builder(MainActivity.this);
a_builder.setMessage("Are you sure !!!")
.setPositiveButton("Yes",new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
finish();
}
})
.setNegativeButton("No",new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
}) ;
AlertDialog alert = a_builder.create();
alert.setTitle("Alert !!!");
alert.show();
6.
Alert
Full transcript