dodanie listenera do przycisku save

This commit is contained in:
Naiki00 2021-02-15 22:01:57 +01:00
parent a63f88fa7b
commit e7f095b0fd

View File

@ -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() {