add a FAB for creating new notes

This commit is contained in:
tibbi
2016-10-01 11:14:18 +02:00
parent 87442a9515
commit 87530d9fbc
2 changed files with 17 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import android.os.Bundle;
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;
@ -17,6 +18,7 @@ import com.simplemobiletools.notes.models.Note;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class MainActivity extends SimpleActivity {
@BindView(R.id.notes_view) EditText mNotesView;
@ -77,6 +79,11 @@ public class MainActivity extends SimpleActivity {
}
}
@OnClick(R.id.notes_fab)
public void fabClicked(View view) {
}
private void saveText() {
final String newText = getCurrentNote();
final String oldText = mCurrentNote.getValue();