Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3eee8a8
change the entry of adding new diary;
JiYumeng Aug 28, 2014
3447480
Crying! Delete the slideable navigation bar which I struggle for all …
JiYumeng Aug 28, 2014
2605868
change the activity
JiYumeng Aug 29, 2014
ca7821e
add the layout of finished diary;
JiYumeng Aug 29, 2014
3f97875
finish the model of adding new diary
JiYumeng Aug 30, 2014
26cef46
add delete button in companion
JiYumeng Aug 30, 2014
bd5f977
add GraphicActivity
JiYumeng Sep 1, 2014
6f4561a
change setting layout
JiYumeng Sep 1, 2014
37a2255
add select_month button in graphic
JiYumeng Sep 2, 2014
f2d4f8d
successfully refresh the graphic
JiYumeng Sep 2, 2014
2f994b4
add duration graphic
JiYumeng Sep 2, 2014
a6835a4
modify the graphic show.
JiYumeng Sep 3, 2014
202e524
add the third graphic.
JiYumeng Sep 3, 2014
77c44a4
add suggestion and guidelines
JiYumeng Sep 3, 2014
010b234
click to show all
JiYumeng Sep 3, 2014
43877ea
add arrow
JiYumeng Sep 3, 2014
022cd0a
complete unfinished diary
JiYumeng Sep 3, 2014
e99b3d6
add drug_list in add_drug_dialog.
JiYumeng Sep 4, 2014
0749c55
modify add drug
JiYumeng Sep 4, 2014
5cbab1d
add druglist to DB
JiYumeng Sep 5, 2014
1f6e29c
add druglist?
JiYumeng Sep 5, 2014
d1a74eb
add PushManager
JiYumeng Sep 9, 2014
16a9748
add doctor suggestion layout.
JiYumeng Sep 10, 2014
a70a20a
connect suggestion list with database.
JiYumeng Sep 10, 2014
52428ad
add reminder of unread suggestion.
JiYumeng Sep 10, 2014
af1e6fa
unread-reminder changes depending on the count of unread suggestion;
JiYumeng Sep 11, 2014
7a1b962
ignore svn files
xiahjay Sep 12, 2014
e0c37e6
synchronizeSuggestion?
JiYumeng Sep 12, 2014
47077a9
change some detail
JiYumeng Sep 15, 2014
bf20db7
Merge branch 'jym' of https://github.com/xiahjay/HeadDiary into jym
JiYumeng Sep 15, 2014
5e7bb30
add some details....again~
JiYumeng Sep 16, 2014
d62ee1e
pull down to refresh listview.
JiYumeng Sep 16, 2014
8160ef2
do some change on listview refreshing
JiYumeng Sep 16, 2014
cd49927
refresh to show new message
JiYumeng Oct 11, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ project.properties

# Proguard folder generated by Eclipse
proguard/
.svn/
3 changes: 3 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
eclipse.preferences.version=1
encoding//src/com/example/headdiary/hddialog/EndTimeDialog.java=UTF-8
encoding//src/com/example/headdiary/hddialog/EndTimeQuestion.java=UTF-8
encoding//src/com/example/headdiary/hddialog/SelectMonthDialog.java=UTF-8
encoding//src/com/example/headdiary/hddialog/StartTimeDialog.java=UTF-8
encoding//src/com/example/headdiary/hddialog/StartTimeQuestion.java=UTF-8
212 changes: 211 additions & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,32 @@
<!-- 查看网络连接状态的权限 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!--以下为必须的权限 -->

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="getui.permission.GetuiService" />

<!--自定义权限-->
<permission
android:name="getui.permission.GetuiService"
android:protectionLevel="normal" >
</permission>


<application
android:name="com.example.headdiary.util.MyApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateAlwaysHidden" >
android:windowSoftInputMode="stateAlwaysHidden"
android:launchMode="singleInstance">
<activity
android:name="com.example.headdiary.MainActivity"
android:label="@string/app_name" >
Expand All @@ -39,6 +58,10 @@
</activity>
<activity
android:name="com.example.headdiary.HomeActivity"
android:label="@string/title_activity_home">
</activity>
<activity
android:name="com.example.headdiary.UnfinishedDiaryActivity"
android:label="@string/title_activity_home" >
</activity>
<activity
Expand All @@ -50,55 +73,120 @@
android:label="@string/title_activity_start_time_diaglog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.SelectMonthDialog"
android:label="@string/title_activity_start_time_diaglog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.StartTimeQuestion"
android:label="@string/title_activity_start_time_diaglog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.EndTimeDialog"
android:label="@string/title_activity_end_time_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.EndTimeQuestion"
android:label="@string/title_activity_end_time_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AchePositionDialog"
android:label="@string/title_activity_ache_position_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AchePositionQuestion"
android:label="@string/title_activity_ache_position_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AcheTypeDialog"
android:label="@string/title_activity_ache_type_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AcheTypeQuestion"
android:label="@string/title_activity_ache_type_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AcheDegreeDialog"
android:label="@string/title_activity_ache_degree"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AcheDegreeQuestion"
android:label="@string/title_activity_ache_degree"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.ActivityAggravateDialog"
android:label="@string/title_activity_activity_aggravate_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.ActivityAggravateQuestion"
android:label="@string/title_activity_activity_aggravate_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.ProdromeDialog"
android:label="@string/title_activity_prodrome_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.ProdromeQuestion"
android:label="@string/title_activity_prodrome_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.CompanionDialog"
android:label="@string/title_activity_companion0_diaglog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.CompanionQuestion"
android:label="@string/title_activity_companion0_diaglog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.CompanionQ1"
android:label="@string/title_activity_companion0_diaglog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.MitigatingDialog"
android:label="@string/title_activity_mitigating_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.MitigatingQuestion"
android:label="@string/title_activity_mitigating_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.PrecipiatingDialog"
android:label="@string/title_activity_precipiating_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.PrecipiatingQuestion"
android:label="@string/title_activity_precipiating_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AddDrugDialog"
android:label="@string/title_activity_add_drug_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.hddialog.AddDrugQuestion"
android:label="@string/title_activity_add_drug_dialog"
android:theme="@style/MyDialogStyle" >
</activity>
<activity
android:name="com.example.headdiary.MainDoctorActivity"
Expand All @@ -115,16 +203,138 @@
<activity
android:name="com.example.headdiary.MainDocumentActivity"
android:label="@string/title_activity_main_document" >
</activity>
<activity
android:name="com.example.headdiary.DoctorOnlineActivity"
android:label="@string/title_activity_main_document" >
</activity>
<activity
android:name="com.example.headdiary.MainAnalysisActivity"
android:label="@string/title_activity_main_analysis" >
</activity>
<activity
android:name="com.example.headdiary.GraphicActivity"
android:label="@string/title_activity_main_analysis" >
</activity>
<activity
android:name="com.example.headdiary.UIADemoActivity"
android:label="@string/title_activity_main_analysis" >
</activity>
<activity
android:name="com.example.headdiary.RegisterActivity"
android:label="@string/title_activity_register"
android:windowSoftInputMode="stateAlwaysHidden">
</activity>

<!-- 个推SDK配置开始 -->
<!-- 配置的第三方参数属性 -->
<meta-data
android:name="PUSH_APPID"
android:value="fDGJSsU22U7etxd2nUG751" />

<meta-data
android:name="PUSH_APPSECRET"
android:value="U7YUHInuqb9CltOAKby1u7" />

<meta-data
android:name="PUSH_APPKEY"
android:value="lwgZ9rlfQoAZOXvpUoeGR5" />

<meta-data
android:name="PUSH_GROUPID"
android:value="" />

<!-- 配置第三方Receiver -->
<receiver
android:name="com.example.headdiary.PushDemoReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.igexin.sdk.action.fDGJSsU22U7etxd2nUG751" />
</intent-filter>
</receiver>

<!--配置SDK核心服务-->
<service android:name="com.igexin.sdk.PushService"
android:exported="true"
android:label="NotificationCenter"
android:process=":pushservice" >
</service>

<receiver android:name="com.igexin.sdk.PushReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="com.igexin.sdk.action.refreshls" />
</intent-filter>
</receiver>

<receiver
android:name="com.igexin.sdk.PushReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.igexin.sdk.action.pushmanager" />
</intent-filter>
</receiver>

<activity
android:name="com.igexin.sdk.PushActivity"
android:process=":pushservice"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:taskAffinity="com.igexin.sdk.PushActivityTask"
android:excludeFromRecents="true"
android:exported="false">
</activity>

<!-- 配置弹框activity -->
<activity
android:name="com.igexin.getuiext.activity.GetuiExtActivity"
android:process=":pushservice"
android:configChanges="orientation|keyboard|keyboardHidden"
android:excludeFromRecents="true"
android:taskAffinity="android.task.myServicetask"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false" />

<receiver
android:name="com.igexin.getuiext.service.PayloadReceiver"
android:exported="false" >
<intent-filter>
<!-- 这个com.igexin.sdk.action.7fjUl2Z3LH6xYy7NQK4ni4固定,不能修改 -->
<action android:name="com.igexin.sdk.action.7fjUl2Z3LH6xYy7NQK4ni4" />
<!-- android:name="com.igexin.sdk.action.第三方的appId" -->
<action android:name="com.igexin.sdk.action.fDGJSsU22U7etxd2nUG751" />
</intent-filter>
</receiver>

<service
android:name="com.igexin.getuiext.service.GetuiExtService"
android:process=":pushservice" />

<!-- 个推download模块配置-->
<service
android:name="com.igexin.download.DownloadService"
android:process=":pushservice" />

<receiver
android:exported="false"
android:name="com.igexin.download.DownloadReceiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>

<provider
android:name="com.igexin.download.DownloadProvider"
android:process=":pushservice"
android:authorities="downloads.com.example.headdiary"/>
<!-- android:authorities="downloads.第三方包名" -->
<!-- ====================================================== -->



</application>



</manifest>
Binary file added libs/GetuiExt-1.2.2.jar
Binary file not shown.
Binary file added libs/GetuiSdk2.2.5.9.jar
Binary file not shown.
Binary file added libs/armeabi/libgetuiext.so
Binary file not shown.
10 changes: 10 additions & 0 deletions res/anim/bottomitem_in.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXScale="0.9"
android:toXScale="1"
android:fromYScale="0.9"
android:toYScale="1"
android:pivotX="50%"
android:pivotY="0"
android:duration="300" >
</scale>
9 changes: 9 additions & 0 deletions res/anim/inuptodown.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >

<translate
android:duration="500"
android:fromYDelta="-15%"
android:toYDelta="0" />

</set>
9 changes: 9 additions & 0 deletions res/anim/outdowntoup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >

<translate
android:duration="300"
android:fromYDelta="0"
android:toYDelta="-15%" />

</set>
10 changes: 10 additions & 0 deletions res/anim/topitem_in.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXScale="0.9"
android:toXScale="1"
android:fromYScale="0.9"
android:toYScale="1"
android:pivotX="50%"
android:pivotY="100%"
android:duration="300" >
</scale>
Binary file added res/drawable-hdpi/arrow1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow_left1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow_right1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/bg1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/bg_shezhi.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_big_popsubmit_disable.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/comment_divider_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_pulltorefresh_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/line_cross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/list_item_bg1.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/listview_item_background.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/nav_menu_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/nav_menu_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/nav_menu_home_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/nav_menu_hot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/nav_menu_hot_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/publish_input_bg.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/push.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/security_row_qq_bg.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/slash_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/tab_unread_bg.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/push.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/push.png
10 changes: 10 additions & 0 deletions res/drawable/i_shade.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >

<gradient
android:angle="90"
android:endColor="@color/gray"
android:centerColor="@color/blue"
android:startColor="@color/gray" />

</shape>
3 changes: 3 additions & 0 deletions res/drawable/slash_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<bitmap android:src="@drawable/slash_line" android:tileMode="repeat"
xmlns:android="http://schemas.android.com/apk/res/android" />
Loading