Search in sources :

Example 1 with RecyclerTouchListener

use of io.praveen.typenote.SQLite.RecyclerTouchListener in project Android-NotesApp by HelloPraveen.

the class BinActivity method onCreate.

@TargetApi(Build.VERSION_CODES.O)
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_bin);
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(BinActivity.this);
    premium = preferences.getInt("premium", 0);
    interstitialAd = new InterstitialAd(BinActivity.this);
    interstitialAd.setAdUnitId("ca-app-pub-8429477298745270/2004640333");
    interstitialAd.loadAd(new AdRequest.Builder().build());
    i = new Intent(BinActivity.this, MainActivity.class);
    CalligraphyConfig.initDefault(new CalligraphyConfig.Builder().setDefaultFontPath("fonts/whitney.ttf").setFontAttrId(R.attr.fontPath).build());
    Typeface font2 = Typeface.createFromAsset(getAssets(), "fonts/whitney.ttf");
    SpannableStringBuilder SS = new SpannableStringBuilder("Trash");
    SS.setSpan(new CustomTypefaceSpan("", font2), 0, SS.length(), Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
    if (getSupportActionBar() != null) {
        getSupportActionBar().setTitle(SS);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    final BinDatabaseHandler db = new BinDatabaseHandler(this);
    l = db.getAllNotes();
    final RecyclerView recyclerView = findViewById(R.id.binRecyclerView);
    final RelativeLayout rl = findViewById(R.id.binPlaceholder);
    if (l.isEmpty()) {
        recyclerView.setVisibility(View.GONE);
        rl.setVisibility(View.VISIBLE);
    }
    NoteAdapter mAdapter = new NoteAdapter(l);
    RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
    recyclerView.setLayoutManager(mLayoutManager);
    recyclerView.setItemAnimator(new DefaultItemAnimator());
    recyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
    recyclerView.setAdapter(mAdapter);
    recyclerView.addOnItemTouchListener(new RecyclerTouchListener(getApplicationContext(), new ClickListener() {

        @Override
        public void onClick(View view, final int position) {
            final Note note = l.get(position);
            final String mNote = note.getNote();
            final int mStar = note.getStar();
            final String mDate = note.getDate();
            final String mTitle = note.getTitle();
            new MaterialStyledDialog.Builder(BinActivity.this).setIcon(R.drawable.ic_settings_backup_restore).setDescription("You may choose to restore your note or delete it permanently!").setPositiveText("DELETE").onPositive(new MaterialDialog.SingleButtonCallback() {

                @Override
                public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                    BinDatabaseHandler db = new BinDatabaseHandler(BinActivity.this);
                    List<Note> l2 = db.getAllNotes();
                    final Note note2 = l2.get(position);
                    db.deleteNote(note2);
                    i.putExtra("note", true);
                    i.putExtra("delete", true);
                    if (interstitialAd.isLoaded() && premium != 1) {
                        interstitialAd.show();
                        interstitialAd.setAdListener(new AdListener() {

                            @Override
                            public void onAdClosed() {
                                startActivity(i);
                                finish();
                            }
                        });
                    } else {
                        startActivity(i);
                        finish();
                    }
                }
            }).setNegativeText("RESTORE").onNegative(new MaterialDialog.SingleButtonCallback() {

                @Override
                public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                    BinDatabaseHandler db = new BinDatabaseHandler(BinActivity.this);
                    DatabaseHandler db2 = new DatabaseHandler(BinActivity.this);
                    db2.addNote(new Note(mNote, mDate, mStar, mTitle));
                    List<Note> l2 = db.getAllNotes();
                    final Note note2 = l2.get(position);
                    db.deleteNote(note2);
                    i.putExtra("note", true);
                    i.putExtra("restore", true);
                    if (interstitialAd.isLoaded() && premium != 1) {
                        interstitialAd.show();
                        interstitialAd.setAdListener(new AdListener() {

                            @Override
                            public void onAdClosed() {
                                startActivity(i);
                                finish();
                            }
                        });
                    } else {
                        startActivity(i);
                        finish();
                    }
                }
            }).setNeutralText("DISMISS").onNeutral(new MaterialDialog.SingleButtonCallback() {

                @Override
                public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                }
            }).setHeaderColor(R.color.colorPrimary).withIconAnimation(false).withDivider(true).show();
        }
    }));
}
Also used : BinDatabaseHandler(io.praveen.typenote.SQLite.BinDatabaseHandler) SpannableStringBuilder(android.text.SpannableStringBuilder) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DefaultItemAnimator(android.support.v7.widget.DefaultItemAnimator) BinDatabaseHandler(io.praveen.typenote.SQLite.BinDatabaseHandler) DatabaseHandler(io.praveen.typenote.SQLite.DatabaseHandler) NoteAdapter(io.praveen.typenote.SQLite.NoteAdapter) InterstitialAd(com.google.android.gms.ads.InterstitialAd) List(java.util.List) ClickListener(io.praveen.typenote.SQLite.ClickListener) RecyclerTouchListener(io.praveen.typenote.SQLite.RecyclerTouchListener) MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) SharedPreferences(android.content.SharedPreferences) Typeface(android.graphics.Typeface) Intent(android.content.Intent) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) AdListener(com.google.android.gms.ads.AdListener) DialogAction(com.afollestad.materialdialogs.DialogAction) Note(io.praveen.typenote.SQLite.Note) RelativeLayout(android.widget.RelativeLayout) RecyclerView(android.support.v7.widget.RecyclerView) SpannableStringBuilder(android.text.SpannableStringBuilder) TargetApi(android.annotation.TargetApi)

Example 2 with RecyclerTouchListener

use of io.praveen.typenote.SQLite.RecyclerTouchListener in project Android-NotesApp by HelloPraveenIO.

the class AboutActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
    bp = new BillingProcessor(this, "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApcobfuZFov1KIJgKEKrzp9PP2n1EbBpV/xf9AyhWYN47QY8/rWGPuKht/7b4DmCVnpd6PrnYJqLt/rqR5c+lifLY5XuUH1VGqnkWA33TkPXm4UkGk3q/jvVIbM5xbcdPLqNkLiEoEuBlmAYNxM6K3lf5Kz+ff1HUH1ljYjDE9M38xS0TiLnQIRPm9cfehNxaKWOF81sx5Q9K3vNB1JoNuMyaMfBFQjfMRL6llsMRF42NEf6W/4/2c5Guxvg2qLo14/gGVRLS5H0ZVwqThNZVYTtLRWWNIrgFIwMnCjcbntFkEBK/B987poGN6miDI2r1m6XALRAgLEzM/IUaPnwnWwIDAQAB", this);
    sv = findViewById(R.id.about_scroll);
    CalligraphyConfig.initDefault(new CalligraphyConfig.Builder().setDefaultFontPath("fonts/whitney.ttf").setFontAttrId(R.attr.fontPath).build());
    Typeface font2 = Typeface.createFromAsset(getAssets(), "fonts/whitney.ttf");
    SpannableStringBuilder SS = new SpannableStringBuilder("About");
    SS.setSpan(new CustomTypefaceSpan("", font2), 0, SS.length(), Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
    if (getSupportActionBar() != null) {
        getSupportActionBar().setTitle(SS);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    List<String> l = new ArrayList<>();
    l.add("Project Contributors");
    l.add("Tools & Licenses Used");
    l.add("Donate and Support");
    l.add("Rate the Application");
    final RecyclerView recyclerView = findViewById(R.id.aboutRecyclerView);
    AboutAdapter mAdapter = new AboutAdapter(l);
    RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
    recyclerView.setLayoutManager(mLayoutManager);
    recyclerView.setItemAnimator(new DefaultItemAnimator());
    recyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
    recyclerView.setAdapter(mAdapter);
    recyclerView.addOnItemTouchListener(new RecyclerTouchListener(getApplicationContext(), new ClickListener() {

        @Override
        public void onClick(View view, final int position) {
            if (position == 0) {
                Intent i = new Intent(AboutActivity.this, ContributorsActivity.class);
                startActivity(i);
            } else if (position == 1) {
                Intent i = new Intent(AboutActivity.this, LicensesActivity.class);
                startActivity(i);
            } else if (position == 2) {
                bp.purchase(AboutActivity.this, "typenote_donate");
            } else if (position == 3) {
                startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=io.praveen.typenote")));
            }
        }
    }));
}
Also used : RecyclerTouchListener(io.praveen.typenote.SQLite.RecyclerTouchListener) Typeface(android.graphics.Typeface) BillingProcessor(com.anjlab.android.iab.v3.BillingProcessor) SpannableStringBuilder(android.text.SpannableStringBuilder) ArrayList(java.util.ArrayList) Intent(android.content.Intent) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) DefaultItemAnimator(android.support.v7.widget.DefaultItemAnimator) AboutAdapter(io.praveen.typenote.SQLite.AboutAdapter) RecyclerView(android.support.v7.widget.RecyclerView) SpannableStringBuilder(android.text.SpannableStringBuilder) ClickListener(io.praveen.typenote.SQLite.ClickListener)

Example 3 with RecyclerTouchListener

use of io.praveen.typenote.SQLite.RecyclerTouchListener in project Android-NotesApp by HelloPraveenIO.

the class BinActivity method onCreate.

@TargetApi(Build.VERSION_CODES.O)
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_bin);
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(BinActivity.this);
    premium = preferences.getInt("premium", 0);
    interstitialAd = new InterstitialAd(BinActivity.this);
    interstitialAd.setAdUnitId("ca-app-pub-8429477298745270/2004640333");
    interstitialAd.loadAd(new AdRequest.Builder().build());
    i = new Intent(BinActivity.this, MainActivity.class);
    CalligraphyConfig.initDefault(new CalligraphyConfig.Builder().setDefaultFontPath("fonts/whitney.ttf").setFontAttrId(R.attr.fontPath).build());
    Typeface font2 = Typeface.createFromAsset(getAssets(), "fonts/whitney.ttf");
    SpannableStringBuilder SS = new SpannableStringBuilder("Trash");
    SS.setSpan(new CustomTypefaceSpan("", font2), 0, SS.length(), Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
    if (getSupportActionBar() != null) {
        getSupportActionBar().setTitle(SS);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    final BinDatabaseHandler db = new BinDatabaseHandler(this);
    l = db.getAllNotes();
    final RecyclerView recyclerView = findViewById(R.id.binRecyclerView);
    final RelativeLayout rl = findViewById(R.id.binPlaceholder);
    if (l.isEmpty()) {
        recyclerView.setVisibility(View.GONE);
        rl.setVisibility(View.VISIBLE);
    }
    NoteAdapter mAdapter = new NoteAdapter(l);
    RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
    recyclerView.setLayoutManager(mLayoutManager);
    recyclerView.setItemAnimator(new DefaultItemAnimator());
    recyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
    recyclerView.setAdapter(mAdapter);
    recyclerView.addOnItemTouchListener(new RecyclerTouchListener(getApplicationContext(), new ClickListener() {

        @Override
        public void onClick(View view, final int position) {
            final Note note = l.get(position);
            final String mNote = note.getNote();
            final int mStar = note.getStar();
            final String mDate = note.getDate();
            final String mTitle = note.getTitle();
            new MaterialStyledDialog.Builder(BinActivity.this).setIcon(R.drawable.ic_settings_backup_restore).setDescription("You may choose to restore your note or delete it permanently!").setPositiveText("DELETE").onPositive(new MaterialDialog.SingleButtonCallback() {

                @Override
                public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                    BinDatabaseHandler db = new BinDatabaseHandler(BinActivity.this);
                    List<Note> l2 = db.getAllNotes();
                    final Note note2 = l2.get(position);
                    db.deleteNote(note2);
                    i.putExtra("note", true);
                    i.putExtra("delete", true);
                    if (interstitialAd.isLoaded() && premium != 1) {
                        interstitialAd.show();
                        interstitialAd.setAdListener(new AdListener() {

                            @Override
                            public void onAdClosed() {
                                startActivity(i);
                                finish();
                            }
                        });
                    } else {
                        startActivity(i);
                        finish();
                    }
                }
            }).setNegativeText("RESTORE").onNegative(new MaterialDialog.SingleButtonCallback() {

                @Override
                public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                    BinDatabaseHandler db = new BinDatabaseHandler(BinActivity.this);
                    DatabaseHandler db2 = new DatabaseHandler(BinActivity.this);
                    db2.addNote(new Note(mNote, mDate, mStar, mTitle));
                    List<Note> l2 = db.getAllNotes();
                    final Note note2 = l2.get(position);
                    db.deleteNote(note2);
                    i.putExtra("note", true);
                    i.putExtra("restore", true);
                    if (interstitialAd.isLoaded() && premium != 1) {
                        interstitialAd.show();
                        interstitialAd.setAdListener(new AdListener() {

                            @Override
                            public void onAdClosed() {
                                startActivity(i);
                                finish();
                            }
                        });
                    } else {
                        startActivity(i);
                        finish();
                    }
                }
            }).setNeutralText("DISMISS").onNeutral(new MaterialDialog.SingleButtonCallback() {

                @Override
                public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                }
            }).setHeaderColor(R.color.colorPrimary).withIconAnimation(false).withDivider(true).show();
        }
    }));
}
Also used : BinDatabaseHandler(io.praveen.typenote.SQLite.BinDatabaseHandler) SpannableStringBuilder(android.text.SpannableStringBuilder) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DefaultItemAnimator(android.support.v7.widget.DefaultItemAnimator) BinDatabaseHandler(io.praveen.typenote.SQLite.BinDatabaseHandler) DatabaseHandler(io.praveen.typenote.SQLite.DatabaseHandler) NoteAdapter(io.praveen.typenote.SQLite.NoteAdapter) InterstitialAd(com.google.android.gms.ads.InterstitialAd) List(java.util.List) ClickListener(io.praveen.typenote.SQLite.ClickListener) RecyclerTouchListener(io.praveen.typenote.SQLite.RecyclerTouchListener) MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) SharedPreferences(android.content.SharedPreferences) Typeface(android.graphics.Typeface) Intent(android.content.Intent) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) AdListener(com.google.android.gms.ads.AdListener) DialogAction(com.afollestad.materialdialogs.DialogAction) Note(io.praveen.typenote.SQLite.Note) RelativeLayout(android.widget.RelativeLayout) RecyclerView(android.support.v7.widget.RecyclerView) SpannableStringBuilder(android.text.SpannableStringBuilder) TargetApi(android.annotation.TargetApi)

Example 4 with RecyclerTouchListener

use of io.praveen.typenote.SQLite.RecyclerTouchListener in project Android-NotesApp by HelloPraveen.

the class AboutActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
    bp = new BillingProcessor(this, "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApcobfuZFov1KIJgKEKrzp9PP2n1EbBpV/xf9AyhWYN47QY8/rWGPuKht/7b4DmCVnpd6PrnYJqLt/rqR5c+lifLY5XuUH1VGqnkWA33TkPXm4UkGk3q/jvVIbM5xbcdPLqNkLiEoEuBlmAYNxM6K3lf5Kz+ff1HUH1ljYjDE9M38xS0TiLnQIRPm9cfehNxaKWOF81sx5Q9K3vNB1JoNuMyaMfBFQjfMRL6llsMRF42NEf6W/4/2c5Guxvg2qLo14/gGVRLS5H0ZVwqThNZVYTtLRWWNIrgFIwMnCjcbntFkEBK/B987poGN6miDI2r1m6XALRAgLEzM/IUaPnwnWwIDAQAB", this);
    sv = findViewById(R.id.about_scroll);
    CalligraphyConfig.initDefault(new CalligraphyConfig.Builder().setDefaultFontPath("fonts/whitney.ttf").setFontAttrId(R.attr.fontPath).build());
    Typeface font2 = Typeface.createFromAsset(getAssets(), "fonts/whitney.ttf");
    SpannableStringBuilder SS = new SpannableStringBuilder("About");
    SS.setSpan(new CustomTypefaceSpan("", font2), 0, SS.length(), Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
    if (getSupportActionBar() != null) {
        getSupportActionBar().setTitle(SS);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
    List<String> l = new ArrayList<>();
    l.add("Project Contributors");
    l.add("Tools & Licenses Used");
    l.add("Donate and Support");
    l.add("Rate the Application");
    final RecyclerView recyclerView = findViewById(R.id.aboutRecyclerView);
    AboutAdapter mAdapter = new AboutAdapter(l);
    RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
    recyclerView.setLayoutManager(mLayoutManager);
    recyclerView.setItemAnimator(new DefaultItemAnimator());
    recyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
    recyclerView.setAdapter(mAdapter);
    recyclerView.addOnItemTouchListener(new RecyclerTouchListener(getApplicationContext(), new ClickListener() {

        @Override
        public void onClick(View view, final int position) {
            if (position == 0) {
                Intent i = new Intent(AboutActivity.this, ContributorsActivity.class);
                startActivity(i);
            } else if (position == 1) {
                Intent i = new Intent(AboutActivity.this, LicensesActivity.class);
                startActivity(i);
            } else if (position == 2) {
                bp.purchase(AboutActivity.this, "typenote_donate");
            } else if (position == 3) {
                startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=io.praveen.typenote")));
            }
        }
    }));
}
Also used : RecyclerTouchListener(io.praveen.typenote.SQLite.RecyclerTouchListener) Typeface(android.graphics.Typeface) BillingProcessor(com.anjlab.android.iab.v3.BillingProcessor) SpannableStringBuilder(android.text.SpannableStringBuilder) ArrayList(java.util.ArrayList) Intent(android.content.Intent) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) DefaultItemAnimator(android.support.v7.widget.DefaultItemAnimator) AboutAdapter(io.praveen.typenote.SQLite.AboutAdapter) RecyclerView(android.support.v7.widget.RecyclerView) SpannableStringBuilder(android.text.SpannableStringBuilder) ClickListener(io.praveen.typenote.SQLite.ClickListener)

Example 5 with RecyclerTouchListener

use of io.praveen.typenote.SQLite.RecyclerTouchListener in project Android-NotesApp by HelloPraveen.

the class MainActivity method populateData.

public void populateData() {
    final DatabaseHandler db = new DatabaseHandler(this);
    l = db.getAllNotes();
    final RecyclerView recyclerView = findViewById(R.id.recyclerView);
    final RelativeLayout rl = findViewById(R.id.placeholder);
    if (l.isEmpty()) {
        recyclerView.setVisibility(View.GONE);
        rl.setVisibility(View.VISIBLE);
    }
    mAdapter = new NoteAdapter(l);
    RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
    recyclerView.setLayoutManager(mLayoutManager);
    recyclerView.setItemAnimator(new DefaultItemAnimator());
    recyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
    recyclerView.setAdapter(mAdapter);
    recyclerView.addOnItemTouchListener(new RecyclerTouchListener(getApplicationContext(), new ClickListener() {

        @Override
        public void onClick(View view, final int position) {
            if (ser == 0) {
                int pos = position;
                if (imp == 1)
                    pos = mAdapter.impPos(position);
                final Note note = l.get(pos);
                ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
                ClipData clip = ClipData.newPlainText("text", note.getNote());
                if (clipboard != null)
                    clipboard.setPrimaryClip(clip);
                Intent intent = new Intent(MainActivity.this, ViewActivity.class);
                intent.putExtra("note", note.getNote());
                intent.putExtra("id", note.getID());
                intent.putExtra("imp", note.getStar());
                intent.putExtra("date", note.getDate());
                intent.putExtra("title", note.getTitle());
                intent.putExtra("pos", pos);
                startActivity(intent);
                finish();
            }
        }
    }));
}
Also used : RecyclerTouchListener(io.praveen.typenote.SQLite.RecyclerTouchListener) ClipboardManager(android.content.ClipboardManager) PendingIntent(android.app.PendingIntent) Intent(android.content.Intent) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) NavigationView(android.support.design.widget.NavigationView) SearchView(android.support.v7.widget.SearchView) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) DefaultItemAnimator(android.support.v7.widget.DefaultItemAnimator) SuppressLint(android.annotation.SuppressLint) DatabaseHandler(io.praveen.typenote.SQLite.DatabaseHandler) Note(io.praveen.typenote.SQLite.Note) RelativeLayout(android.widget.RelativeLayout) NoteAdapter(io.praveen.typenote.SQLite.NoteAdapter) RecyclerView(android.support.v7.widget.RecyclerView) ClipData(android.content.ClipData) ClickListener(io.praveen.typenote.SQLite.ClickListener)

Aggregations

Intent (android.content.Intent)6 DefaultItemAnimator (android.support.v7.widget.DefaultItemAnimator)6 DividerItemDecoration (android.support.v7.widget.DividerItemDecoration)6 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)6 RecyclerView (android.support.v7.widget.RecyclerView)6 View (android.view.View)6 ClickListener (io.praveen.typenote.SQLite.ClickListener)6 RecyclerTouchListener (io.praveen.typenote.SQLite.RecyclerTouchListener)6 Typeface (android.graphics.Typeface)4 SpannableStringBuilder (android.text.SpannableStringBuilder)4 RelativeLayout (android.widget.RelativeLayout)4 DatabaseHandler (io.praveen.typenote.SQLite.DatabaseHandler)4 Note (io.praveen.typenote.SQLite.Note)4 NoteAdapter (io.praveen.typenote.SQLite.NoteAdapter)4 SuppressLint (android.annotation.SuppressLint)2 TargetApi (android.annotation.TargetApi)2 PendingIntent (android.app.PendingIntent)2 ClipData (android.content.ClipData)2 ClipboardManager (android.content.ClipboardManager)2 SharedPreferences (android.content.SharedPreferences)2