Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
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
bp
ShenghuoquanBusiness
Commits
38a3c612
Commit
38a3c612
authored
May 27, 2021
by
zhenghongbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 身份选择页面
parent
fc0c6f73
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
143 additions
and
113 deletions
+143
-113
LifeAccountIdentityAdapter.kt
...huoquan/newscontent/adapter/LifeAccountIdentityAdapter.kt
+1
-4
FlashActivity.kt
...a/com/yidian/shenghuoquan/newscontent/ui/FlashActivity.kt
+0
-1
LifeAccountIdentityActivity.kt
...henghuoquan/newscontent/ui/LifeAccountIdentityActivity.kt
+13
-32
LoginLifeCircleActivity.kt
...an/shenghuoquan/newscontent/ui/LoginLifeCircleActivity.kt
+4
-3
bg_item_life_account_identity.xml
...t/src/main/res/drawable/bg_item_life_account_identity.xml
+2
-7
bg_item_life_account_identity_selected.xml
...n/res/drawable/bg_item_life_account_identity_selected.xml
+3
-6
bg_item_manager_selected_off.xml
...nt/src/main/res/drawable/bg_item_manager_selected_off.xml
+8
-0
bg_item_manager_selected_on.xml
...ent/src/main/res/drawable/bg_item_manager_selected_on.xml
+6
-0
selector_item_life_account_identity.xml
...main/res/drawable/selector_item_life_account_identity.xml
+0
-2
selector_item_manager.xml
...wscontent/src/main/res/drawable/selector_item_manager.xml
+5
-0
selector_item_manager_text.xml
...tent/src/main/res/drawable/selector_item_manager_text.xml
+5
-0
activity_life_account_identity.xml
...nt/src/main/res/layout/activity_life_account_identity.xml
+75
-37
item_life_account_identity.xml
...ontent/src/main/res/layout/item_life_account_identity.xml
+19
-18
top_bar.xml
Components/newscontent/src/main/res/layout/top_bar.xml
+2
-3
icon_people.png
...ts/newscontent/src/main/res/mipmap-xxhdpi/icon_people.png
+0
-0
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/adapter/LifeAccountIdentityAdapter.kt
View file @
38a3c612
...
@@ -31,10 +31,7 @@ class LifeAccountIdentityAdapter :
...
@@ -31,10 +31,7 @@ class LifeAccountIdentityAdapter :
)
)
}
}
override
fun
onBindViewHolder
(
override
fun
onBindViewHolder
(
holder
:
LifeAccountIdentityViewHolder
,
position
:
Int
)
{
holder
:
LifeAccountIdentityViewHolder
,
position
:
Int
)
{
if
(
position
==
0
)
{
if
(
position
==
0
)
{
// 默认选中第一个身份
// 默认选中第一个身份
mLastSelectItem
=
holder
.
itemView
mLastSelectItem
=
holder
.
itemView
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/FlashActivity.kt
View file @
38a3c612
...
@@ -43,7 +43,6 @@ class FlashActivity: BaseActivity<ActivityFlashBinding>() {
...
@@ -43,7 +43,6 @@ class FlashActivity: BaseActivity<ActivityFlashBinding>() {
if
(
isAgree
){
if
(
isAgree
){
viewBind
.
clRoot
.
postDelayed
({
viewBind
.
clRoot
.
postDelayed
({
XPageManager
.
push
(
XRouterPathConstants
.
LOGIN_LIFE_CIRCLE
,
null
)
XPageManager
.
push
(
XRouterPathConstants
.
LOGIN_LIFE_CIRCLE
,
null
)
// startActivity(Intent(this@FlashActivity, TempListActivity::class.java))
},
2000
)
},
2000
)
}
}
}
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/LifeAccountIdentityActivity.kt
View file @
38a3c612
...
@@ -12,14 +12,14 @@ import com.yidian.shenghuoquan.newscontent.R
...
@@ -12,14 +12,14 @@ import com.yidian.shenghuoquan.newscontent.R
import
com.yidian.shenghuoquan.newscontent.adapter.LifeAccountIdentityAdapter
import
com.yidian.shenghuoquan.newscontent.adapter.LifeAccountIdentityAdapter
import
com.yidian.shenghuoquan.newscontent.bean.LifeAccountIdentityBean
import
com.yidian.shenghuoquan.newscontent.bean.LifeAccountIdentityBean
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountIdentityBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountIdentityBinding
import
com.yidian.xpage.XPageManager
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 5/19/21 4:47 PM
* date: 5/19/21 4:47 PM
* description: 生活号身份选择
* description: 生活号身份选择
*/
*/
class
LifeAccountIdentityActivity
:
BaseActivity
<
ActivityLifeAccountIdentityBinding
>(),
class
LifeAccountIdentityActivity
:
BaseActivity
<
ActivityLifeAccountIdentityBinding
>(),
OnItemClickListener
<
LifeAccountIdentityBean
>
{
View
.
OnClickListener
,
OnItemClickListener
<
LifeAccountIdentityBean
>
{
override
fun
createViewBinding
():
ActivityLifeAccountIdentityBinding
{
override
fun
createViewBinding
():
ActivityLifeAccountIdentityBinding
{
return
ActivityLifeAccountIdentityBinding
.
inflate
(
layoutInflater
)
return
ActivityLifeAccountIdentityBinding
.
inflate
(
layoutInflater
)
...
@@ -32,57 +32,38 @@ class LifeAccountIdentityActivity : BaseActivity<ActivityLifeAccountIdentityBind
...
@@ -32,57 +32,38 @@ class LifeAccountIdentityActivity : BaseActivity<ActivityLifeAccountIdentityBind
override
fun
init
(
savedInstanceState
:
Bundle
?)
{
override
fun
init
(
savedInstanceState
:
Bundle
?)
{
super
.
init
(
savedInstanceState
)
super
.
init
(
savedInstanceState
)
initView
()
initView
()
initListener
()
initData
()
initData
()
onClickListener
()
}
}
private
fun
initView
()
{
private
fun
initView
()
{
viewBind
.
rvLifeAccountIdentity
.
layoutManager
=
viewBind
.
rvLifeAccountIdentity
.
layoutManager
=
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
)
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
)
viewBind
.
rvLifeAccountIdentity
.
addItemDecoration
(
LifeAccountIdentityItemDecoration
())
viewBind
.
rvLifeAccountIdentity
.
adapter
=
LifeAccountIdentityAdapter
()
viewBind
.
rvLifeAccountIdentity
.
adapter
=
LifeAccountIdentityAdapter
()
}
(
viewBind
.
rvLifeAccountIdentity
.
adapter
as
LifeAccountIdentityAdapter
).
setOnItemClickListener
(
this
)
private
fun
initListener
()
{
viewBind
.
btnEnterLifeAccount
.
setOnClickListener
(
this
)
(
viewBind
.
rvLifeAccountIdentity
.
adapter
as
LifeAccountIdentityAdapter
).
setOnItemClickListener
(
this
)
}
}
private
fun
initData
()
{
private
fun
initData
()
{
val
data
:
List
<
LifeAccountIdentityBean
>
=
val
data
:
List
<
LifeAccountIdentityBean
>
=
listOf
(
listOf
(
LifeAccountIdentityBean
(
"一点资讯"
,
"超级管理员"
),
LifeAccountIdentityBean
(
"一点网娱商业化大佬们的生活号还有更多文字可以换行"
,
"超级管理员"
),
LifeAccountIdentityBean
(
"一点资讯"
,
"普通管理员"
),
LifeAccountIdentityBean
(
"简网科技生活号"
,
"普通管理员"
),
LifeAccountIdentityBean
(
"生活圈"
,
"普通管理员"
)
LifeAccountIdentityBean
(
"生活圈"
,
"普通管理员"
)
)
)
(
viewBind
.
rvLifeAccountIdentity
.
adapter
as
LifeAccountIdentityAdapter
).
updateData
(
data
)
(
viewBind
.
rvLifeAccountIdentity
.
adapter
as
LifeAccountIdentityAdapter
).
updateData
(
data
)
}
}
override
fun
onClick
(
v
:
View
?)
{
private
fun
onClickListener
(){
val
id
=
v
?.
id
;
viewBind
.
back
.
setOnClickListener
{
if
(
id
==
R
.
id
.
btn_enter_life_account
)
{
XPageManager
.
pop
(
null
)
// TODO: 5/19/21 执行进入生活号逻辑
}
viewBind
.
tvEnterLifeAccount
.
setOnClickListener
{
}
}
}
}
override
fun
onClick
(
view
:
View
?,
position
:
Int
,
item
:
LifeAccountIdentityBean
?)
{
override
fun
onClick
(
view
:
View
?,
position
:
Int
,
item
:
LifeAccountIdentityBean
?)
{
// TODO: 5/19/21 选中某个身份
// TODO: 5/19/21 选中某个身份
}
}
/**
* 自定义ItemDecoration
* 处理Item间隔
*/
class
LifeAccountIdentityItemDecoration
:
RecyclerView
.
ItemDecoration
()
{
override
fun
getItemOffsets
(
outRect
:
Rect
,
view
:
View
,
parent
:
RecyclerView
,
state
:
RecyclerView
.
State
)
{
outRect
.
top
=
20
outRect
.
bottom
=
20
}
}
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/LoginLifeCircleActivity.kt
View file @
38a3c612
...
@@ -3,6 +3,7 @@ package com.yidian.shenghuoquan.newscontent.ui
...
@@ -3,6 +3,7 @@ package com.yidian.shenghuoquan.newscontent.ui
import
android.os.Bundle
import
android.os.Bundle
import
android.text.Editable
import
android.text.Editable
import
android.text.TextWatcher
import
android.text.TextWatcher
import
com.yidian.common.XRouterPathConstants
import
com.yidian.common.XRouterPathConstants.Companion.LOGIN_LIFE_CIRCLE
import
com.yidian.common.XRouterPathConstants.Companion.LOGIN_LIFE_CIRCLE
import
com.yidian.common.base.BaseActivity
import
com.yidian.common.base.BaseActivity
import
com.yidian.common.widget.EditTextInputCallback
import
com.yidian.common.widget.EditTextInputCallback
...
@@ -10,6 +11,7 @@ import com.yidian.common.widget.PhoneNumberTextWatcher
...
@@ -10,6 +11,7 @@ import com.yidian.common.widget.PhoneNumberTextWatcher
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLoginBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLoginBinding
import
com.yidian.shenghuoquan.newscontent.utils.CountDownTimerUtils
import
com.yidian.shenghuoquan.newscontent.utils.CountDownTimerUtils
import
com.yidian.utils.ToastUtil
import
com.yidian.utils.ToastUtil
import
com.yidian.xpage.XPageManager
/**
/**
* Author: zhb
* Author: zhb
...
@@ -80,9 +82,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>() {
...
@@ -80,9 +82,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>() {
})
})
viewBind
.
tvLogin
.
setOnClickListener
{
viewBind
.
tvLogin
.
setOnClickListener
{
ToastUtil
.
showToast
(
this
,
"登录"
)
XPageManager
.
push
(
XRouterPathConstants
.
LIFE_ACCOUNT_IDENTITY
,
null
)
// startActivity(Intent(this@LoginLifeCircleActivity, IDCardTestActivity::class.java))
// startActivity(Intent(this@LoginLifeCircleActivity, AliveTestActivity::class.java))
}
}
viewBind
.
cbProtocol
.
setOnCheckedChangeListener
{
buttonView
,
isChecked
->
viewBind
.
cbProtocol
.
setOnCheckedChangeListener
{
buttonView
,
isChecked
->
...
@@ -96,6 +96,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>() {
...
@@ -96,6 +96,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>() {
viewBind
.
tvPrivacy
.
setOnClickListener
{
viewBind
.
tvPrivacy
.
setOnClickListener
{
ToastUtil
.
showToast
(
this
,
"隐私政策"
)
ToastUtil
.
showToast
(
this
,
"隐私政策"
)
XPageManager
.
push
(
XRouterPathConstants
.
LIFE_ACCOUNT_IDENTITY
,
null
)
}
}
}
}
...
...
Components/newscontent/src/main/res/drawable/bg_item_life_account_identity.xml
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<corners
android:radius=
"12dp"
/>
<corners
android:radius=
"10dp"
/>
<solid
android:color=
"@color/white"
/>
<stroke
android:width=
"1dp"
android:color=
"@color/homeGray"
/>
</shape>
</shape>
\ No newline at end of file
Components/newscontent/src/main/res/drawable/bg_item_life_account_identity_selected.xml
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<corners
android:radius=
"12dp"
/>
<corners
android:radius=
"10dp"
/>
<stroke
<stroke
android:width=
"1dp"
android:width=
"2dp"
android:color=
"@color/red_second"
/>
android:color=
"#1852f1"
/>
</shape>
</shape>
\ No newline at end of file
Components/newscontent/src/main/res/drawable/bg_item_manager_selected_off.xml
0 → 100644
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"12dp"
/>
<stroke
android:width=
"1dp"
android:color=
"#eaaf35"
/>
</shape>
\ No newline at end of file
Components/newscontent/src/main/res/drawable/bg_item_manager_selected_on.xml
0 → 100644
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"12dp"
/>
<solid
android:color=
"#eaaf35"
/>
</shape>
\ No newline at end of file
Components/newscontent/src/main/res/drawable/selector_item_life_account_identity.xml
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/bg_item_life_account_identity"
android:state_selected=
"false"
/>
<item
android:drawable=
"@drawable/bg_item_life_account_identity"
android:state_selected=
"false"
/>
<item
android:drawable=
"@drawable/bg_item_life_account_identity_selected"
android:state_selected=
"true"
/>
<item
android:drawable=
"@drawable/bg_item_life_account_identity_selected"
android:state_selected=
"true"
/>
</selector>
</selector>
\ No newline at end of file
Components/newscontent/src/main/res/drawable/selector_item_manager.xml
0 → 100644
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/bg_item_manager_selected_off"
android:state_selected=
"false"
/>
<item
android:drawable=
"@drawable/bg_item_manager_selected_on"
android:state_selected=
"true"
/>
</selector>
\ No newline at end of file
Components/newscontent/src/main/res/drawable/selector_item_manager_text.xml
0 → 100644
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:color=
"#eaaf35"
android:state_selected=
"false"
/>
<item
android:color=
"@color/white"
android:state_selected=
"true"
/>
</selector>
\ No newline at end of file
Components/newscontent/src/main/res/layout/activity_life_account_identity.xml
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
com.yidian.nightmode.widget.YdConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
RelativeLayout
xmlns:a
pp=
"http://schemas.android.com/apk/res-auto
"
xmlns:a
ndroid=
"http://schemas.android.com/apk/res/android
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<com.yidian.nightmode.widget.YdTextView
<LinearLayout
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20dp"
android:includeFontPadding=
"false"
android:text=
"@string/life_account_identity_select"
android:textColor=
"#FF000000"
android:textSize=
"18sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<com.yidian.nightmode.widget.YdRecyclerView
android:id=
"@+id/rv_life_account_identity"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"match_parent"
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"44dp"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"95dp"
android:paddingStart=
"30dp"
android:orientation=
"vertical"
>
android:paddingEnd=
"30dp"
app:layout_constraintBottom_toTopOf=
"@id/btn_enter_life_account"
<RelativeLayout
app:layout_constraintTop_toBottomOf=
"@id/tv_title"
/>
android:layout_width=
"match_parent"
android:layout_height=
"44dp"
>
<com.yidian.nightmode.widget.YdButton
android:id=
"@+id/btn_enter_life_account"
<ImageButton
android:id=
"@+id/back"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:background=
"@null"
android:paddingStart=
"20dp"
android:scaleType=
"fitCenter"
android:src=
"@drawable/selector_big_back_black_button"
/>
<TextView
android:id=
"@+id/title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:textColor=
"#333333"
android:textSize=
"18sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"87dp"
android:layout_marginStart=
"30dp"
android:layout_marginEnd=
"16dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:textSize=
"28sp"
android:textColor=
"#333333"
android:text=
"你的身份是?"
/>
<ImageView
android:layout_width=
"148dp"
android:layout_height=
"match_parent"
android:layout_alignParentEnd=
"true"
android:background=
"@mipmap/icon_people"
/>
</RelativeLayout>
<com.yidian.nightmode.widget.YdRecyclerView
android:id=
"@+id/rv_life_account_identity"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_enterLifeAccount"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"44dp"
android:layout_marginBottom=
"10dp"
android:layout_marginStart=
"30dp"
android:text=
"@string/enter_life_account"
android:layout_marginEnd=
"30dp"
android:textColor=
"#FF000000"
android:layout_marginBottom=
"34dp"
android:textSize=
"16sp"
android:layout_alignParentBottom=
"true"
app:layout_constraintBottom_toBottomOf=
"parent"
android:gravity=
"center"
app:layout_constraintEnd_toEndOf=
"parent"
android:textSize=
"18sp"
app:layout_constraintStart_toStartOf=
"parent"
/>
android:textColor=
"@color/white"
android:background=
"@drawable/account_btn_gradient_bg"
</com.yidian.nightmode.widget.YdConstraintLayout>
android:text=
"进入生活号"
/>
\ No newline at end of file
</RelativeLayout>
\ No newline at end of file
Components/newscontent/src/main/res/layout/item_life_account_identity.xml
View file @
38a3c612
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
com.yidian.nightmode.widget.YdConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
LinearLayout
xmlns:a
pp=
"http://schemas.android.com/apk/res-auto
"
xmlns:a
ndroid=
"http://schemas.android.com/apk/res/android
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
100dp
"
android:layout_height=
"
wrap_content
"
android:background=
"@drawable/selector_item_life_account_identity"
android:background=
"@drawable/selector_item_life_account_identity"
android:padding=
"20dp"
>
android:padding=
"20dp"
android:layout_marginStart=
"20dp"
android:layout_marginEnd=
"20dp"
android:layout_marginBottom=
"20dp"
android:orientation=
"vertical"
>
<com.yidian.nightmode.widget.YdTextView
<com.yidian.nightmode.widget.YdTextView
android:id=
"@+id/tv_life_account"
android:id=
"@+id/tv_life_account"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:ellipsize=
"end"
android:textColor=
"#333333"
android:includeFontPadding=
"false"
android:textSize=
"18sp"
/>
android:singleLine=
"true"
android:textColor=
"#FF000000"
android:textSize=
"16sp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<com.yidian.nightmode.widget.YdTextView
<com.yidian.nightmode.widget.YdTextView
android:id=
"@+id/tv_life_identity"
android:id=
"@+id/tv_life_identity"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"26dp"
android:includeFontPadding=
"false"
android:layout_marginTop=
"6dp"
android:textColor=
"@color/homeGray"
android:paddingStart=
"8dp"
android:textSize=
"14sp"
android:paddingEnd=
"8dp"
app:layout_constraintBottom_toBottomOf=
"parent"
android:gravity=
"center"
app:layout_constraintEnd_toEndOf=
"parent"
/>
android:background=
"@drawable/selector_item_manager"
android:textColor=
"@drawable/selector_item_manager_text"
android:textSize=
"14sp"
/>
</com.yidian.nightmode.widget.YdConstraintLayout>
</LinearLayout>
\ No newline at end of file
\ No newline at end of file
Components/newscontent/src/main/res/layout/top_bar.xml
View file @
38a3c612
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:background=
"@null"
android:background=
"@null"
android:onClick=
"onBackClicked"
android:onClick=
"onBackClicked"
android:padding
Lef
t=
"@dimen/back_button_padding_left"
android:padding
Star
t=
"@dimen/back_button_padding_left"
android:padding
Right
=
"@dimen/back_button_padding_right"
android:padding
End
=
"@dimen/back_button_padding_right"
android:scaleType=
"fitCenter"
android:scaleType=
"fitCenter"
android:src=
"@drawable/selector_big_back_black_button"
/>
android:src=
"@drawable/selector_big_back_black_button"
/>
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:layout_marginStart=
"5dp"
android:layout_marginStart=
"5dp"
android:text=
"title"
android:textColor=
"#333333"
android:textColor=
"#333333"
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
Components/newscontent/src/main/res/mipmap-xxhdpi/icon_people.png
0 → 100644
View file @
38a3c612
58.2 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