Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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_vedio
Commits
01fc66c3
Commit
01fc66c3
authored
Aug 10, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
47a250d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
MainFragment.kt
...main/java/com/mints/helivideo/ui/fragment/MainFragment.kt
+1
-0
shape_bg_recommend.xml
video/app/src/main/res/drawable/shape_bg_recommend.xml
+10
-0
activity_recommend.xml
video/app/src/main/res/layout/activity_recommend.xml
+3
-3
No files found.
video/app/src/main/java/com/mints/helivideo/ui/fragment/MainFragment.kt
View file @
01fc66c3
...
...
@@ -388,6 +388,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
val
mainFirstRecommend
=
AppPreferencesManager
.
get
().
getBoolean
(
Constant
.
MAIN_FIRST_RECOMMEND
,
false
)
if
(!
mainFirstRecommend
)
{
// if (mainFirstRecommend) {
AppPreferencesManager
.
get
().
put
(
Constant
.
MAIN_FIRST_RECOMMEND
,
true
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
...
...
video/app/src/main/res/drawable/shape_bg_recommend.xml
0 → 100644
View file @
01fc66c3
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<!-- 填充的颜色 -->
<solid
android:color=
"#f2575b"
/>
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<corners
android:radius=
"10dip"
/>
</shape>
\ No newline at end of file
video/app/src/main/res/layout/activity_recommend.xml
View file @
01fc66c3
...
...
@@ -55,7 +55,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_marginLeft=
"1
4
dp"
android:layout_marginLeft=
"1
2
dp"
android:layout_marginRight=
"10dp"
android:layout_marginBottom=
"35dp"
android:drawableLeft=
"@mipmap/ic_recommend_vedio"
...
...
@@ -95,10 +95,10 @@
<Button
android:id=
"@+id/btn_recommend_next"
android:layout_width=
"2
6
0dp"
android:layout_width=
"2
1
0dp"
android:layout_height=
"50dp"
android:layout_centerInParent=
"true"
android:background=
"@
mipmap/bg_vip_btn
"
android:background=
"@
drawable/shape_bg_recommend
"
android:text=
"立即试看"
android:textColor=
"@color/white"
android:textSize=
"16sp"
/>
...
...
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