dodanie funkcji zapisu notatki
This commit is contained in:
parent
99bf648dc7
commit
4d6e51813f
@ -5,9 +5,12 @@ import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.example.notatkon.database.NoteEntity;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
@ -40,4 +43,16 @@ public class CreateNote extends AppCompatActivity {
|
||||
.format(new Date())
|
||||
);
|
||||
}
|
||||
|
||||
private void saveNote() {
|
||||
|
||||
final NoteEntity note = new NoteEntity();
|
||||
note.setTitle(noteTitle.getText().toString());
|
||||
note.setSubtitle(noteSubtitle.getText().toString());
|
||||
note.setContent(inputNote.getText().toString());
|
||||
note.setDateTime(textDataTime.getText().toString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user