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
b5e8da7f
Commit
b5e8da7f
authored
May 31, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化开屏
parent
766bb792
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
33 deletions
+45
-33
SplashGroMoreActivity.java
...m/mints/goodmoney/ui/activitys/SplashGroMoreActivity.java
+20
-27
activity_splash_gromore.xml
...Money/app/src/main/res/layout/activity_splash_gromore.xml
+25
-6
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/SplashGroMoreActivity.java
View file @
b5e8da7f
...
...
@@ -56,6 +56,26 @@ public class SplashGroMoreActivity extends BaseActivity {
private
boolean
onPaused
=
false
;
private
AppPreferences
ps
;
@Override
protected
int
getContentViewLayoutID
()
{
return
R
.
layout
.
activity_splash_gromore
;
}
@Override
protected
void
initViewsAndEvents
()
{
if
(!
isTaskRoot
())
{
//点击Home键后再点击App图标,会回到原来的界面。今天重新打包后,但是在Debug模式下,一切正常,
// 但是把打完包的apk(Release)安装在其他手机上时,回到桌面后点击图标会重新打开启动页
finish
();
return
;
}
TrackManager
.
getInstance
().
getCommonHallBaseMsg
();
TrackManager
.
getInstance
().
firstApiWithUid
();
// 校验APP签名
checkAppSign
();
}
/**
* 加载开屏广告
*/
...
...
@@ -191,33 +211,6 @@ public class SplashGroMoreActivity extends BaseActivity {
}
}
@Override
protected
int
getContentViewLayoutID
()
{
return
R
.
layout
.
activity_splash_gromore
;
}
@Override
protected
void
initViewsAndEvents
()
{
if
(!
isTaskRoot
())
{
//点击Home键后再点击App图标,会回到原来的界面。今天重新打包后,但是在Debug模式下,一切正常,
// 但是把打完包的apk(Release)安装在其他手机上时,回到桌面后点击图标会重新打开启动页
finish
();
return
;
}
TrackManager
.
getInstance
().
getCommonHallBaseMsg
();
TrackManager
.
getInstance
().
firstApiWithUid
();
// 校验APP签名
checkAppSign
();
}
/**
* 校验App签名
*/
...
...
GoodMoney/app/src/main/res/layout/activity_splash_gromore.xml
View file @
b5e8da7f
<
?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android
"
<
RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools
"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#000000"
android:orientation=
"vertical"
>
android:background=
"@android:color/white"
>
<!-- 广点通开屏广告支持“半屏/全屏”展示,开发者可以把Logo区域放在屏幕底部,然后在Logo上方提供一个容器来放置半开屏广告,请注意此容器高度不得小于400dp -->
<!-- 1.Logo区域:展示半开屏广告时使用,如果想展示全开屏广告,可以不需要这个Logo区域 -->
<!-- 注意:如需要这个Logo区域,建议开发者使用自己的Logo资源,而不是联盟的Logo资源@drawable/gdt_splash_logo,资源规格可参照@drawable/gdt_splash_logo -->
<ImageView
android:id=
"@+id/app_logo"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"10dp"
android:src=
"@drawable/splash_bg"
/>
<!-- 2.预设开屏图片区域: -->
<!-- 开发者可以把自家App设计开屏图片摆放在这里,本示例中放置了一张静态图片。!-->
<!-- 注意1:直接将此图放在广告容器的下面即可,始终不要将广告容器splash_container的设为invisible,否则将不会展示广告无法计费,返回错误码600。-->
<!-- 注意2:建议开发者使用自己的开屏图片资源,而不是联盟的@drawable/splash_holder,资源规格可参照@drawable/splash_holder -->
<!-- 3.开屏广告容器区域:-->
<!-- 注意:该区域高度不得小于400dp。在本示例中没有写死splash_container的高度值,是因为第1部分的app_logo区域是一个高度很小的图片。 -->
<FrameLayout
android:id=
"@+id/splash_container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:
background=
"#000000"
></FrameLayout
>
</
Linear
Layout>
android:
layout_above=
"@id/app_logo"
/
>
</
Relative
Layout>
\ 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