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:
@ -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();
|
||||
|
Reference in New Issue
Block a user