dodanie listenera do przycisku save
This commit is contained in:
parent
a63f88fa7b
commit
e7f095b0fd
@ -51,6 +51,15 @@ public class CreateNote extends AppCompatActivity {
|
|||||||
new SimpleDateFormat("EEEE, dd MM yyyy HH:mm", Locale.getDefault())
|
new SimpleDateFormat("EEEE, dd MM yyyy HH:mm", Locale.getDefault())
|
||||||
.format(new Date())
|
.format(new Date())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// nasłuchiwanie czy przycisk zapisz został klikniety
|
||||||
|
ImageView imgSave = findViewById(R.id.save);
|
||||||
|
imgSave.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
saveNote();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void saveNote() {
|
private void saveNote() {
|
||||||
|
Loading…
Reference in New Issue
Block a user