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
a828d202
Commit
a828d202
authored
Sep 07, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页开发
parent
be2fc814
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
205 additions
and
189 deletions
+205
-189
Constant.kt
.../app/src/main/java/com/mints/helivideo/common/Constant.kt
+1
-3
MainActivity.kt
...ain/java/com/mints/helivideo/ui/activitys/MainActivity.kt
+60
-130
FollowVideoFragment.kt
...va/com/mints/helivideo/ui/fragment/FollowVideoFragment.kt
+4
-4
MusicFragment.kt
...ain/java/com/mints/helivideo/ui/fragment/MusicFragment.kt
+13
-0
MyFragment.kt
...c/main/java/com/mints/helivideo/ui/fragment/MyFragment.kt
+1
-1
RecommendFragment.kt
...java/com/mints/helivideo/ui/fragment/RecommendFragment.kt
+3
-3
RedpkgFragment.kt
...in/java/com/mints/helivideo/ui/fragment/RedpkgFragment.kt
+13
-0
item_txt_sel.xml
video/app/src/main/res/drawable/item_txt_sel.xml
+8
-0
tab_main_btn.xml
video/app/src/main/res/drawable/tab_main_btn.xml
+7
-0
tab_music_btn.xml
video/app/src/main/res/drawable/tab_music_btn.xml
+7
-0
tab_my_btn.xml
video/app/src/main/res/drawable/tab_my_btn.xml
+7
-0
tab_redpkg_btn.xml
video/app/src/main/res/drawable/tab_redpkg_btn.xml
+7
-0
activity_main.xml
video/app/src/main/res/layout/activity_main.xml
+55
-48
fragment_music.xml
video/app/src/main/res/layout/fragment_music.xml
+7
-0
fragment_redpkg.xml
video/app/src/main/res/layout/fragment_redpkg.xml
+7
-0
ic_my_enable.png
video/app/src/main/res/mipmap-xhdpi/ic_my_enable.png
+0
-0
ic_my_none.png
video/app/src/main/res/mipmap-xhdpi/ic_my_none.png
+0
-0
strings.xml
video/app/src/main/res/values/strings.xml
+5
-0
No files found.
video/app/src/main/java/com/mints/helivideo/common/Constant.kt
View file @
a828d202
...
@@ -38,12 +38,10 @@ object Constant {
...
@@ -38,12 +38,10 @@ object Constant {
const
val
CARRIERTYPE_DRAW_EXPRESS
=
"4"
const
val
CARRIERTYPE_DRAW_EXPRESS
=
"4"
/**
* app应用首页 0-主页 1-中间 2-我
*/
const
val
FRAGMENT_CLICK_ONE
=
0
const
val
FRAGMENT_CLICK_ONE
=
0
const
val
FRAGMENT_CLICK_TWO
=
1
const
val
FRAGMENT_CLICK_TWO
=
1
const
val
FRAGMENT_CLICK_THREE
=
2
const
val
FRAGMENT_CLICK_THREE
=
2
const
val
FRAGMENT_CLICK_FOUR
=
3
// 协议地址
// 协议地址
var
REGISTER_URL
=
"http://mints-web.mints-id.com/agreements/helivideo/yhxy.html"
//注册协议
var
REGISTER_URL
=
"http://mints-web.mints-id.com/agreements/helivideo/yhxy.html"
//注册协议
...
...
video/app/src/main/java/com/mints/helivideo/ui/activitys/MainActivity.kt
View file @
a828d202
package
com.mints.helivideo.ui.activitys
package
com.mints.helivideo.ui.activitys
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.media.AudioManager
import
android.media.AudioManager
import
android.net.Uri
import
android.os.Bundle
import
android.os.Bundle
import
android.view.KeyEvent
import
android.view.KeyEvent
import
android.view.View
import
android.view.View
import
android.widget.TextView
import
androidx.core.content.ContextCompat
import
androidx.fragment.app.Fragment
import
androidx.fragment.app.Fragment
import
androidx.fragment.app.FragmentTransaction
import
androidx.fragment.app.FragmentTransaction
import
com.mints.helivideo.MintsApplication
import
com.mints.helivideo.MintsApplication
...
@@ -16,35 +12,25 @@ import com.mints.helivideo.R
...
@@ -16,35 +12,25 @@ import com.mints.helivideo.R
import
com.mints.helivideo.common.AppConfig
import
com.mints.helivideo.common.AppConfig
import
com.mints.helivideo.common.Constant
import
com.mints.helivideo.common.Constant
import
com.mints.helivideo.ui.activitys.base.BaseActivity
import
com.mints.helivideo.ui.activitys.base.BaseActivity
import
com.mints.helivideo.ui.fragment.MainFragment
import
com.mints.helivideo.ui.fragment.*
import
com.mints.helivideo.ui.fragment.MyFragment
import
com.mints.helivideo.ui.fragment.RecommendFragment
import
com.mints.helivideo.ui.widgets.DialogListener
import
com.mints.helivideo.ui.widgets.PhoneDialog
import
com.mints.helivideo.video.csj.DPHolderManager
import
com.mints.helivideo.video.csj.DPHolderManager
import
kotlinx.android.synthetic.main.activity_main.*
import
kotlinx.android.synthetic.main.activity_main.*
/**
/**
* 描述:首页
* 描述:首页
* 作者:孟崔广
* 作者:孟崔广
* 时间:202
2/12/24 18
:06
* 时间:202
3/9/7 14
:06
*/
*/
class
MainActivity
:
BaseActivity
(),
View
.
OnClickListener
{
class
MainActivity
:
BaseActivity
(),
View
.
OnClickListener
{
private
var
audioManager
:
AudioManager
?
=
null
private
var
audioManager
:
AudioManager
?
=
null
var
tabIvLoan
:
TextView
?
=
null
var
tabIvRecommend
:
TextView
?
=
null
var
tabIvMy
:
TextView
?
=
null
private
var
mShowBlack
=
false
// 底部标签切换的Fragment
// 底部标签切换的Fragment
private
var
mainFragment
:
Fragment
?
=
null
private
var
mainFragment
:
Fragment
?
=
null
private
var
recommendFragment
:
Fragment
?
=
null
private
var
musicFragment
:
Fragment
?
=
null
private
var
redpkgFragment
:
Fragment
?
=
null
private
var
myFragment
:
Fragment
?
=
null
private
var
myFragment
:
Fragment
?
=
null
private
var
currentFragment
:
Fragment
?
=
null
private
var
currentFragment
:
Fragment
?
=
null
private
var
phoneDialog
:
PhoneDialog
?
=
null
override
fun
getContentViewLayoutID
():
Int
{
override
fun
getContentViewLayoutID
():
Int
{
return
R
.
layout
.
activity_main
return
R
.
layout
.
activity_main
...
@@ -55,12 +41,12 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -55,12 +41,12 @@ class MainActivity : BaseActivity(), View.OnClickListener {
audioManager
=
getSystemService
(
Context
.
AUDIO_SERVICE
)
as
AudioManager
audioManager
=
getSystemService
(
Context
.
AUDIO_SERVICE
)
as
AudioManager
tab
IvLoan
=
findViewById
(
R
.
id
.
tab_iv_loan
)
tab
_rl_main
.
setOnClickListener
(
this
)
tab
IvRecommend
=
findViewById
(
R
.
id
.
tab_iv_recommend
)
tab
_rl_music
.
setOnClickListener
(
this
)
tab
IvMy
=
findViewById
(
R
.
id
.
tab_iv_my
)
tab
_rl_redpkg
.
setOnClickListener
(
this
)
findViewById
<
View
>(
R
.
id
.
tab_rl_loan
)
.
setOnClickListener
(
this
)
tab_rl_my
.
setOnClickListener
(
this
)
findViewById
<
View
>(
R
.
id
.
tab_rl_recommend
).
setOnClickListener
(
this
)
tab_iv_main
.
isSelected
=
true
findViewById
<
View
>(
R
.
id
.
tab_rl_my
).
setOnClickListener
(
this
)
tab_tv_main
.
isSelected
=
true
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_ONE
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_ONE
if
(
mainFragment
==
null
)
{
if
(
mainFragment
==
null
)
{
mainFragment
=
MainFragment
()
mainFragment
=
MainFragment
()
...
@@ -73,12 +59,6 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -73,12 +59,6 @@ class MainActivity : BaseActivity(), View.OnClickListener {
// 记录当前Fragment
// 记录当前Fragment
currentFragment
=
mainFragment
currentFragment
=
mainFragment
}
}
if
(
tabIvLoan
!=
null
)
{
tabIvLoan
!!
.
isSelected
=
true
}
initEditView
()
}
}
...
@@ -133,9 +113,10 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -133,9 +113,10 @@ class MainActivity : BaseActivity(), View.OnClickListener {
override
fun
onClick
(
view
:
View
)
{
override
fun
onClick
(
view
:
View
)
{
when
(
view
.
id
)
{
when
(
view
.
id
)
{
R
.
id
.
tab_rl_loan
->
clickTab1Layout
()
R
.
id
.
tab_rl_main
->
clickTab1Layout
()
R
.
id
.
tab_rl_recommend
->
clickTab2Layout
()
R
.
id
.
tab_rl_music
->
clickTab2Layout
()
R
.
id
.
tab_rl_my
->
clickTab3Layout
()
R
.
id
.
tab_rl_redpkg
->
clickTab3Layout
()
R
.
id
.
tab_rl_my
->
clickTab4Layout
()
}
}
}
}
...
@@ -148,10 +129,14 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -148,10 +129,14 @@ class MainActivity : BaseActivity(), View.OnClickListener {
mainFragment
=
MainFragment
()
mainFragment
=
MainFragment
()
}
}
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
mainFragment
!!
)
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
mainFragment
!!
)
tabIvLoan
!!
.
isSelected
=
true
tab_iv_main
.
isSelected
=
true
tabIvRecommend
!!
.
isSelected
=
false
tab_tv_main
.
isSelected
=
true
tabIvMy
!!
.
isSelected
=
false
tab_iv_music
.
isSelected
=
false
changeBottomTabColor
(
false
)
tab_tv_music
.
isSelected
=
false
tab_iv_redpkg
.
isSelected
=
false
tab_tv_redpkg
.
isSelected
=
false
tab_iv_my
.
isSelected
=
false
tab_tv_my
.
isSelected
=
false
}
}
/**
/**
...
@@ -159,14 +144,18 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -159,14 +144,18 @@ class MainActivity : BaseActivity(), View.OnClickListener {
*/
*/
fun
clickTab2Layout
()
{
fun
clickTab2Layout
()
{
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_TWO
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_TWO
if
(
recommend
Fragment
==
null
)
{
if
(
music
Fragment
==
null
)
{
recommendFragment
=
Recommend
Fragment
()
musicFragment
=
Music
Fragment
()
}
}
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
recommendFragment
!!
)
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
musicFragment
!!
)
tabIvLoan
!!
.
isSelected
=
false
tab_iv_main
.
isSelected
=
false
tabIvRecommend
!!
.
isSelected
=
true
tab_tv_main
.
isSelected
=
false
tabIvMy
!!
.
isSelected
=
false
tab_iv_music
.
isSelected
=
true
changeBottomTabColor
(
mShowBlack
)
tab_tv_music
.
isSelected
=
true
tab_iv_redpkg
.
isSelected
=
false
tab_tv_redpkg
.
isSelected
=
false
tab_iv_my
.
isSelected
=
false
tab_tv_my
.
isSelected
=
false
}
}
/**
/**
...
@@ -174,14 +163,37 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -174,14 +163,37 @@ class MainActivity : BaseActivity(), View.OnClickListener {
*/
*/
fun
clickTab3Layout
()
{
fun
clickTab3Layout
()
{
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_THREE
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_THREE
if
(
redpkgFragment
==
null
)
{
redpkgFragment
=
RedpkgFragment
()
}
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
redpkgFragment
!!
)
tab_iv_main
.
isSelected
=
false
tab_tv_main
.
isSelected
=
false
tab_iv_music
.
isSelected
=
false
tab_tv_music
.
isSelected
=
false
tab_iv_redpkg
.
isSelected
=
true
tab_tv_redpkg
.
isSelected
=
true
tab_iv_my
.
isSelected
=
false
tab_tv_my
.
isSelected
=
false
}
/**
* 点击第三个tab
*/
fun
clickTab4Layout
()
{
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_FOUR
if
(
myFragment
==
null
)
{
if
(
myFragment
==
null
)
{
myFragment
=
MyFragment
()
myFragment
=
MyFragment
()
}
}
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
myFragment
!!
)
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
myFragment
!!
)
tabIvLoan
!!
.
isSelected
=
false
tab_iv_main
.
isSelected
=
false
tabIvRecommend
!!
.
isSelected
=
false
tab_tv_main
.
isSelected
=
false
tabIvMy
!!
.
isSelected
=
true
tab_iv_music
.
isSelected
=
false
changeBottomTabColor
(
false
)
tab_tv_music
.
isSelected
=
false
tab_iv_redpkg
.
isSelected
=
false
tab_tv_redpkg
.
isSelected
=
false
tab_iv_my
.
isSelected
=
true
tab_tv_my
.
isSelected
=
true
}
}
...
@@ -204,86 +216,4 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -204,86 +216,4 @@ class MainActivity : BaseActivity(), View.OnClickListener {
}
}
currentFragment
=
fragment
currentFragment
=
fragment
}
}
fun
backPhoneDialog
()
{
phoneDialog
=
PhoneDialog
(
context
,
object
:
DialogListener
()
{
override
fun
onClick
(
v
:
View
)
{
if
(!
isFinishing
()
&&
phoneDialog
!=
null
&&
phoneDialog
!!
.
isShowing
())
{
phoneDialog
!!
.
dismiss
()
}
when
(
v
.
id
)
{
R
.
id
.
tv_phone_dialog_phone
,
R
.
id
.
tv_phone_dialog_phone2
->
{
val
intent
=
Intent
(
Intent
.
ACTION_DIAL
)
intent
.
data
=
Uri
.
parse
(
"tel:"
+
"4000969950"
)
context
.
startActivity
(
intent
)
}
}
}
})
phoneDialog
!!
.
show
()
}
private
fun
initEditView
()
{
tv_full
.
setOnClickListener
{
recommendFragment
?.
apply
{
(
this
as
RecommendFragment
).
fullChoice
()
}
}
tv_delete
.
setOnClickListener
{
recommendFragment
?.
apply
{
(
this
as
RecommendFragment
).
delete
()
}
}
}
fun
changeRecommendTab
(
index
:
Int
)
{
recommendFragment
?.
apply
{
(
this
as
RecommendFragment
).
changeTab
(
index
)
}
}
fun
showEditView
(
show
:
Boolean
)
{
recommendFragment
?.
let
{
(
it
as
RecommendFragment
).
showEditView
(
show
)
}
}
fun
hideEditView
(
show
:
Boolean
)
{
recommendFragment
?.
let
{
(
it
as
RecommendFragment
).
hideEditView
(
show
)
}
}
fun
showEdit
(
isEdit
:
Boolean
)
{
if
(
isEdit
)
{
ll_edit
.
visibility
=
View
.
VISIBLE
}
else
{
ll_edit
.
visibility
=
View
.
GONE
}
}
fun
showBlack
(
showBlack
:
Boolean
)
{
this
.
mShowBlack
=
showBlack
changeBottomTabColor
(
showBlack
)
}
private
fun
changeBottomTabColor
(
showBlack
:
Boolean
)
{
if
(
showBlack
)
{
tabIvRecommend
?.
setTextColor
(
ContextCompat
.
getColorStateList
(
context
,
R
.
color
.
item_text_sel2
)
)
ll_bottom_tab
.
background
=
ContextCompat
.
getDrawable
(
context
,
R
.
color
.
black
)
}
else
{
tabIvRecommend
?.
setTextColor
(
ContextCompat
.
getColorStateList
(
context
,
R
.
color
.
item_text_sel
)
)
ll_bottom_tab
.
background
=
ContextCompat
.
getDrawable
(
context
,
R
.
color
.
white
)
}
}
}
}
\ No newline at end of file
video/app/src/main/java/com/mints/helivideo/ui/fragment/FollowVideoFragment.kt
View file @
a828d202
...
@@ -55,7 +55,7 @@ class FollowVideoFragment : BaseFragment(), FollowView {
...
@@ -55,7 +55,7 @@ class FollowVideoFragment : BaseFragment(), FollowView {
LayoutInflater
.
from
(
requireContext
()).
inflate
(
R
.
layout
.
item_follow_empty
,
null
)
LayoutInflater
.
from
(
requireContext
()).
inflate
(
R
.
layout
.
item_follow_empty
,
null
)
emptyView
.
findViewById
<
View
>(
R
.
id
.
btn
).
setOnClickListener
{
emptyView
.
findViewById
<
View
>(
R
.
id
.
btn
).
setOnClickListener
{
// 去剧场
// 去剧场
(
requireActivity
()
as
MainActivity
).
changeRecommendTab
(
1
)
//
(requireActivity() as MainActivity).changeRecommendTab(1)
}
}
rv_follow
.
layoutManager
=
GridLayoutManager
(
requireContext
(),
3
)
rv_follow
.
layoutManager
=
GridLayoutManager
(
requireContext
(),
3
)
followAdapter
=
FollowAdapter
(
requireActivity
())
followAdapter
=
FollowAdapter
(
requireActivity
())
...
@@ -87,11 +87,11 @@ class FollowVideoFragment : BaseFragment(), FollowView {
...
@@ -87,11 +87,11 @@ class FollowVideoFragment : BaseFragment(), FollowView {
}
}
private
fun
showEditView
(
show
:
Boolean
)
{
private
fun
showEditView
(
show
:
Boolean
)
{
(
requireActivity
()
as
MainActivity
).
showEditView
(
show
)
//
(requireActivity() as MainActivity).showEditView(show)
}
}
private
fun
hideEditView
(
hide
:
Boolean
)
{
private
fun
hideEditView
(
hide
:
Boolean
)
{
(
requireActivity
()
as
MainActivity
).
hideEditView
(
hide
)
//
(requireActivity() as MainActivity).hideEditView(hide)
}
}
override
fun
getCollectListSuc
(
bannerList
:
BannerList
)
{
override
fun
getCollectListSuc
(
bannerList
:
BannerList
)
{
...
@@ -112,7 +112,7 @@ class FollowVideoFragment : BaseFragment(), FollowView {
...
@@ -112,7 +112,7 @@ class FollowVideoFragment : BaseFragment(), FollowView {
override
fun
cancelCollectSuc
()
{
override
fun
cancelCollectSuc
()
{
followPresenter
.
getCollectList
()
followPresenter
.
getCollectList
()
(
requireActivity
()
as
MainActivity
).
showEditView
(
true
)
//
(requireActivity() as MainActivity).showEditView(true)
}
}
override
fun
cancelCollectFail
()
{
override
fun
cancelCollectFail
()
{
...
...
video/app/src/main/java/com/mints/helivideo/ui/fragment/MusicFragment.kt
0 → 100644
View file @
a828d202
package
com.mints.helivideo.ui.fragment
import
com.mints.helivideo.R
import
com.mints.helivideo.ui.fragment.base.LazyLoadBaseFragment
class
MusicFragment
:
LazyLoadBaseFragment
()
{
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
fragment_music
override
fun
initViewsAndEvents
()
{
}
}
\ No newline at end of file
video/app/src/main/java/com/mints/helivideo/ui/fragment/MyFragment.kt
View file @
a828d202
...
@@ -86,7 +86,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
...
@@ -86,7 +86,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
override
fun
onFragmentResume
()
{
override
fun
onFragmentResume
()
{
super
.
onFragmentResume
()
super
.
onFragmentResume
()
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_
THREE
)
{
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_
FOUR
)
{
if
(
AntiShake
.
check
(
ll_my_record
?.
id
))
return
if
(
AntiShake
.
check
(
ll_my_record
?.
id
))
return
if
(
userManager
.
vipFlag
){
if
(
userManager
.
vipFlag
){
...
...
video/app/src/main/java/com/mints/helivideo/ui/fragment/RecommendFragment.kt
View file @
a828d202
...
@@ -178,13 +178,13 @@ class RecommendFragment : BaseFragment(), View.OnClickListener {
...
@@ -178,13 +178,13 @@ class RecommendFragment : BaseFragment(), View.OnClickListener {
tab_recommend
.
visibility
=
View
.
VISIBLE
tab_recommend
.
visibility
=
View
.
VISIBLE
tv_edit_text
.
visibility
=
View
.
GONE
tv_edit_text
.
visibility
=
View
.
GONE
}
}
(
requireActivity
()
as
MainActivity
).
showEdit
(
isEdit
)
//
(requireActivity() as MainActivity).showEdit(isEdit)
(
fragments
[
0
]
as
FollowVideoFragment
).
getAdapter
()
?.
setEditStyle
(
isEdit
)
(
fragments
[
0
]
as
FollowVideoFragment
).
getAdapter
()
?.
setEditStyle
(
isEdit
)
}
}
private
fun
changeBottomTabColor
(
showBlack
:
Boolean
)
{
private
fun
changeBottomTabColor
(
showBlack
:
Boolean
)
{
(
requireActivity
()
as
MainActivity
).
showBlack
(
showBlack
)
//
(requireActivity() as MainActivity).showBlack(showBlack)
(
requireActivity
()
as
MainActivity
).
statusBarDark
(!
showBlack
)
//
(requireActivity() as MainActivity).statusBarDark(!showBlack)
}
}
fun
showEditView
(
show
:
Boolean
)
{
fun
showEditView
(
show
:
Boolean
)
{
...
...
video/app/src/main/java/com/mints/helivideo/ui/fragment/RedpkgFragment.kt
0 → 100644
View file @
a828d202
package
com.mints.helivideo.ui.fragment
import
com.mints.helivideo.R
import
com.mints.helivideo.ui.fragment.base.LazyLoadBaseFragment
class
RedpkgFragment
:
LazyLoadBaseFragment
()
{
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
fragment_redpkg
override
fun
initViewsAndEvents
()
{
}
}
\ No newline at end of file
video/app/src/main/res/drawable/item_txt_sel.xml
0 → 100755
View file @
a828d202
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<!-- Non focused states -->
<item
android:color=
"@color/main_mints"
android:state_selected=
"true"
/>
<item
android:color=
"@color/black"
android:state_selected=
"false"
/>
</selector>
\ No newline at end of file
video/app/src/main/res/drawable/tab_main_btn.xml
0 → 100755
View file @
a828d202
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@mipmap/ic_my_enable"
android:state_selected=
"true"
/>
<item
android:drawable=
"@mipmap/ic_my_none"
/>
</selector>
\ No newline at end of file
video/app/src/main/res/drawable/tab_music_btn.xml
0 → 100755
View file @
a828d202
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@mipmap/ic_my_enable"
android:state_selected=
"true"
/>
<item
android:drawable=
"@mipmap/ic_my_none"
/>
</selector>
\ No newline at end of file
video/app/src/main/res/drawable/tab_my_btn.xml
0 → 100755
View file @
a828d202
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@mipmap/ic_my_enable"
android:state_selected=
"true"
/>
<item
android:drawable=
"@mipmap/ic_my_none"
/>
</selector>
\ No newline at end of file
video/app/src/main/res/drawable/tab_redpkg_btn.xml
0 → 100755
View file @
a828d202
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@mipmap/ic_my_enable"
android:state_selected=
"true"
/>
<item
android:drawable=
"@mipmap/ic_my_none"
/>
</selector>
\ No newline at end of file
video/app/src/main/res/layout/activity_main.xml
View file @
a828d202
...
@@ -8,110 +8,117 @@
...
@@ -8,110 +8,117 @@
android:id=
"@+id/content_layout"
android:id=
"@+id/content_layout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginBottom=
"56dp"
android:layout_marginBottom=
"50dp"
android:background=
"@color/white"
android:orientation=
"vertical"
/>
android:orientation=
"vertical"
/>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1px"
android:layout_height=
"1px"
android:layout_above=
"@+id/ll_bottom_tab"
android:layout_above=
"@+id/ll_bottom_tab"
android:background=
"#E1E1E1"
android:background=
"#E1E1E1"
/>
android:visibility=
"gone"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_bottom_tab"
android:id=
"@+id/ll_bottom_tab"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"5
6
dp"
android:layout_height=
"5
0
dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:background=
"@color/white"
android:background=
"@color/authentic_text"
android:elevation=
"2dp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/tab_rl_
loa
n"
android:id=
"@+id/tab_rl_
mai
n"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1.0"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/tab_iv_main"
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/tab_main_btn"
/>
<TextView
<TextView
android:id=
"@+id/tab_
iv_loa
n"
android:id=
"@+id/tab_
tv_mai
n"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"剧场"
android:text=
"@string/bottom_tab_main"
android:textColor=
"@color/item_text_sel"
android:textColor=
"@drawable/item_txt_sel"
android:textSize=
"16sp"
android:textSize=
"11sp"
/>
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/tab_rl_
recommend
"
android:id=
"@+id/tab_rl_
music
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1.0"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/tab_iv_music"
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/tab_music_btn"
/>
<TextView
<TextView
android:id=
"@+id/tab_
iv_recommend
"
android:id=
"@+id/tab_
tv_music
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"推荐"
android:text=
"@string/bottom_tab_music"
android:textColor=
"@color/item_text_sel2"
android:textColor=
"@drawable/item_txt_sel"
android:textSize=
"16sp"
android:textSize=
"11sp"
/>
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/tab_rl_
my
"
android:id=
"@+id/tab_rl_
redpkg
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1.0"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/tab_iv_redpkg"
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/tab_redpkg_btn"
/>
<TextView
<TextView
android:id=
"@+id/tab_
iv_my
"
android:id=
"@+id/tab_
tv_redpkg
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"我的"
android:text=
"@string/bottom_tab_redpkg"
android:textColor=
"@color/item_text_sel"
android:textColor=
"@drawable/item_txt_sel"
android:textSize=
"16sp"
android:textSize=
"11sp"
/>
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_edit"
android:layout_width=
"match_parent"
android:layout_height=
"56dp"
android:layout_alignParentBottom=
"true"
android:background=
"@color/white"
android:elevation=
"2dp"
android:orientation=
"horizontal"
android:visibility=
"gone"
>
<
TextView
<
LinearLayout
android:id=
"@+id/t
v_full
"
android:id=
"@+id/t
ab_rl_my
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1
.0
"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"全选"
android:orientation=
"vertical"
>
android:textColor=
"@color/black"
/>
<TextView
<ImageView
android:id=
"@+id/tv_delete"
android:id=
"@+id/tab_iv_my"
android:layout_width=
"0dp"
android:layout_width=
"25dp"
android:layout_height=
"match_parent"
android:layout_height=
"25dp"
android:layout_weight=
"1"
android:src=
"@drawable/tab_my_btn"
/>
android:gravity=
"center"
android:text=
"删除"
android:textColor=
"@color/red"
/>
<TextView
android:id=
"@+id/tab_tv_my"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/bottom_tab_my"
android:textColor=
"@drawable/item_txt_sel"
android:textSize=
"11sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
video/app/src/main/res/layout/fragment_music.xml
0 → 100755
View file @
a828d202
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
</FrameLayout>
\ No newline at end of file
video/app/src/main/res/layout/fragment_redpkg.xml
0 → 100755
View file @
a828d202
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
</FrameLayout>
\ No newline at end of file
video/app/src/main/res/mipmap-xhdpi/ic_my_enable.png
0 → 100755
View file @
a828d202
541 Bytes
video/app/src/main/res/mipmap-xhdpi/ic_my_none.png
0 → 100755
View file @
a828d202
548 Bytes
video/app/src/main/res/values/strings.xml
View file @
a828d202
...
@@ -17,6 +17,11 @@
...
@@ -17,6 +17,11 @@
<string
name=
"update_load"
>
正在下载
</string>
<string
name=
"update_load"
>
正在下载
</string>
<string
name=
"update_app"
>
APP更新
</string>
<string
name=
"update_app"
>
APP更新
</string>
<string
name=
"bottom_tab_main"
>
福利
</string>
<string
name=
"bottom_tab_music"
>
猜歌
</string>
<string
name=
"bottom_tab_redpkg"
>
红包
</string>
<string
name=
"bottom_tab_my"
>
提现
</string>
<string
name=
"str_agreement_vip"
>
尊敬的河狸短视频用户:\n
<string
name=
"str_agreement_vip"
>
尊敬的河狸短视频用户:\n
鉴于本协议是河狸短视频用户(下称“用户”或“您”)(下称 “本公司”或“我们”)关于使用河狸短视频产品提供的自动续费委托扣款服务(下称“本服务”)所订立的协议。您使用本服务前,已经注册成为河狸短视频的用户,且已同意为使用河狸短视频及本服务的相关用户协议及其它平台规则。\n
鉴于本协议是河狸短视频用户(下称“用户”或“您”)(下称 “本公司”或“我们”)关于使用河狸短视频产品提供的自动续费委托扣款服务(下称“本服务”)所订立的协议。您使用本服务前,已经注册成为河狸短视频的用户,且已同意为使用河狸短视频及本服务的相关用户协议及其它平台规则。\n
...
...
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