mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
add a fab for creating new notes
This commit is contained in:
@ -10,6 +10,7 @@ import android.support.v7.app.AlertDialog;
|
||||
import android.util.TypedValue;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.EditText;
|
||||
|
||||
@ -19,9 +20,11 @@ import com.simplemobiletools.notes.Utils;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
import butterknife.OnClick;
|
||||
|
||||
public class MainActivity extends SimpleActivity {
|
||||
@BindView(R.id.notes_view) EditText mNotesView;
|
||||
@BindView(R.id.notes_view)
|
||||
EditText mNotesView;
|
||||
|
||||
private SharedPreferences mPrefs;
|
||||
|
||||
@ -95,6 +98,11 @@ public class MainActivity extends SimpleActivity {
|
||||
}
|
||||
}
|
||||
|
||||
@OnClick(R.id.notes_fab)
|
||||
public void newNoteClicked(View view) {
|
||||
|
||||
}
|
||||
|
||||
private void displayAutosavePrompt() {
|
||||
final AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);
|
||||
alertDialog.setTitle(getString(R.string.unsaved_changes));
|
||||
|
Reference in New Issue
Block a user