Compare commits
No commits in common. 'fec99da20f5abd969a9a016554168f0730efac50' and 'f71b5d2de0813a8d3c09da2c40973fd500c33a2c' have entirely different histories.
fec99da20f
...
f71b5d2de0
After Width: | Height: | Size: 113 KiB |
@ -0,0 +1 @@
|
|||||||
|
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":3,"versionName":"1.3","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
@ -1,4 +1,4 @@
|
|||||||
package cc.liuyx.note.activity;
|
package cc.liuyx.note;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.liuyx.note.activity;
|
package cc.liuyx.note;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.liuyx.note.activity;
|
package cc.liuyx.note;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.liuyx.note.activity;
|
package cc.liuyx.note;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.app.AlarmManager;
|
import android.app.AlarmManager;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.liuyx.note.activity;
|
package cc.liuyx.note;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
@ -1,63 +0,0 @@
|
|||||||
@startuml
|
|
||||||
|
|
||||||
title __ADAPTER's Class Diagram__\n
|
|
||||||
|
|
||||||
namespace cc.liuyx.note {
|
|
||||||
namespace adapter {
|
|
||||||
class cc.liuyx.note.adapter.NoteAdapter {
|
|
||||||
- backList : List<Note>
|
|
||||||
- mContext : Context
|
|
||||||
- noteList : List<Note>
|
|
||||||
+ NoteAdapter()
|
|
||||||
+ getCount()
|
|
||||||
+ getFilter()
|
|
||||||
+ getItem()
|
|
||||||
+ getItemId()
|
|
||||||
+ getView()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
namespace cc.liuyx.note {
|
|
||||||
namespace adapter {
|
|
||||||
class cc.liuyx.note.adapter.NoteAdapter.MyFilter {
|
|
||||||
# performFiltering()
|
|
||||||
# publishResults()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
namespace cc.liuyx.note {
|
|
||||||
namespace adapter {
|
|
||||||
class cc.liuyx.note.adapter.TagAdapter {
|
|
||||||
- context : Context
|
|
||||||
- numList : List<Integer>
|
|
||||||
- tagList : List<String>
|
|
||||||
+ TagAdapter()
|
|
||||||
+ getCount()
|
|
||||||
+ getItem()
|
|
||||||
+ getItemId()
|
|
||||||
+ getView()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
cc.liuyx.note.adapter.NoteAdapter .up.|> android.widget.Filterable
|
|
||||||
cc.liuyx.note.adapter.NoteAdapter -up-|> android.widget.BaseAdapter
|
|
||||||
cc.liuyx.note.adapter.NoteAdapter o-- cc.liuyx.note.adapter.NoteAdapter.MyFilter : mFilter
|
|
||||||
cc.liuyx.note.adapter.NoteAdapter +-down- cc.liuyx.note.adapter.NoteAdapter.MyFilter
|
|
||||||
cc.liuyx.note.adapter.NoteAdapter.MyFilter -up-|> android.widget.Filter
|
|
||||||
cc.liuyx.note.adapter.TagAdapter -up-|> android.widget.BaseAdapter
|
|
||||||
|
|
||||||
|
|
||||||
right footer
|
|
||||||
|
|
||||||
|
|
||||||
PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it)
|
|
||||||
For more information about this tool, please contact philippe.mesmeur@gmail.com
|
|
||||||
endfooter
|
|
||||||
|
|
||||||
@enduml
|
|
Before Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 6.1 KiB |
@ -1,337 +0,0 @@
|
|||||||
@startuml
|
|
||||||
class cc.liuyx.note.alarm.PlanDatabase {
|
|
||||||
+ {static} String TABLE_NAME
|
|
||||||
+ {static} String TITLE
|
|
||||||
+ {static} String CONTENT
|
|
||||||
+ {static} String ID
|
|
||||||
+ {static} String TIME
|
|
||||||
+ {static} String MODE
|
|
||||||
+ void onCreate(SQLiteDatabase)
|
|
||||||
+ void onUpgrade(SQLiteDatabase,int,int)
|
|
||||||
}
|
|
||||||
abstract class cc.liuyx.note.BaseActivity {
|
|
||||||
+ String TAG
|
|
||||||
+ String ACTION
|
|
||||||
# BroadcastReceiver receiver
|
|
||||||
# IntentFilter filter
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
+ boolean isNightMode()
|
|
||||||
+ void setNightMode()
|
|
||||||
# {abstract}void needRefresh()
|
|
||||||
+ void onDestroy()
|
|
||||||
+ long calStrToSec(String)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.entity.Note {
|
|
||||||
- long id
|
|
||||||
- String content
|
|
||||||
- String time
|
|
||||||
- int tag
|
|
||||||
+ long getId()
|
|
||||||
+ String getContent()
|
|
||||||
+ String getTime()
|
|
||||||
+ void setId(long)
|
|
||||||
+ void setContent(String)
|
|
||||||
+ void setTime(String)
|
|
||||||
+ String toString()
|
|
||||||
+ int getTag()
|
|
||||||
+ void setTag(int)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.PlanAdapter {
|
|
||||||
- Context mContext
|
|
||||||
- List<Plan> backList
|
|
||||||
- List<Plan> planList
|
|
||||||
~ PlanAdapter.MyFilter mFilter
|
|
||||||
+ int getCount()
|
|
||||||
+ Object getItem(int)
|
|
||||||
+ long getItemId(int)
|
|
||||||
+ View getView(int,View,ViewGroup)
|
|
||||||
+ Filter getFilter()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.PlanAdapter$MyFilter {
|
|
||||||
# FilterResults performFiltering(CharSequence)
|
|
||||||
# void publishResults(CharSequence,FilterResults)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.db.CRUD {
|
|
||||||
~ SQLiteOpenHelper dbHandler
|
|
||||||
~ SQLiteDatabase db
|
|
||||||
- {static} String[] columns
|
|
||||||
+ void open()
|
|
||||||
+ void close()
|
|
||||||
+ void addNote(Note)
|
|
||||||
+ Note getNote(long)
|
|
||||||
+ List<Note> getAllNotes()
|
|
||||||
+ void updateNote(Note)
|
|
||||||
+ void removeNote(Note)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.adapter.NoteAdapter {
|
|
||||||
- Context mContext
|
|
||||||
- List<Note> backList
|
|
||||||
- List<Note> noteList
|
|
||||||
- MyFilter mFilter
|
|
||||||
+ int getCount()
|
|
||||||
+ Object getItem(int)
|
|
||||||
+ long getItemId(int)
|
|
||||||
+ View getView(int,View,ViewGroup)
|
|
||||||
+ Filter getFilter()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.adapter.NoteAdapter$MyFilter {
|
|
||||||
# FilterResults performFiltering(CharSequence)
|
|
||||||
# void publishResults(CharSequence,FilterResults)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.FabColorActivity {
|
|
||||||
- Toolbar myToolbar
|
|
||||||
- int openMode
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- ImageView q
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
- void initImageView()
|
|
||||||
- void chooseCurFabColor(int)
|
|
||||||
- void setClick()
|
|
||||||
+ void onClick(View)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
}
|
|
||||||
class com.example.atry.ExampleInstrumentedTest {
|
|
||||||
+ void useAppContext()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.AlarmReceiver {
|
|
||||||
- String channelId
|
|
||||||
- String name
|
|
||||||
+ void onReceive(Context,Intent)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.UserSettingsActivity {
|
|
||||||
- Switch nightMode
|
|
||||||
- Switch reverseSort
|
|
||||||
- LinearLayout fabColor
|
|
||||||
- LinearLayout fabPlanColor
|
|
||||||
- Switch noteTitle
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- {static} boolean night_change
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
# void needRefresh()
|
|
||||||
- void initView()
|
|
||||||
# void onActivityResult(int,int,Intent)
|
|
||||||
- void setSelfNightMode()
|
|
||||||
- void setNightModePref(boolean)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.Plan {
|
|
||||||
- long id
|
|
||||||
- String title
|
|
||||||
- String content
|
|
||||||
- Calendar planTime
|
|
||||||
+ int getYear()
|
|
||||||
+ int getMonth()
|
|
||||||
+ int getDay()
|
|
||||||
+ int getHour()
|
|
||||||
+ int getMinute()
|
|
||||||
+ long getId()
|
|
||||||
+ void setId(long)
|
|
||||||
+ String getTitle()
|
|
||||||
+ void setTitle(String)
|
|
||||||
+ String getContent()
|
|
||||||
+ void setContent(String)
|
|
||||||
+ Calendar getPlanTime()
|
|
||||||
+ String getTime()
|
|
||||||
+ void setTime(String)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.adapter.TagAdapter {
|
|
||||||
- Context context
|
|
||||||
- List<String> tagList
|
|
||||||
- List<Integer> numList
|
|
||||||
+ int getCount()
|
|
||||||
+ Object getItem(int)
|
|
||||||
+ long getItemId(int)
|
|
||||||
+ View getView(int,View,ViewGroup)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.CRUD {
|
|
||||||
~ SQLiteOpenHelper dbHandler
|
|
||||||
~ SQLiteDatabase db
|
|
||||||
- {static} String[] columns
|
|
||||||
+ void open()
|
|
||||||
+ void close()
|
|
||||||
+ Plan addPlan(Plan)
|
|
||||||
+ Plan getPlan(long)
|
|
||||||
+ List<Plan> getAllPlans()
|
|
||||||
+ int updatePlan(Plan)
|
|
||||||
+ void removePlan(Plan)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.EditAlarmActivity {
|
|
||||||
- DatePickerDialog.OnDateSetListener dateSetListener
|
|
||||||
- TimePickerDialog.OnTimeSetListener timeSetListener
|
|
||||||
- EditText et_title
|
|
||||||
- EditText et
|
|
||||||
- Button set_date
|
|
||||||
- Button set_time
|
|
||||||
- TextView date
|
|
||||||
- TextView time
|
|
||||||
- Plan plan
|
|
||||||
- int[] dateArray
|
|
||||||
- int[] timeArray
|
|
||||||
- int openMode
|
|
||||||
- String old_title
|
|
||||||
- String old_content
|
|
||||||
- String old_time
|
|
||||||
- long id
|
|
||||||
- boolean timeChange
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
+ boolean onCreateOptionsMenu(Menu)
|
|
||||||
+ boolean onOptionsItemSelected(MenuItem)
|
|
||||||
# void needRefresh()
|
|
||||||
- void init()
|
|
||||||
- void setDateTV(int,int,int)
|
|
||||||
- void setTimeTV(int,int)
|
|
||||||
+ void onClick(View)
|
|
||||||
- void isTimeChange()
|
|
||||||
- boolean canBeSet()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.MainActivity {
|
|
||||||
- NoteDatabase dbHelper
|
|
||||||
- PlanDatabase planDbHelper
|
|
||||||
- FloatingActionButton fab
|
|
||||||
- FloatingActionButton fab_alarm
|
|
||||||
- ListView lv
|
|
||||||
- ListView lv_plan
|
|
||||||
- LinearLayout lv_layout
|
|
||||||
- LinearLayout lv_plan_layout
|
|
||||||
- Context context
|
|
||||||
- NoteAdapter adapter
|
|
||||||
- PlanAdapter planAdapter
|
|
||||||
- List<Note> noteList
|
|
||||||
- List<Plan> planList
|
|
||||||
- TextView mEmptyView
|
|
||||||
- Toolbar myToolbar
|
|
||||||
- PopupWindow popupWindow
|
|
||||||
- PopupWindow popupCover
|
|
||||||
- LayoutInflater layoutInflater
|
|
||||||
- RelativeLayout main
|
|
||||||
- ViewGroup customView
|
|
||||||
- ViewGroup coverView
|
|
||||||
- WindowManager wm
|
|
||||||
- DisplayMetrics metrics
|
|
||||||
- TagAdapter tagAdapter
|
|
||||||
- TextView setting_text
|
|
||||||
- ImageView setting_image
|
|
||||||
- ListView lv_tag
|
|
||||||
- TextView add_tag
|
|
||||||
- BroadcastReceiver myReceiver
|
|
||||||
- Achievement achievement
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- Switch content_switch
|
|
||||||
- AlarmManager alarmManager
|
|
||||||
~ String[] list_String
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
- void showPopUpWindow()
|
|
||||||
- void refreshTagList()
|
|
||||||
- void resetTagsX(AdapterView<?>)
|
|
||||||
# void needRefresh()
|
|
||||||
+ void initView()
|
|
||||||
- void refreshLvVisibility()
|
|
||||||
+ void initPopupView()
|
|
||||||
- void initPrefs()
|
|
||||||
+ boolean onCreateOptionsMenu(Menu)
|
|
||||||
+ boolean onOptionsItemSelected(MenuItem)
|
|
||||||
+ void refreshListView()
|
|
||||||
- void chooseFabColor(int)
|
|
||||||
- void chooseFabPlanColor(int)
|
|
||||||
+ void onItemClick(AdapterView<?>,View,int,long)
|
|
||||||
# void onActivityResult(int,int,Intent)
|
|
||||||
+ boolean onItemLongClick(AdapterView<?>,View,int,long)
|
|
||||||
+ void sortNotes(List<Note>,int)
|
|
||||||
+ void sortPlans(List<Plan>,int)
|
|
||||||
+ long dateStrToSec(String)
|
|
||||||
+ List<Integer> numOfTagNotes(List<String>)
|
|
||||||
+ int npLong(Long)
|
|
||||||
+ void onDestroy()
|
|
||||||
- void startAlarm(Plan)
|
|
||||||
- void startAlarms(List<Plan>)
|
|
||||||
- void cancelAlarm(Plan)
|
|
||||||
- void cancelAlarms(List<Plan>)
|
|
||||||
+ void onResume()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.MainActivity$Achievement {
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- int noteNumber
|
|
||||||
- int wordNumber
|
|
||||||
- int noteLevel
|
|
||||||
- int wordLevel
|
|
||||||
- void getPref()
|
|
||||||
- void initPref()
|
|
||||||
- void addCurrent(List<Note>)
|
|
||||||
+ void addNote(String)
|
|
||||||
+ void deleteNote()
|
|
||||||
+ void editNote(String,String)
|
|
||||||
+ void noteNumberAchievement(int)
|
|
||||||
+ void wordNumberAchievement(int)
|
|
||||||
+ void announcement(String,int,int)
|
|
||||||
+ String annoucementTitle(int,int)
|
|
||||||
+ void setState(int)
|
|
||||||
+ void listen()
|
|
||||||
+ void resetAll()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.EditActivity {
|
|
||||||
- NoteDatabase dbHelper
|
|
||||||
- Context context
|
|
||||||
- EditText et
|
|
||||||
- String old_content
|
|
||||||
- String old_time
|
|
||||||
- int old_Tag
|
|
||||||
- long id
|
|
||||||
- int openMode
|
|
||||||
- int tag
|
|
||||||
- boolean tagChange
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
# void needRefresh()
|
|
||||||
+ boolean onCreateOptionsMenu(Menu)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
+ boolean onOptionsItemSelected(MenuItem)
|
|
||||||
+ String dateToStr()
|
|
||||||
- void deleteNote(Intent)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.entity.SpinnerItem {
|
|
||||||
- String tagName
|
|
||||||
- int tagId
|
|
||||||
+ String getTagName()
|
|
||||||
+ void setTagName(String)
|
|
||||||
+ int getTagId()
|
|
||||||
+ void setTagId(int)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.db.NoteDatabase {
|
|
||||||
+ {static} String TABLE_NAME
|
|
||||||
+ {static} String CONTENT
|
|
||||||
+ {static} String ID
|
|
||||||
+ {static} String TIME
|
|
||||||
+ {static} String MODE
|
|
||||||
+ void onCreate(SQLiteDatabase)
|
|
||||||
+ void onUpgrade(SQLiteDatabase,int,int)
|
|
||||||
- void updateMode(SQLiteDatabase)
|
|
||||||
}
|
|
||||||
class com.example.atry.ExampleUnitTest {
|
|
||||||
+ void addition_isCorrect()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
android.database.sqlite.SQLiteOpenHelper <|-- cc.liuyx.note.alarm.PlanDatabase
|
|
||||||
android.support.v7.app.AppCompatActivity <|-- cc.liuyx.note.BaseActivity
|
|
||||||
android.widget.Filterable <|.. cc.liuyx.note.alarm.PlanAdapter
|
|
||||||
android.widget.BaseAdapter <|-- cc.liuyx.note.alarm.PlanAdapter
|
|
||||||
cc.liuyx.note.alarm.PlanAdapter +.. cc.liuyx.note.alarm.PlanAdapter$MyFilter
|
|
||||||
cc.liuyx.note.alarm.Filter <|-- cc.liuyx.note.alarm.PlanAdapter$MyFilter
|
|
||||||
android.widget.Filterable <|.. cc.liuyx.note.adapter.NoteAdapter
|
|
||||||
android.widget.BaseAdapter <|-- cc.liuyx.note.adapter.NoteAdapter
|
|
||||||
cc.liuyx.note.adapter.NoteAdapter +.. cc.liuyx.note.adapter.NoteAdapter$MyFilter
|
|
||||||
cc.liuyx.note.adapter.Filter <|-- cc.liuyx.note.adapter.NoteAdapter$MyFilter
|
|
||||||
cc.liuyx.note.OnClickListener <|.. cc.liuyx.note.FabColorActivity
|
|
||||||
android.support.v7.app.AppCompatActivity <|-- cc.liuyx.note.FabColorActivity
|
|
||||||
android.content.BroadcastReceiver <|-- cc.liuyx.note.alarm.AlarmReceiver
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.UserSettingsActivity
|
|
||||||
android.widget.BaseAdapter <|-- cc.liuyx.note.adapter.TagAdapter
|
|
||||||
cc.liuyx.note.alarm.OnClickListener <|.. cc.liuyx.note.alarm.EditAlarmActivity
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.alarm.EditAlarmActivity
|
|
||||||
android.widget.AdapterView.OnItemClickListener <|.. cc.liuyx.note.MainActivity
|
|
||||||
android.widget.AdapterView.OnItemLongClickListener <|.. cc.liuyx.note.MainActivity
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.MainActivity
|
|
||||||
cc.liuyx.note.MainActivity +.. cc.liuyx.note.MainActivity$Achievement
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.EditActivity
|
|
||||||
android.database.sqlite.SQLiteOpenHelper <|-- cc.liuyx.note.db.NoteDatabase
|
|
||||||
@enduml
|
|
@ -1,156 +0,0 @@
|
|||||||
@startuml
|
|
||||||
class cc.liuyx.note.UserSettingsActivity {
|
|
||||||
- Switch nightMode
|
|
||||||
- Switch reverseSort
|
|
||||||
- LinearLayout fabColor
|
|
||||||
- LinearLayout fabPlanColor
|
|
||||||
- Switch noteTitle
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- {static} boolean night_change
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
# void needRefresh()
|
|
||||||
- void initView()
|
|
||||||
# void onActivityResult(int,int,Intent)
|
|
||||||
- void setSelfNightMode()
|
|
||||||
- void setNightModePref(boolean)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.FabColorActivity {
|
|
||||||
- Toolbar myToolbar
|
|
||||||
- int openMode
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- ImageView q
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
- void initImageView()
|
|
||||||
- void chooseCurFabColor(int)
|
|
||||||
- void setClick()
|
|
||||||
+ void onClick(View)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.EditActivity {
|
|
||||||
- NoteDatabase dbHelper
|
|
||||||
- Context context
|
|
||||||
- EditText et
|
|
||||||
- String old_content
|
|
||||||
- String old_time
|
|
||||||
- int old_Tag
|
|
||||||
- long id
|
|
||||||
- int openMode
|
|
||||||
- int tag
|
|
||||||
- boolean tagChange
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
# void needRefresh()
|
|
||||||
+ boolean onCreateOptionsMenu(Menu)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
+ boolean onOptionsItemSelected(MenuItem)
|
|
||||||
+ String dateToStr()
|
|
||||||
- void deleteNote(Intent)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.MainActivity {
|
|
||||||
- NoteDatabase dbHelper
|
|
||||||
- PlanDatabase planDbHelper
|
|
||||||
- FloatingActionButton fab
|
|
||||||
- FloatingActionButton fab_alarm
|
|
||||||
- ListView lv
|
|
||||||
- ListView lv_plan
|
|
||||||
- LinearLayout lv_layout
|
|
||||||
- LinearLayout lv_plan_layout
|
|
||||||
- Context context
|
|
||||||
- NoteAdapter adapter
|
|
||||||
- PlanAdapter planAdapter
|
|
||||||
- List<Note> noteList
|
|
||||||
- List<Plan> planList
|
|
||||||
- TextView mEmptyView
|
|
||||||
- Toolbar myToolbar
|
|
||||||
- PopupWindow popupWindow
|
|
||||||
- PopupWindow popupCover
|
|
||||||
- LayoutInflater layoutInflater
|
|
||||||
- RelativeLayout main
|
|
||||||
- ViewGroup customView
|
|
||||||
- ViewGroup coverView
|
|
||||||
- WindowManager wm
|
|
||||||
- DisplayMetrics metrics
|
|
||||||
- TagAdapter tagAdapter
|
|
||||||
- TextView setting_text
|
|
||||||
- ImageView setting_image
|
|
||||||
- ListView lv_tag
|
|
||||||
- TextView add_tag
|
|
||||||
- BroadcastReceiver myReceiver
|
|
||||||
- Achievement achievement
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- Switch content_switch
|
|
||||||
- AlarmManager alarmManager
|
|
||||||
~ String[] list_String
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
- void showPopUpWindow()
|
|
||||||
- void refreshTagList()
|
|
||||||
- void resetTagsX(AdapterView<?>)
|
|
||||||
# void needRefresh()
|
|
||||||
+ void initView()
|
|
||||||
- void refreshLvVisibility()
|
|
||||||
+ void initPopupView()
|
|
||||||
- void initPrefs()
|
|
||||||
+ boolean onCreateOptionsMenu(Menu)
|
|
||||||
+ boolean onOptionsItemSelected(MenuItem)
|
|
||||||
+ void refreshListView()
|
|
||||||
- void chooseFabColor(int)
|
|
||||||
- void chooseFabPlanColor(int)
|
|
||||||
+ void onItemClick(AdapterView<?>,View,int,long)
|
|
||||||
# void onActivityResult(int,int,Intent)
|
|
||||||
+ boolean onItemLongClick(AdapterView<?>,View,int,long)
|
|
||||||
+ void sortNotes(List<Note>,int)
|
|
||||||
+ void sortPlans(List<Plan>,int)
|
|
||||||
+ long dateStrToSec(String)
|
|
||||||
+ List<Integer> numOfTagNotes(List<String>)
|
|
||||||
+ int npLong(Long)
|
|
||||||
+ void onDestroy()
|
|
||||||
- void startAlarm(Plan)
|
|
||||||
- void startAlarms(List<Plan>)
|
|
||||||
- void cancelAlarm(Plan)
|
|
||||||
- void cancelAlarms(List<Plan>)
|
|
||||||
+ void onResume()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.MainActivity$Achievement {
|
|
||||||
- SharedPreferences sharedPreferences
|
|
||||||
- int noteNumber
|
|
||||||
- int wordNumber
|
|
||||||
- int noteLevel
|
|
||||||
- int wordLevel
|
|
||||||
- void getPref()
|
|
||||||
- void initPref()
|
|
||||||
- void addCurrent(List<Note>)
|
|
||||||
+ void addNote(String)
|
|
||||||
+ void deleteNote()
|
|
||||||
+ void editNote(String,String)
|
|
||||||
+ void noteNumberAchievement(int)
|
|
||||||
+ void wordNumberAchievement(int)
|
|
||||||
+ void announcement(String,int,int)
|
|
||||||
+ String annoucementTitle(int,int)
|
|
||||||
+ void setState(int)
|
|
||||||
+ void listen()
|
|
||||||
+ void resetAll()
|
|
||||||
}
|
|
||||||
abstract class cc.liuyx.note.BaseActivity {
|
|
||||||
+ String TAG
|
|
||||||
+ String ACTION
|
|
||||||
# BroadcastReceiver receiver
|
|
||||||
# IntentFilter filter
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
+ boolean isNightMode()
|
|
||||||
+ void setNightMode()
|
|
||||||
# {abstract}void needRefresh()
|
|
||||||
+ void onDestroy()
|
|
||||||
+ long calStrToSec(String)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.UserSettingsActivity
|
|
||||||
cc.liuyx.note.OnClickListener <|.. cc.liuyx.note.FabColorActivity
|
|
||||||
android.support.v7.app.AppCompatActivity <|-- cc.liuyx.note.FabColorActivity
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.EditActivity
|
|
||||||
android.widget.AdapterView.OnItemClickListener <|.. cc.liuyx.note.MainActivity
|
|
||||||
android.widget.AdapterView.OnItemLongClickListener <|.. cc.liuyx.note.MainActivity
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.MainActivity
|
|
||||||
cc.liuyx.note.MainActivity +.. cc.liuyx.note.MainActivity$Achievement
|
|
||||||
android.support.v7.app.AppCompatActivity <|-- cc.liuyx.note.BaseActivity
|
|
||||||
@enduml
|
|
@ -1,33 +0,0 @@
|
|||||||
@startuml
|
|
||||||
class cc.liuyx.note.adapter.TagAdapter {
|
|
||||||
- Context context
|
|
||||||
- List<String> tagList
|
|
||||||
- List<Integer> numList
|
|
||||||
+ int getCount()
|
|
||||||
+ Object getItem(int)
|
|
||||||
+ long getItemId(int)
|
|
||||||
+ View getView(int,View,ViewGroup)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.adapter.NoteAdapter {
|
|
||||||
- Context mContext
|
|
||||||
- List<Note> backList
|
|
||||||
- List<Note> noteList
|
|
||||||
- MyFilter mFilter
|
|
||||||
+ int getCount()
|
|
||||||
+ Object getItem(int)
|
|
||||||
+ long getItemId(int)
|
|
||||||
+ View getView(int,View,ViewGroup)
|
|
||||||
+ Filter getFilter()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.adapter.NoteAdapter$MyFilter {
|
|
||||||
# FilterResults performFiltering(CharSequence)
|
|
||||||
# void publishResults(CharSequence,FilterResults)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
android.widget.BaseAdapter <|-- cc.liuyx.note.adapter.TagAdapter
|
|
||||||
android.widget.Filterable <|.. cc.liuyx.note.adapter.NoteAdapter
|
|
||||||
android.widget.BaseAdapter <|-- cc.liuyx.note.adapter.NoteAdapter
|
|
||||||
cc.liuyx.note.adapter.NoteAdapter +.. cc.liuyx.note.adapter.NoteAdapter$MyFilter
|
|
||||||
cc.liuyx.note.adapter.Filter <|-- cc.liuyx.note.adapter.NoteAdapter$MyFilter
|
|
||||||
@enduml
|
|
@ -1,104 +0,0 @@
|
|||||||
@startuml
|
|
||||||
class cc.liuyx.note.alarm.PlanDatabase {
|
|
||||||
+ {static} String TABLE_NAME
|
|
||||||
+ {static} String TITLE
|
|
||||||
+ {static} String CONTENT
|
|
||||||
+ {static} String ID
|
|
||||||
+ {static} String TIME
|
|
||||||
+ {static} String MODE
|
|
||||||
+ void onCreate(SQLiteDatabase)
|
|
||||||
+ void onUpgrade(SQLiteDatabase,int,int)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.Plan {
|
|
||||||
- long id
|
|
||||||
- String title
|
|
||||||
- String content
|
|
||||||
- Calendar planTime
|
|
||||||
+ int getYear()
|
|
||||||
+ int getMonth()
|
|
||||||
+ int getDay()
|
|
||||||
+ int getHour()
|
|
||||||
+ int getMinute()
|
|
||||||
+ long getId()
|
|
||||||
+ void setId(long)
|
|
||||||
+ String getTitle()
|
|
||||||
+ void setTitle(String)
|
|
||||||
+ String getContent()
|
|
||||||
+ void setContent(String)
|
|
||||||
+ Calendar getPlanTime()
|
|
||||||
+ String getTime()
|
|
||||||
+ void setTime(String)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.PlanAdapter {
|
|
||||||
- Context mContext
|
|
||||||
- List<Plan> backList
|
|
||||||
- List<Plan> planList
|
|
||||||
~ PlanAdapter.MyFilter mFilter
|
|
||||||
+ int getCount()
|
|
||||||
+ Object getItem(int)
|
|
||||||
+ long getItemId(int)
|
|
||||||
+ View getView(int,View,ViewGroup)
|
|
||||||
+ Filter getFilter()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.PlanAdapter$MyFilter {
|
|
||||||
# FilterResults performFiltering(CharSequence)
|
|
||||||
# void publishResults(CharSequence,FilterResults)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.CRUD {
|
|
||||||
~ SQLiteOpenHelper dbHandler
|
|
||||||
~ SQLiteDatabase db
|
|
||||||
- {static} String[] columns
|
|
||||||
+ void open()
|
|
||||||
+ void close()
|
|
||||||
+ Plan addPlan(Plan)
|
|
||||||
+ Plan getPlan(long)
|
|
||||||
+ List<Plan> getAllPlans()
|
|
||||||
+ int updatePlan(Plan)
|
|
||||||
+ void removePlan(Plan)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.EditAlarmActivity {
|
|
||||||
- DatePickerDialog.OnDateSetListener dateSetListener
|
|
||||||
- TimePickerDialog.OnTimeSetListener timeSetListener
|
|
||||||
- EditText et_title
|
|
||||||
- EditText et
|
|
||||||
- Button set_date
|
|
||||||
- Button set_time
|
|
||||||
- TextView date
|
|
||||||
- TextView time
|
|
||||||
- Plan plan
|
|
||||||
- int[] dateArray
|
|
||||||
- int[] timeArray
|
|
||||||
- int openMode
|
|
||||||
- String old_title
|
|
||||||
- String old_content
|
|
||||||
- String old_time
|
|
||||||
- long id
|
|
||||||
- boolean timeChange
|
|
||||||
# void onCreate(Bundle)
|
|
||||||
+ boolean onKeyDown(int,KeyEvent)
|
|
||||||
+ boolean onCreateOptionsMenu(Menu)
|
|
||||||
+ boolean onOptionsItemSelected(MenuItem)
|
|
||||||
# void needRefresh()
|
|
||||||
- void init()
|
|
||||||
- void setDateTV(int,int,int)
|
|
||||||
- void setTimeTV(int,int)
|
|
||||||
+ void onClick(View)
|
|
||||||
- void isTimeChange()
|
|
||||||
- boolean canBeSet()
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.alarm.AlarmReceiver {
|
|
||||||
- String channelId
|
|
||||||
- String name
|
|
||||||
+ void onReceive(Context,Intent)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
android.database.sqlite.SQLiteOpenHelper <|-- cc.liuyx.note.alarm.PlanDatabase
|
|
||||||
android.widget.Filterable <|.. cc.liuyx.note.alarm.PlanAdapter
|
|
||||||
android.widget.BaseAdapter <|-- cc.liuyx.note.alarm.PlanAdapter
|
|
||||||
cc.liuyx.note.alarm.PlanAdapter +.. cc.liuyx.note.alarm.PlanAdapter$MyFilter
|
|
||||||
cc.liuyx.note.alarm.Filter <|-- cc.liuyx.note.alarm.PlanAdapter$MyFilter
|
|
||||||
cc.liuyx.note.alarm.OnClickListener <|.. cc.liuyx.note.alarm.EditAlarmActivity
|
|
||||||
cc.liuyx.note.BaseActivity <|-- cc.liuyx.note.alarm.EditAlarmActivity
|
|
||||||
android.content.BroadcastReceiver <|-- cc.liuyx.note.alarm.AlarmReceiver
|
|
||||||
@enduml
|
|
@ -1,27 +0,0 @@
|
|||||||
@startuml
|
|
||||||
class cc.liuyx.note.db.CRUD {
|
|
||||||
~ SQLiteOpenHelper dbHandler
|
|
||||||
~ SQLiteDatabase db
|
|
||||||
- {static} String[] columns
|
|
||||||
+ void open()
|
|
||||||
+ void close()
|
|
||||||
+ void addNote(Note)
|
|
||||||
+ Note getNote(long)
|
|
||||||
+ List<Note> getAllNotes()
|
|
||||||
+ void updateNote(Note)
|
|
||||||
+ void removeNote(Note)
|
|
||||||
}
|
|
||||||
class cc.liuyx.note.db.NoteDatabase {
|
|
||||||
+ {static} String TABLE_NAME
|
|
||||||
+ {static} String CONTENT
|
|
||||||
+ {static} String ID
|
|
||||||
+ {static} String TIME
|
|
||||||
+ {static} String MODE
|
|
||||||
+ void onCreate(SQLiteDatabase)
|
|
||||||
+ void onUpgrade(SQLiteDatabase,int,int)
|
|
||||||
- void updateMode(SQLiteDatabase)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
android.database.sqlite.SQLiteOpenHelper <|-- cc.liuyx.note.db.NoteDatabase
|
|
||||||
@enduml
|
|