调整目录结构

master
liuyx 2 years ago
parent 2694cb14cf
commit 3462e13579

@ -14,7 +14,7 @@
android:supportsRtl="true"
>
<activity android:name="cc.liuyx.note.MainActivity"
<activity android:name="cc.liuyx.note.activity.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -24,11 +24,11 @@
</activity>
<activity android:name="cc.liuyx.note.EditActivity">
<activity android:name="cc.liuyx.note.activity.EditActivity">
</activity>
<activity android:name="cc.liuyx.note.FabColorActivity" />
<activity android:name="cc.liuyx.note.UserSettingsActivity" />
<activity android:name="cc.liuyx.note.activity.FabColorActivity" />
<activity android:name="cc.liuyx.note.activity.UserSettingsActivity" />
<activity android:name="cc.liuyx.note.alarm.EditAlarmActivity" />
<receiver android:name="cc.liuyx.note.alarm.AlarmReceiver" />

@ -1,4 +1,4 @@
package cc.liuyx.note;
package cc.liuyx.note.activity;
import android.app.Activity;
import android.content.BroadcastReceiver;

@ -1,4 +1,4 @@
package cc.liuyx.note;
package cc.liuyx.note.activity;
import android.annotation.SuppressLint;
import android.content.Context;

@ -1,4 +1,4 @@
package cc.liuyx.note;
package cc.liuyx.note.activity;
import android.annotation.SuppressLint;
import android.content.Intent;

@ -1,4 +1,4 @@
package cc.liuyx.note;
package cc.liuyx.note.activity;
import android.annotation.SuppressLint;
import android.app.AlarmManager;

@ -1,4 +1,4 @@
package cc.liuyx.note;
package cc.liuyx.note.activity;
import android.content.Intent;
import android.content.SharedPreferences;

@ -0,0 +1,63 @@
@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

@ -10,7 +10,7 @@ import android.content.Intent;
import android.os.Build;
import android.support.v4.app.NotificationCompat;
import cc.liuyx.note.MainActivity;
import cc.liuyx.note.activity.MainActivity;
import com.example.atry.R;
public class AlarmReceiver extends BroadcastReceiver {

@ -20,7 +20,7 @@ import android.widget.TextView;
import android.widget.TimePicker;
import android.widget.Toast;
import cc.liuyx.note.BaseActivity;
import cc.liuyx.note.activity.BaseActivity;
import com.example.atry.R;

@ -0,0 +1,52 @@
@startuml
title __ENTITY's Class Diagram__\n
namespace cc.liuyx.note {
namespace entity {
class cc.liuyx.note.entity.Note {
- content : String
- id : long
- tag : int
- time : String
+ Note()
+ Note()
+ getContent()
+ getId()
+ getTag()
+ getTime()
+ setContent()
+ setId()
+ setTag()
+ setTime()
+ toString()
}
}
}
namespace cc.liuyx.note {
namespace entity {
class cc.liuyx.note.entity.SpinnerItem {
- tagId : int
- tagName : String
+ SpinnerItem()
+ getTagId()
+ getTagName()
+ setTagId()
+ setTagName()
}
}
}
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

@ -8,7 +8,7 @@
android:layout_margin="0dp"
android:background="?attr/lvBackground"
android:orientation="vertical"
tools:context="cc.liuyx.note.MainActivity">
tools:context="cc.liuyx.note.activity.MainActivity">
<View
android:layout_width="match_parent"

Loading…
Cancel
Save