Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
b17d6bea
Commit
b17d6bea
authored
Jan 06, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8073e9ba
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
13 deletions
+13
-13
AndroidManifest.xml
GoodMoney/app/src/main/AndroidManifest.xml
+1
-1
InitAppService.kt
...y/app/src/main/java/com/mints/goodmoney/InitAppService.kt
+1
-1
NotifyManager.java
.../main/java/com/mints/goodmoney/manager/NotifyManager.java
+2
-2
UpdateService.java
.../main/java/com/mints/goodmoney/service/UpdateService.java
+2
-2
activity_aboutus.xml
GoodMoney/app/src/main/res/layout/activity_aboutus.xml
+1
-1
activity_bind_mobile.xml
GoodMoney/app/src/main/res/layout/activity_bind_mobile.xml
+1
-1
activity_kyl_vedio.xml
GoodMoney/app/src/main/res/layout/activity_kyl_vedio.xml
+1
-1
activity_splash.xml
GoodMoney/app/src/main/res/layout/activity_splash.xml
+1
-1
activity_wx_login.xml
GoodMoney/app/src/main/res/layout/activity_wx_login.xml
+1
-1
activity_xmly_play.xml
GoodMoney/app/src/main/res/layout/activity_xmly_play.xml
+1
-1
remoteview.xml
GoodMoney/app/src/main/res/layout/remoteview.xml
+1
-1
ic_launcher_main.png
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_launcher_main.png
+0
-0
ic_launcher_main.png
...Money/app/src/main/res/mipmap-xxhdpi/ic_launcher_main.png
+0
-0
No files found.
GoodMoney/app/src/main/AndroidManifest.xml
View file @
b17d6bea
...
...
@@ -45,7 +45,7 @@
<application
android:name=
".MintsApplication"
android:allowBackup=
"true"
android:icon=
"@mipmap/ic_launcher"
android:icon=
"@mipmap/ic_launcher
_main
"
android:label=
"@string/app_name"
android:largeHeap=
"true"
android:networkSecurityConfig=
"@xml/network_security_config"
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/InitAppService.kt
View file @
b17d6bea
...
...
@@ -68,7 +68,7 @@ class InitAppService : IntentService("InitializeService") {
JPushInterface
.
setDebugMode
(
BuildConfig
.
LOG_DEBUG
)
// 设置开启日志,发布时请关闭日志
JPushInterface
.
init
(
this
)
val
builder
=
BasicPushNotificationBuilder
(
applicationContext
)
builder
.
statusBarDrawable
=
R
.
mipmap
.
ic_launcher
builder
.
statusBarDrawable
=
R
.
mipmap
.
ic_launcher
_main
builder
.
notificationFlags
=
Notification
.
FLAG_AUTO_CANCEL
//设置为自动消失
builder
.
notificationDefaults
=
Notification
.
DEFAULT_SOUND
or
Notification
.
DEFAULT_VIBRATE
or
Notification
.
DEFAULT_LIGHTS
// 设置为铃声与震动都要
JPushInterface
.
setDefaultPushNotificationBuilder
(
builder
)
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/NotifyManager.java
View file @
b17d6bea
...
...
@@ -65,7 +65,7 @@ public class NotifyManager {
.
setContentTitle
(
""
)
.
setContentText
(
""
)
.
setWhen
(
System
.
currentTimeMillis
())
.
setSmallIcon
(
R
.
mipmap
.
ic_launcher
)
.
setSmallIcon
(
R
.
mipmap
.
ic_launcher
_main
)
.
setContent
(
getRemoteViews
(
water
,
step
))
.
setVibrate
(
new
long
[]{
0
})
.
build
();
...
...
@@ -98,7 +98,7 @@ public class NotifyManager {
// PendingIntent waterPendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, WaterActivity.class), PendingIntent.FLAG_UPDATE_CURRENT);
remoteViews
=
new
RemoteViews
(
activity
.
getPackageName
(),
R
.
layout
.
remoteview
);
// remoteViews.setTextViewText(R.id.notify_step, "今日步数 " + step + " 步");
remoteViews
.
setImageViewResource
(
R
.
id
.
icon
,
R
.
mipmap
.
ic_launcher
);
remoteViews
.
setImageViewResource
(
R
.
id
.
icon
,
R
.
mipmap
.
ic_launcher
_main
);
remoteViews
.
setOnClickPendingIntent
(
R
.
id
.
notify_root
,
mainPendingIntent
);
// remoteViews.setOnClickPendingIntent(R.id.notify_drink, waterPendingIntent);
return
remoteViews
;
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/service/UpdateService.java
View file @
b17d6bea
...
...
@@ -108,10 +108,10 @@ public class UpdateService extends Service {
.
setDefaults
(
Notification
.
FLAG_FOREGROUND_SERVICE
)
// 向通知添加声音、闪灯和振动效果的最简单、最一致的方式是使用当前的用户默认设置,使用defaults属性,可以组合:
// Notification.DEFAULT_ALL Notification.DEFAULT_SOUND 添加声音 //
// requires VIBRATE permission
.
setSmallIcon
(
R
.
mipmap
.
ic_launcher
);
.
setSmallIcon
(
R
.
mipmap
.
ic_launcher
_main
);
contentView
=
new
RemoteViews
(
getPackageName
(),
R
.
layout
.
notification_item
);
contentView
.
setImageViewResource
(
R
.
id
.
image
,
R
.
mipmap
.
ic_launcher
);
contentView
.
setImageViewResource
(
R
.
id
.
image
,
R
.
mipmap
.
ic_launcher
_main
);
contentView
.
setTextViewText
(
R
.
id
.
notificationTitle
,
"正在下载"
);
contentView
.
setTextViewText
(
R
.
id
.
notificationPercent
,
"0%"
);
contentView
.
setProgressBar
(
R
.
id
.
notificationProgress
,
100
,
0
,
false
);
...
...
GoodMoney/app/src/main/res/layout/activity_aboutus.xml
View file @
b17d6bea
...
...
@@ -34,7 +34,7 @@
android:layout_width=
"80dp"
android:layout_height=
"80dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/ic_launcher"
/>
android:src=
"@mipmap/ic_launcher
_main
"
/>
<RelativeLayout
android:layout_width=
"match_parent"
...
...
GoodMoney/app/src/main/res/layout/activity_bind_mobile.xml
View file @
b17d6bea
...
...
@@ -22,7 +22,7 @@
android:layout_height=
"70dp"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"50dp"
android:src=
"@mipmap/ic_launcher"
/>
android:src=
"@mipmap/ic_launcher
_main
"
/>
<LinearLayout
...
...
GoodMoney/app/src/main/res/layout/activity_kyl_vedio.xml
View file @
b17d6bea
...
...
@@ -27,7 +27,7 @@
android:layout_height=
"wrap_content"
android:layout_marginRight=
"20dp"
android:layout_marginBottom=
"100dp"
android:src=
"@mipmap/ic_launcher"
android:src=
"@mipmap/ic_launcher
_main
"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
/>
...
...
GoodMoney/app/src/main/res/layout/activity_splash.xml
View file @
b17d6bea
...
...
@@ -11,7 +11,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"30dp"
android:drawableTop=
"@mipmap/ic_launcher"
android:drawableTop=
"@mipmap/ic_launcher
_main
"
android:drawablePadding=
"14dp"
android:text=
"好赚钱—边看边玩边赚钱"
android:textColor=
"@color/black"
...
...
GoodMoney/app/src/main/res/layout/activity_wx_login.xml
View file @
b17d6bea
...
...
@@ -25,7 +25,7 @@
android:layout_height=
"70dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"50dp"
android:src=
"@mipmap/ic_launcher"
/>
android:src=
"@mipmap/ic_launcher
_main
"
/>
<LinearLayout
android:layout_width=
"match_parent"
...
...
GoodMoney/app/src/main/res/layout/activity_xmly_play.xml
View file @
b17d6bea
...
...
@@ -22,7 +22,7 @@
android:layout_height=
"110dp"
android:layout_alignParentStart=
"true"
android:scaleType=
"fitCenter"
android:src=
"@mipmap/ic_launcher"
/>
android:src=
"@mipmap/ic_launcher
_main
"
/>
<TextView
android:id=
"@+id/message"
...
...
GoodMoney/app/src/main/res/layout/remoteview.xml
View file @
b17d6bea
...
...
@@ -12,7 +12,7 @@
android:layout_height=
"40dp"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"10dp"
android:src=
"@mipmap/ic_launcher"
/>
android:src=
"@mipmap/ic_launcher
_main
"
/>
<LinearLayout
android:id=
"@+id/notify_title_root"
...
...
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_launcher.png
→
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_launcher
_main
.png
View file @
b17d6bea
File moved
GoodMoney/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
→
GoodMoney/app/src/main/res/mipmap-xxhdpi/ic_launcher
_main
.png
View file @
b17d6bea
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment