Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
B
Browser White
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Browser White
Commits
c7b64cf6
Commit
c7b64cf6
authored
Sep 04, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
1b533843
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
3 deletions
+45
-3
NotificationUtil.kt
...c/main/java/com/base/browserwhite/fcm/NotificationUtil.kt
+2
-3
notification_weather_small.xml
app/src/main/res/layout/notification_weather_small.xml
+43
-0
x_tianqibg.png
app/src/main/res/mipmap-xxhdpi/x_tianqibg.png
+0
-0
No files found.
app/src/main/java/com/base/browserwhite/fcm/NotificationUtil.kt
View file @
c7b64cf6
...
@@ -30,7 +30,6 @@ import com.base.browserwhite.ui.activity.splash.Splash2Activity
...
@@ -30,7 +30,6 @@ import com.base.browserwhite.ui.activity.splash.Splash2Activity
import
com.base.browserwhite.utils.AppPreferences
import
com.base.browserwhite.utils.AppPreferences
import
com.base.browserwhite.utils.ImageUtils.getBitmapFromURL
import
com.base.browserwhite.utils.ImageUtils.getBitmapFromURL
import
com.base.browserwhite.utils.KotlinExt.toFormatSize
import
com.base.browserwhite.utils.KotlinExt.toFormatSize
import
com.base.browserwhite.utils.RamUtils
import
com.base.browserwhite.utils.RamUtils.ramPair
import
com.base.browserwhite.utils.RamUtils.ramPair
import
java.text.SimpleDateFormat
import
java.text.SimpleDateFormat
import
java.util.Calendar
import
java.util.Calendar
...
@@ -115,8 +114,8 @@ object NotificationUtil {
...
@@ -115,8 +114,8 @@ object NotificationUtil {
sendNotificationUI
(
context
,
actionId
,
bigRemoteViews
,
smallRemoteViews
)
sendNotificationUI
(
context
,
actionId
,
bigRemoteViews
,
smallRemoteViews
)
}
}
ID_WEATHER
->
{
ID_WEATHER
->
{
//天气
val
smallRemoteViews
=
RemoteViews
(
context
.
packageName
,
R
.
layout
.
notification_weather_small
)
}
}
else
->
{
else
->
{
...
...
app/src/main/res/layout/notification_weather_small.xml
0 → 100644
View file @
c7b64cf6
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:background=
"@drawable/bg_ffffff_15"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_margin=
"5dp"
android:background=
"@mipmap/x_tianqibg"
tools:ignore=
"ContentDescription"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_wendu_now"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_gravity=
"center"
android:layout_marginStart=
"20dp"
android:textColor=
"@color/white"
android:textSize=
"30sp"
tools:text=
"20"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignTop=
"@id/tv_wendu_now"
android:layout_toEndOf=
"@id/tv_wendu_now"
android:text=
"℃"
android:textColor=
"@color/white"
tools:ignore=
"HardcodedText"
/>
</RelativeLayout>
</FrameLayout>
\ No newline at end of file
app/src/main/res/mipmap-xxhdpi/x_tianqibg.png
0 → 100644
View file @
c7b64cf6
154 KB
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