app/src/main/java/simplenotepad/MainActivity.java
/**
     * when no notes show msg in main_layout
     */
when no notes show msg in main_layout
when no notes show msg in main_layout
private void showEmptyView() {
        if (notes.size() == 0) {
            this.recyclerView.setVisibility(View.GONE);
            findViewById(R.id.empty_notes_view).setVisibility(View.VISIBLE);
        } else {
            this.recyclerView.setVisibility(View.VISIBLE);
            findViewById(R.id.empty_notes_view).setVisibility(View.GONE);
        }
    }
private void showEmptyView ( ) { if ( notes . size ( ) == 0 ) { this . recyclerView . setVisibility ( View . GONE ) ; findViewById ( R . id . empty_notes_view ) . setVisibility ( View . VISIBLE ) ; } else { this . recyclerView . setVisibility ( View . VISIBLE ) ; findViewById ( R . id . empty_notes_view ) . setVisibility ( View . GONE ) ; } }
when no notes show msg in main_layout
when no notes show msg in main_layout