add a fab for creating new notes

This commit is contained in:
tibbi
2016-09-25 20:05:54 +02:00
parent c01c01c12f
commit e2c1573059
8 changed files with 37 additions and 11 deletions

View File

@ -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));