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
81dcc985
Commit
81dcc985
authored
Dec 07, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式
parent
a480365e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
14 deletions
+37
-14
build.gradle
video/app/build.gradle
+2
-2
MainActivity.kt
.../java/com/duben/speedplaylet/ui/activitys/MainActivity.kt
+19
-5
item_text_sel3.xml
video/app/src/main/res/color/item_text_sel3.xml
+1
-1
activity_main.xml
video/app/src/main/res/layout/activity_main.xml
+15
-6
ic_enjoy_label2.png
video/app/src/main/res/mipmap-xhdpi/ic_enjoy_label2.png
+0
-0
No files found.
video/app/build.gradle
View file @
81dcc985
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.speedplaylet"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
9
versionName
"1.0.
8
"
versionCode
10
versionName
"1.0.
9
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/speedplaylet/ui/activitys/MainActivity.kt
View file @
81dcc985
...
...
@@ -7,6 +7,7 @@ import android.net.Uri
import
android.os.Bundle
import
android.view.KeyEvent
import
android.view.View
import
android.widget.ImageView
import
android.widget.TextView
import
androidx.core.content.ContextCompat
import
androidx.fragment.app.Fragment
...
...
@@ -36,7 +37,7 @@ class MainActivity : BaseActivity(), View.OnClickListener {
var
tabIvLoan
:
TextView
?
=
null
var
tabIvRecommend
:
TextView
?
=
null
var
tabIvEnjoy
:
Text
View
?
=
null
var
tabIvEnjoy
:
Image
View
?
=
null
var
tabIvMy
:
TextView
?
=
null
private
var
mShowBlack
=
false
...
...
@@ -165,8 +166,12 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
mainFragment
!!
)
tabIvLoan
!!
.
isSelected
=
true
tabIvRecommend
!!
.
isSelected
=
false
tabIvEnjoy
!!
.
isSelected
=
false
//
tabIvEnjoy!!.isSelected = false
tabIvMy
!!
.
isSelected
=
false
tabIvEnjoy
!!
.
scaleX
=
0.9f
tabIvEnjoy
!!
.
scaleY
=
0.9f
changeBottomTabColor
(
false
)
}
...
...
@@ -181,8 +186,11 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
recommendFragment
!!
)
tabIvLoan
!!
.
isSelected
=
false
tabIvRecommend
!!
.
isSelected
=
true
tabIvEnjoy
!!
.
isSelected
=
false
//
tabIvEnjoy!!.isSelected = false
tabIvMy
!!
.
isSelected
=
false
tabIvEnjoy
!!
.
scaleX
=
0.9f
tabIvEnjoy
!!
.
scaleY
=
0.9f
changeBottomTabColor
(
mShowBlack
)
}
...
...
@@ -197,8 +205,11 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
vipEnjoyFragment
!!
)
tabIvLoan
!!
.
isSelected
=
false
tabIvRecommend
!!
.
isSelected
=
false
tabIvEnjoy
!!
.
isSelected
=
true
//
tabIvEnjoy!!.isSelected = true
tabIvMy
!!
.
isSelected
=
false
tabIvEnjoy
!!
.
scaleX
=
1.0f
tabIvEnjoy
!!
.
scaleY
=
1.0f
changeBottomTabColor
(
false
)
}
...
...
@@ -213,8 +224,11 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
myFragment
!!
)
tabIvLoan
!!
.
isSelected
=
false
tabIvRecommend
!!
.
isSelected
=
false
tabIvEnjoy
!!
.
isSelected
=
false
//
tabIvEnjoy!!.isSelected = false
tabIvMy
!!
.
isSelected
=
true
tabIvEnjoy
!!
.
scaleX
=
0.9f
tabIvEnjoy
!!
.
scaleY
=
0.9f
changeBottomTabColor
(
false
)
}
...
...
video/app/src/main/res/color/item_text_sel3.xml
View file @
81dcc985
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:color=
"#EEAD0E"
android:state_selected=
"true"
/>
<item
android:color=
"@color/
graya
"
android:state_selected=
"false"
/>
<item
android:color=
"@color/
color_F61F03
"
android:state_selected=
"false"
/>
</selector>
\ No newline at end of file
video/app/src/main/res/layout/activity_main.xml
View file @
81dcc985
...
...
@@ -71,16 +71,25 @@
android:layout_weight=
"1.0"
android:gravity=
"center"
android:orientation=
"vertical"
android:visibility=
"gone"
>
android:paddingBottom=
"4dp"
android:visibility=
"visible"
>
<
Text
View
<
Image
View
android:id=
"@+id/tab_iv_enjoy"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"尊享"
android:textColor=
"@color/item_text_sel3"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
android:scaleX=
"0.9"
android:scaleY=
"0.9"
android:src=
"@mipmap/ic_enjoy_label2"
/>
<!-- <TextView-->
<!-- android:id="@+id/tab_iv_enjoy"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="尊享"-->
<!-- android:textColor="@color/item_text_sel3"-->
<!-- android:textSize="20sp"-->
<!-- android:textStyle="bold" />-->
</LinearLayout>
<LinearLayout
...
...
video/app/src/main/res/mipmap-xhdpi/ic_enjoy_label2.png
0 → 100644
View file @
81dcc985
6.09 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