Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
location share 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
location share white
Commits
cbb8aa8d
Commit
cbb8aa8d
authored
Oct 31, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
63a52f51
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
147 additions
and
0 deletions
+147
-0
LocationShareUtils.kt
...om/base/locationsharewhite/location/LocationShareUtils.kt
+1
-0
bg_01b787_10.xml
app/src/main/res/drawable/bg_01b787_10.xml
+6
-0
bg_5d7dee_18.xml
app/src/main/res/drawable/bg_5d7dee_18.xml
+5
-0
notification_copy_code.xml
app/src/main/res/layout/notification_copy_code.xml
+60
-0
notification_enable_location.xml
app/src/main/res/layout/notification_enable_location.xml
+33
-0
notification_share_location.xml
app/src/main/res/layout/notification_share_location.xml
+37
-0
gongxiang.png
app/src/main/res/mipmap-xxhdpi/gongxiang.png
+0
-0
lan_shezhi.png
app/src/main/res/mipmap-xxhdpi/lan_shezhi.png
+0
-0
lv_shezhi.png
app/src/main/res/mipmap-xxhdpi/lv_shezhi.png
+0
-0
tu.png
app/src/main/res/mipmap-xxhdpi/tu.png
+0
-0
strings.xml
app/src/main/res/values/strings.xml
+5
-0
No files found.
app/src/main/java/com/base/locationsharewhite/location/LocationShareUtils.kt
View file @
cbb8aa8d
...
...
@@ -49,6 +49,7 @@ object LocationShareUtils {
.
toString
()
val
paramJson
=
AESHelper
.
encrypt
(
body
)
LogEx
.
logDebug
(
TAG
,
"paramJson=$paramJson"
)
runCatching
{
val
result
=
ReportUtils
.
doPost
(
url
,
HashMap
(),
paramJson
)
val
responseData
=
extractData
(
result
)
...
...
app/src/main/res/drawable/bg_01b787_10.xml
0 → 100644
View file @
cbb8aa8d
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#01B787"
/>
<corners
android:radius=
"10dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/bg_5d7dee_18.xml
0 → 100644
View file @
cbb8aa8d
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#5D7DEE"
/>
<corners
android:radius=
"18dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/notification_copy_code.xml
0 → 100644
View file @
cbb8aa8d
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bg_ffffff_10"
android:orientation=
"vertical"
android:paddingVertical=
"20dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"24dp"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:src=
"@mipmap/tu"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/copy_my_code_to_a_friend_to_view_his_her_location"
android:textColor=
"#010101"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Click to view!"
android:textColor=
"#01B787"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_marginHorizontal=
"20dp"
android:layout_marginTop=
"10dp"
android:background=
"@drawable/bg_01b787_10"
android:gravity=
"center"
android:text=
"@string/open"
android:textColor=
"@color/white"
android:textSize=
"16sp"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/notification_enable_location.xml
0 → 100644
View file @
cbb8aa8d
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bg_ffffff_10"
android:paddingVertical=
"20dp"
>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginHorizontal=
"16dp"
android:layout_weight=
"1"
android:text=
"@string/location_sharing_not_enabled_yet"
android:textColor=
"#010101"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginEnd=
"16dp"
android:src=
"@mipmap/gongxiang"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginEnd=
"16dp"
android:src=
"@mipmap/lv_shezhi"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/notification_share_location.xml
0 → 100644
View file @
cbb8aa8d
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bg_ffffff_10"
android:paddingVertical=
"20dp"
>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginHorizontal=
"16dp"
android:layout_weight=
"1"
android:text=
"@string/sharing_location_with_1_people"
android:textColor=
"#010101"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"12dp"
android:background=
"@drawable/bg_5d7dee_18"
android:paddingHorizontal=
"30dp"
android:paddingVertical=
"8dp"
android:text=
"@string/view"
android:textColor=
"@color/white"
android:textSize=
"14sp"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginEnd=
"16dp"
android:src=
"@mipmap/lan_shezhi"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/mipmap-xxhdpi/gongxiang.png
0 → 100644
View file @
cbb8aa8d
3.03 KB
app/src/main/res/mipmap-xxhdpi/lan_shezhi.png
0 → 100644
View file @
cbb8aa8d
2.8 KB
app/src/main/res/mipmap-xxhdpi/lv_shezhi.png
0 → 100644
View file @
cbb8aa8d
2.76 KB
app/src/main/res/mipmap-xxhdpi/tu.png
0 → 100644
View file @
cbb8aa8d
23.9 KB
app/src/main/res/values/strings.xml
View file @
cbb8aa8d
...
...
@@ -60,4 +60,9 @@
<string
name=
"share"
>
Share
</string>
<string
name=
"preparing_advertisement"
>
<![CDATA[Preparing advertisement…]]>
</string>
<string
name=
"enter_friend_nickname"
>
Enter friend nickname
</string>
<string
name=
"view"
>
View
</string>
<string
name=
"sharing_location_with_1_people"
>
Sharing location with 1 people
</string>
<string
name=
"location_sharing_not_enabled_yet"
>
Location sharing not enabled yet
</string>
<string
name=
"copy_my_code_to_a_friend_to_view_his_her_location"
>
Copy my code to a friend to view his/her location!
</string>
<string
name=
"open"
>
Open
</string>
</resources>
\ No newline at end of file
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