All Projects → xinchanghao → notepad-master

xinchanghao / notepad-master

Licence: other
notepad 记事本 - 大三下安卓课程设计

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to notepad-master

Notepads
A modern, lightweight text editor with a minimalist design.
Stars: ✭ 5,596 (+21423.08%)
Mutual labels:  notepad
Bloop
A light weight scratch pad inspired and derived from https://github.com/IvanMathy/Boop.
Stars: ✭ 54 (+107.69%)
Mutual labels:  notepad
Notepad
Windows notepad in web with additional features! Made with typescript and react.
Stars: ✭ 24 (-7.69%)
Mutual labels:  notepad
Notepad Plus Plus
Notepad++ official repository
Stars: ✭ 14,783 (+56757.69%)
Mutual labels:  notepad
txt
📝 Simple text editor/notepad with cloud sync.
Stars: ✭ 35 (+34.62%)
Mutual labels:  notepad
Pad
📓 An online, collaborative, real-time notepad built with WebSockets and NodeJS
Stars: ✭ 33 (+26.92%)
Mutual labels:  notepad
Rocket-Notes
The World's Fastest Note Taking App. Fast. Simple. Create a note in one tap! Create image and text notes directly from your home screen!
Stars: ✭ 20 (-23.08%)
Mutual labels:  notepad
NotepadPlusPlusPluginPack.Net
.Net package to install into visual studio to make plugins for Notepad++
Stars: ✭ 123 (+373.08%)
Mutual labels:  notepad
notepad-plus-plus
Unofficial snap repo for notepad-plus-plus snap
Stars: ✭ 51 (+96.15%)
Mutual labels:  notepad
pro-writer
Minimal yet Pro Writer 🚀
Stars: ✭ 22 (-15.38%)
Mutual labels:  notepad
Quick-Pad
Quick Pad is a modern notepad app featuring fluent design
Stars: ✭ 183 (+603.85%)
Mutual labels:  notepad
NotepadNext
A cross-platform, reimplementation of Notepad++
Stars: ✭ 5,715 (+21880.77%)
Mutual labels:  notepad
VS2019-Dark-Npp
Visual Studio 2019 Dark Theme for Notepad++
Stars: ✭ 146 (+461.54%)
Mutual labels:  notepad
Tiddlywiki5
A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
Stars: ✭ 6,406 (+24538.46%)
Mutual labels:  notepad
nppNavigateTo
NavigateTo - is a new and efficient way to quickly navigate between tabs(files) in your Notepad++
Stars: ✭ 36 (+38.46%)
Mutual labels:  notepad
NppBplistPlugin
Notepad++ binary plist plugin
Stars: ✭ 22 (-15.38%)
Mutual labels:  notepad
AT-NetCore-NotepadPlusPlus
Notepad++ Editor is one of the most important programs on any computer that everyone uses every day. The most popular and popular editor in Windows operating systems is Notepad, which is definitely familiar to everyone.
Stars: ✭ 42 (+61.54%)
Mutual labels:  notepad
julia-NotepadPlusPlus
Julia language support for Notepad++
Stars: ✭ 34 (+30.77%)
Mutual labels:  notepad
C-Sharp-Learning-Journey
Some of the projects i made when starting to learn c#, winfroms and wpf
Stars: ✭ 95 (+265.38%)
Mutual labels:  notepad
Notepy
Notepy is a full-featured Notepad Python app
Stars: ✭ 12 (-53.85%)
Mutual labels:  notepad

NotePad

This is an AndroidStudio rebuild of google SDK sample NotePad

一 功能扩展如下:

1.增加时间戳显示

2.添加笔记查询功能

3.界面UI美化

4.更改记事本的背景  

二 主界面增加时间戳:

  主界面

在 NoteEditor.java文件中的updateNote中添加

SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式     values.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, df.format(new Date()));

三、点击+,新建note界面,UI美化:

 

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:orientation="horizontal"

       >
       <EditText
           android:layout_width="match_parent"
           android:layout_height="40dp"
           android:layout_weight="1"
           android:layout_marginLeft="10dp"
           android:textColor="#000000"
           android:id="@+id/et_Search"
           android:hint="输入标题查找"
           android:textCursorDrawable="@drawable/contact_edit_edittext_normal"
           />
       <ImageView
           android:layout_width="30dp"
           android:layout_height="30dp"
           android:background="@drawable/search1"
           android:layout_marginRight="10dp"
           android:layout_marginTop="5dp"
           android:layout_marginLeft="10dp"
           android:id="@+id/iv_searchnotes"
           />
   </LinearLayout>

    <FrameLayout
    android:layout_width="match_parent"
    android:layout_weight="1"
    android:orientation="vertical"
    android:layout_height="wrap_content">
    <ListView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:cacheColorHint="#00000000"
        android:divider="#FFFFCC"
        android:dividerHeight="0dp"
        android:id="@id/android:list"
        >
    </ListView>
    <ImageButton
        android:id="@+id/fab"
        android:layout_width="60dp"
        android:layout_height="60dp"
        android:layout_gravity="bottom|center"
        android:layout_margin="45dp"
        android:background="@drawable/tianjia"
        android:backgroundTintMode="add"/>

新建note界面  

 

四、更换主题界面:

 

   public void ColorSelect(View view){
       String color;
       switch(view.getId()){
           case R.id.pink:
               Drawable btnDrawable1 = getResources().getDrawable(R.drawable.pink);
               ll_noteList.setBackgroundDrawable(btnDrawable1);
               lv_notesList.setBackgroundDrawable(btnDrawable1);
               break;
           case R.id.Yello:
               Drawable btnDrawable2 = getResources().getDrawable(R.drawable.yellow);
               ll_noteList.setBackgroundDrawable(btnDrawable2);
               lv_notesList.setBackgroundDrawable(btnDrawable2);
               break;
           case R.id.PaleVioletRed:
               Drawable btnDrawable3 = getResources().getDrawable(R.drawable.palevioletred);
               ll_noteList.setBackgroundDrawable(btnDrawable3);
               lv_notesList.setBackgroundDrawable(btnDrawable3);
               break;
           case R.id.LightGrey:
               Drawable btnDrawable4 = getResources().getDrawable(R.drawable.lightgrey);
               ll_noteList.setBackgroundDrawable(btnDrawable4);
               lv_notesList.setBackgroundDrawable(btnDrawable4);
               break;
           case R.id.MediumPurple:
               Drawable btnDrawable5 = getResources().getDrawable(R.drawable.mediumpurple);
               ll_noteList.setBackgroundDrawable(btnDrawable5);
               lv_notesList.setBackgroundDrawable(btnDrawable5);
               break;
           case R.id.DarkGray:
               Drawable btnDrawable6 = getResources().getDrawable(R.drawable.darkgray);
               ll_noteList.setBackgroundDrawable(btnDrawable6);
               lv_notesList.setBackgroundDrawable(btnDrawable6);
               break;
           case R.id.Snow:
               Drawable btnDrawable7 = getResources().getDrawable(R.drawable.snow);
               ll_noteList.setBackgroundDrawable(btnDrawable7);
               lv_notesList.setBackgroundDrawable(btnDrawable7);
               break;
       }

   }

更换主题界面  

主题界面1  

主题界面1  

主题界面1  

 

五、搜索笔记:

 主界面  

使用TextWatcher实现textview输入监听,使用数据库语句like实现模糊查找  

       private void addSearchView() {
           //给listview添加头部(search)
           View v=View.inflate(this, R.layout.notelistheader,null);
           getListView().addHeaderView(v);
           //给搜索框添加搜索功能
           final EditText et_Search=(EditText)v.findViewById(R.id.et_search);
           et_Search.addTextChangedListener(new TextWatcherForSearch(){
           @Override
           public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
                   super.onTextChanged(charSequence, i, i1, i2);
                   if (charSequence.length()!=0 && et_Search.getText().toString().length()!=0){
                   String str_Search = et_Search.getText().toString();
                   Cursor search_cursor = managedQuery(
                               getIntent().getData(),            
                               PROJECTION,                       
                               NotePad.Notes.COLUMN_NAME_TITLE+" like ?",   
                               new String[]{"%"+str_Search+"%"}, //匹配字符串条件                           
                       NotePad.Notes.DEFAULT_SORT_ORDER  // Use the default sort order.
               );
               adapter.swapCursor(search_cursor);//刷新listview

           }else {
               if (cursor!=null)//删除搜索框中的text后刷新listview
               adapter.swapCursor(cursor);//刷新listview
           }
       }
   });
   }
 ```


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].