Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
776bc4d7
Commit
776bc4d7
authored
Dec 18, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态模块UI差异化
parent
800eebf3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
144 additions
and
106 deletions
+144
-106
MyTrendsActivity.kt
m-dynamic/src/main/java/com/yidianling/dynamic/activity/MyTrendsActivity.kt
+6
-0
TrendsReplyInfoActivity.kt
m-dynamic/src/main/java/com/yidianling/dynamic/activity/TrendsReplyInfoActivity.kt
+5
-0
MembersActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/members/MembersActivity.java
+6
-2
PublishTrendActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/PublishTrendActivity.java
+3
-2
SelecTopicActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/SelecTopicActivity.java
+9
-0
PublishQuestionAndTrendFragment.java
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/fragment/PublishQuestionAndTrendFragment.java
+3
-3
ThankActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/thank/ThankActivity.java
+8
-0
AllTopicActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/topic/AllTopicActivity.java
+9
-0
TopicDetailActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/topic/topicDetail/TopicDetailActivity.java
+9
-16
TrendsListFragment.kt
m-dynamic/src/main/java/com/yidianling/dynamic/trendList/TrendsListFragment.kt
+1
-1
TrendsDetailActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/trendsDetail/TrendsDetailActivity.java
+1
-1
TrendsHomeFragment.java
m-dynamic/src/main/java/com/yidianling/dynamic/trendsHome/TrendsHomeFragment.java
+5
-6
dynamic_background_publish_trend_top.xml
m-dynamic/src/main/res/drawable/dynamic_background_publish_trend_top.xml
+7
-12
dynamic_layout_border.xml
m-dynamic/src/main/res/drawable/dynamic_layout_border.xml
+0
-3
dynamic_activity_browse_pictures.xml
m-dynamic/src/main/res/layout/dynamic_activity_browse_pictures.xml
+1
-1
dynamic_activity_members.xml
m-dynamic/src/main/res/layout/dynamic_activity_members.xml
+0
-0
dynamic_activity_topic_detail.xml
m-dynamic/src/main/res/layout/dynamic_activity_topic_detail.xml
+4
-4
dynamic_activity_trend.xml
m-dynamic/src/main/res/layout/dynamic_activity_trend.xml
+51
-41
dynamic_fragment_moments.xml
m-dynamic/src/main/res/layout/dynamic_fragment_moments.xml
+1
-2
NewMultiMessageFragment.kt
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
+2
-7
ChatFragment.kt
m-im/src/main/java/com/yidianling/im/ui/page/fragment/ChatFragment.kt
+3
-3
StatusBarUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/StatusBarUtils.kt
+10
-2
No files found.
m-dynamic/src/main/java/com/yidianling/dynamic/activity/MyTrendsActivity.kt
View file @
776bc4d7
...
...
@@ -6,6 +6,7 @@ import android.support.v4.app.FragmentPagerAdapter
import
android.support.v4.view.ViewPager
import
butterknife.ButterKnife
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.bean.StatusBarOptions
import
com.yidianling.dynamic.R
import
com.yidianling.dynamic.router.DynamicIn
import
com.yidianling.dynamic.trendList.TrendsListFragment
...
...
@@ -32,6 +33,11 @@ class MyTrendsActivity : BaseActivity() {
private
val
fragmentList
=
ArrayList
<
TrendsListFragment
>()
override
fun
getStatusViewOptions
():
StatusBarOptions
{
return
StatusBarOptions
(
isAddStatusView
=
true
,
statusBarDarkMode
=
true
)
}
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
dynamic_activity_mytrends
)
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/activity/TrendsReplyInfoActivity.kt
View file @
776bc4d7
...
...
@@ -18,6 +18,7 @@ import com.ydl.ydl_image.module.GlideApp
import
com.ydl.ydlcommon.adapter.BaseRecyclerAdapter
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.base.config.YDLConstants
import
com.ydl.ydlcommon.bean.StatusBarOptions
import
com.ydl.ydlcommon.utils.MoonUtil
import
com.ydl.ydlcommon.view.BaseViewHolder
import
com.yidianling.common.tools.ToastUtil
...
...
@@ -50,6 +51,10 @@ class TrendsReplyInfoActivity : BaseActivity() {
private
var
aid
:
String
?
=
null
//为空则是回复详情,否则为点赞详情
internal
var
header
:
MaterialHeader
?
=
null
override
fun
getStatusViewOptions
():
StatusBarOptions
{
return
StatusBarOptions
(
isAddStatusView
=
true
,
statusBarDarkMode
=
true
)
}
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/members/MembersActivity.java
View file @
776bc4d7
...
...
@@ -30,6 +30,7 @@ import com.ydl.ydl_image.module.GlideApp;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.data.http.RxUtils
;
import
com.ydl.ydlcommon.utils.StatusBarUtils
;
import
com.ydl.ydlcommon.view.dialog.ListDialog
;
import
com.ydl.ydlcommon.view.widgets.BorderCircleImageView
;
import
com.ydl.ydlcommon.view.widgets.MyNestedScrollView
;
...
...
@@ -106,6 +107,8 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
private
static
final
String
USER_ID
=
"user_id"
;
public
static
Intent
newIntent
(
Activity
activity
,
String
userId
)
{
Intent
intent
=
new
Intent
(
activity
,
MembersActivity
.
class
);
Bundle
bundle
=
new
Bundle
();
...
...
@@ -134,6 +137,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
initListeners
();
// initDatas();
setTabSelection
(
0
);
StatusBarUtils
.
Companion
.
setCustomStatusView
(
this
,
members_title_rel
,
true
);
}
private
void
initEvent
()
{
...
...
@@ -182,7 +186,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
*/
private
void
initLoadMore
()
{
member_swrl
.
setOnRefreshListener
(
this
);
member_swrl
.
setColorSchemeResources
(
R
.
color
.
dynamic_
google_green
);
member_swrl
.
setColorSchemeResources
(
R
.
color
.
dynamic_
main_theme
);
member_swrl
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -806,7 +810,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
members_title_top_tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_black
));
members_title_top_tv
.
setText
(
name
);
members_title_back_iv
.
setImageResource
(
R
.
drawable
.
platform_common_back
);
members_title_top_right_tv
.
setImageResource
(
R
.
drawable
.
dynamic_more_gree
n
);
members_title_top_right_tv
.
setImageResource
(
R
.
drawable
.
platform_common_notice_more_u
n
);
// members_top_view.setBackgroundColor(getResources().getColor(R.color.dynamic_black));
members_title_rel
.
setBackgroundDrawable
(
getResources
().
getDrawable
(
R
.
drawable
.
dynamic_layout_border
));
}
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/PublishTrendActivity.java
View file @
776bc4d7
...
...
@@ -15,6 +15,7 @@ import android.view.animation.AlphaAnimation;
import
android.view.animation.Animation
;
import
android.view.animation.TranslateAnimation
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.PopupWindow
;
import
android.widget.TextView
;
...
...
@@ -54,7 +55,7 @@ public class PublishTrendActivity extends BaseActivity {
private
List
<
Fragment
>
fragmentList
=
new
ArrayList
<>();
private
PopupWindow
noticePopupWindow
;
private
Handler
handler
;
private
View
mPublishTrendTitle
;
private
LinearLayout
mPublishTrendTitle
;
public
static
Intent
newIntent
(
Activity
activity
,
String
url
,
String
cover
,
String
title
)
{
Intent
intent
=
new
Intent
(
activity
,
PublishTrendActivity
.
class
);
...
...
@@ -122,7 +123,7 @@ public class PublishTrendActivity extends BaseActivity {
mTableLayout
=
findViewById
(
R
.
id
.
tab_layout
);
mToastView
=
findViewById
(
R
.
id
.
tv_coustom_toast_view
);
initData
();
StatusBarUtils
.
Companion
.
setCustomStatusView
(
this
,
mPublishTrendTitle
,
mPublishTrendTitle
.
getLayoutParams
()
);
StatusBarUtils
.
Companion
.
setCustomStatusView
(
this
,
mPublishTrendTitle
);
}
private
void
initData
()
{
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/SelecTopicActivity.java
View file @
776bc4d7
...
...
@@ -7,6 +7,7 @@ import android.widget.RelativeLayout;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.yidianling.dynamic.R
;
import
com.yidianling.dynamic.adapter.SelectTopicAdapter
;
import
com.yidianling.dynamic.common.net.DynamicApiUtils
;
...
...
@@ -16,6 +17,8 @@ import com.ydl.ydlcommon.view.widgets.RecyclerViewForScrollView;
import
com.yidianling.dynamic.model.Command
;
import
com.yidianling.dynamic.model.RecommendTopic
;
import
org.jetbrains.annotations.NotNull
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -34,6 +37,12 @@ public class SelecTopicActivity extends BaseActivity {
SelectTopicAdapter
adapterR
,
adapterF
;
RelativeLayout
select_topic_focus_hint_rel
,
select_topic_recommend_hint_rel
;
@NotNull
@Override
public
StatusBarOptions
getStatusViewOptions
()
{
return
new
StatusBarOptions
(
true
,
true
);
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/fragment/PublishQuestionAndTrendFragment.java
View file @
776bc4d7
...
...
@@ -229,13 +229,13 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
topic_title
=
bundle
.
getString
(
"topic_title"
);
publish_trend_bottom_topic_tv
.
setVisibility
(
View
.
VISIBLE
);
publish_trend_bottom_topic_tv
.
setText
(
"# "
+
topic_title
);
publish_trend_bottom_topic_tv
.
setTextColor
(
ContextCompat
.
getColor
(
activity
,
R
.
color
.
platform_main_theme_blu
e
));
publish_trend_bottom_topic_tv
.
setTextColor
(
ContextCompat
.
getColor
(
activity
,
R
.
color
.
dynamic_main_them
e
));
}
else
if
(
"topic_publish"
.
equals
(
publish_type
))
{
// 从话题详情进来的发布
topic_id
=
bundle
.
getString
(
"topic_id"
);
topic_title
=
bundle
.
getString
(
"topic_title"
);
publish_trend_bottom_topic_tv
.
setVisibility
(
View
.
VISIBLE
);
publish_trend_bottom_topic_tv
.
setText
(
"# "
+
topic_title
);
publish_trend_bottom_topic_tv
.
setTextColor
(
ContextCompat
.
getColor
(
activity
,
R
.
color
.
platform_main_theme_blu
e
));
publish_trend_bottom_topic_tv
.
setTextColor
(
ContextCompat
.
getColor
(
activity
,
R
.
color
.
dynamic_main_them
e
));
}
else
if
(
"default_publish"
.
equals
(
publish_type
))
{
// 默认发布类型
publish_trend_bottom_topic_tv
.
setVisibility
(
View
.
VISIBLE
);
}
...
...
@@ -848,7 +848,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
}
publish_trend_bottom_topic_tv
.
setVisibility
(
View
.
VISIBLE
);
publish_trend_bottom_topic_tv
.
setText
(
"# "
+
topic_title
);
publish_trend_bottom_topic_tv
.
setTextColor
(
ContextCompat
.
getColor
(
activity
,
R
.
color
.
platform_main_theme_blu
e
));
publish_trend_bottom_topic_tv
.
setTextColor
(
ContextCompat
.
getColor
(
activity
,
R
.
color
.
dynamic_main_them
e
));
// 获取编辑框焦点
publish_trend_content_editext
.
setFocusable
(
true
);
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/thank/ThankActivity.java
View file @
776bc4d7
...
...
@@ -9,6 +9,7 @@ import android.widget.RelativeLayout;
import
android.widget.TextView
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.yidianling.common.tools.LogUtil
;
import
com.yidianling.common.tools.ToastUtil
;
import
com.yidianling.dynamic.DynamicConstants
;
...
...
@@ -22,6 +23,8 @@ import com.yidianling.dynamic.thank.view.ThankHeadView;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.data.http.RxUtils
;
import
org.jetbrains.annotations.NotNull
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
de.greenrobot.event.EventBus
;
...
...
@@ -64,6 +67,11 @@ public class ThankActivity extends BaseActivity implements PtrHandler, LoadMoreH
WorryDetailAnswer
worryDetailAnswerForEventBus
;
@NotNull
@Override
public
StatusBarOptions
getStatusViewOptions
()
{
return
new
StatusBarOptions
(
true
,
true
);
}
void
init
()
{
// header
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/topic/AllTopicActivity.java
View file @
776bc4d7
...
...
@@ -8,9 +8,12 @@ import android.support.v4.view.ViewPager;
import
android.view.View
;
import
android.widget.ImageView
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.yidianling.dynamic.R
;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
org.jetbrains.annotations.NotNull
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -29,6 +32,12 @@ public class AllTopicActivity extends BaseActivity implements View.OnClickListen
private
FragmentManager
fragmentManager
;
private
AllTopicFragment
alltopic_fragment
;
@NotNull
@Override
public
StatusBarOptions
getStatusViewOptions
()
{
return
new
StatusBarOptions
(
true
,
true
);
}
// private HotTopicFragment hottopic_fragmen;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/topic/topicDetail/TopicDetailActivity.java
View file @
776bc4d7
...
...
@@ -38,9 +38,9 @@ import com.ydl.webview.NewH5Activity;
import
com.ydl.ydl_image.module.GlideApp
;
import
com.ydl.ydlcommon.actions.share.ShareUtils
;
import
com.ydl.ydlcommon.base.BaseMvpActivity
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.ui.LogoLoadingView
;
import
com.ydl.ydlcommon.utils.BuryPointUtils
;
import
com.ydl.ydlcommon.utils.StatusBarUtils
;
import
com.yidianling.common.tools.LogUtil
;
import
com.yidianling.dynamic.DynamicConstants
;
import
com.yidianling.dynamic.R
;
...
...
@@ -53,8 +53,6 @@ import com.yidianling.dynamic.router.DynamicIn;
import
com.yidianling.dynamic.trendList.TrendListInFragment
;
import
com.yidianling.dynamic.trendList.adapter.RecommendTopAdapter
;
import
org.jetbrains.annotations.NotNull
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
...
...
@@ -142,12 +140,6 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
private
static
final
String
IS_SPLASH
=
"isSplash"
;
private
static
final
String
TOPIC_ID
=
"topic_id"
;
@NotNull
@Override
public
StatusBarOptions
getStatusViewOptions
()
{
return
new
StatusBarOptions
(
true
,
true
);
}
public
static
Intent
newIntent
(
Context
context
,
boolean
isSplash
,
String
topicId
)
{
Intent
intent
=
new
Intent
(
context
,
TopicDetailActivity
.
class
);
intent
.
putExtra
(
IS_SPLASH
,
isSplash
);
...
...
@@ -163,8 +155,8 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
initDatas
();
initViews
();
fetchDatas
();
initNetLossView
();
StatusBarUtils
.
Companion
.
setCustomStatusView
(
this
,
mToolbar
,
true
);
}
private
void
initNetLossView
()
{
...
...
@@ -189,7 +181,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
private
void
initViews
()
{
setSupportActionBar
(
mToolbar
);
mSwl
.
setOnRefreshListener
(
this
);
mSwl
.
setColorSchemeResources
(
R
.
color
.
platform_main_theme_blu
e
);
mSwl
.
setColorSchemeResources
(
R
.
color
.
dynamic_main_them
e
);
mSwl
.
setProgressViewOffset
(
false
,
0
,
200
);
topTrendsRcv
.
setLayoutManager
(
new
LinearLayoutManager
(
this
));
topTrendsRcv
.
setAdapter
(
mRecommendTopAdapter
);
...
...
@@ -247,7 +239,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
mToolbar
.
setBackgroundColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_white
));
alPhaAnimation
(
mToolbar
,
0
,
1
,
null
);
mTopicDetailTitleBackIv
.
setImageResource
(
R
.
drawable
.
platform_common_back
);
mTopicDetailTitleTopRightTv
.
setImageResource
(
R
.
drawable
.
dynamic_more_gree
n
);
mTopicDetailTitleTopRightTv
.
setImageResource
(
R
.
drawable
.
platform_common_notice_more_u
n
);
backgroundColor
=
R
.
color
.
dynamic_white
;
}
collapsingToolbarLayout
.
setTitle
(
topicTitle
);
...
...
@@ -466,16 +458,16 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
mTopicDetailVp
.
setCurrentItem
(
0
);
}
selectTab
=
0
;
mItemTopicDetailNewTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
platform_main_theme_blu
e
));
mItemTopicDetailNewHintTv
.
setBackgroundColor
(
getResources
().
getColor
(
R
.
color
.
platform_main_theme_blu
e
));
mItemTopicDetailNewTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_main_them
e
));
mItemTopicDetailNewHintTv
.
setBackgroundColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_main_them
e
));
break
;
case
1
:
if
(
mTopicDetailVp
.
getCurrentItem
()
!=
1
)
{
mTopicDetailVp
.
setCurrentItem
(
1
);
}
selectTab
=
1
;
mItemTopicDetailHotTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
platform_main_theme_blu
e
));
mItemTopicDetailHotHintTv
.
setBackgroundColor
(
getResources
().
getColor
(
R
.
color
.
platform_main_theme_blu
e
));
mItemTopicDetailHotTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_main_them
e
));
mItemTopicDetailHotHintTv
.
setBackgroundColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_main_them
e
));
break
;
}
...
...
@@ -507,6 +499,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
.
error
(
R
.
drawable
.
dynamic_default_img
)
.
into
(
mTopicDetailTopBgIv
);
mTopicDetailFocusTv
.
setBackgroundResource
(
"1"
.
equals
(
is_focused
)
?
R
.
drawable
.
dynamic_focused_topic_detail_bg
:
R
.
drawable
.
dynamic_focus_topic_detail_bg
);
mTopicDetailFocusTv
.
setTextColor
(
getResources
().
getColor
(
"1"
.
equals
(
is_focused
)
?
R
.
color
.
platform_white
:
R
.
color
.
dynamic_but_text_color
));
mTopicDetailFocusTv
.
setText
(
"1"
.
equals
(
is_focused
)
?
this
.
getString
(
R
.
string
.
dynamic_trend_foucused
)
:
"+"
+
this
.
getString
(
R
.
string
.
dynamic_trend_foucus
));
if
(!
"2"
.
equals
(
topicId
))
{
mTopicDetailFocusTv
.
setVisibility
(
View
.
VISIBLE
);
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/trendList/TrendsListFragment.kt
View file @
776bc4d7
...
...
@@ -208,7 +208,7 @@ class TrendsListFragment : BaseLazyFragment(), ITrendsListView,
}
else
{
trends_lastr_swl
!!
.
setViewGroup
(
trends_rcv
)
trends_lastr_swl
!!
.
setOnRefreshListener
(
this
)
trends_lastr_swl
!!
.
setColorSchemeResources
(
R
.
color
.
platform_main_theme_blu
e
)
trends_lastr_swl
!!
.
setColorSchemeResources
(
R
.
color
.
dynamic_main_them
e
)
}
initRecyclerView
()
}
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/trendsDetail/TrendsDetailActivity.java
View file @
776bc4d7
...
...
@@ -780,7 +780,7 @@ public class TrendsDetailActivity extends BaseMvpActivity<ITrendsDetailView, ITr
});
}
swl
.
setOnRefreshListener
(
this
);
swl
.
setColorSchemeResources
(
R
.
color
.
dynamic_
google_green
);
swl
.
setColorSchemeResources
(
R
.
color
.
dynamic_
main_theme
);
vpAds
.
getLayoutParams
().
height
=
ScreenUtil
.
getDisplayWidth
()
*
19
/
66
;
vpAds
.
requestLayout
();
vpAds
.
setOnTouchListener
((
v
,
event
)
->
{
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/trendsHome/TrendsHomeFragment.java
View file @
776bc4d7
package
com
.
yidianling
.
dynamic
.
trendsHome
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Handler
;
...
...
@@ -135,8 +134,8 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
public
void
initDataAndEvent
()
{
mUnbinder
=
ButterKnife
.
bind
(
this
,
getView
());
initViews
();
// TODO: 2019-12-13 by:HaoRui
initDatas
();
}
@Override
...
...
@@ -147,7 +146,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
private
void
initViews
()
{
initBannerView
();
swl
.
setOnRefreshListener
(
this
);
swl
.
setColorSchemeResources
(
R
.
color
.
platform_main_theme_blu
e
);
swl
.
setColorSchemeResources
(
R
.
color
.
dynamic_main_them
e
);
mAppBarLayout
.
addOnOffsetChangedListener
(
new
AppBarLayout
.
OnOffsetChangedListener
()
{
@Override
public
void
onOffsetChanged
(
AppBarLayout
appBarLayout
,
int
verticalOffset
)
{
...
...
@@ -289,11 +288,11 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
mItemFocusTv
.
setSelected
(
false
);
mItemFocusTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_text_666666
));
mItemHotTv
.
setSelected
(
true
);
mItemHotTv
.
setTextColor
(
Color
.
WHITE
);
mItemHotTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_but_text_color
)
);
break
;
case
1
:
mItemRecommendTv
.
setSelected
(
true
);
mItemRecommendTv
.
setTextColor
(
Color
.
WHITE
);
mItemRecommendTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_but_text_color
)
);
mItemFocusTv
.
setSelected
(
false
);
mItemFocusTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_text_666666
));
mItemHotTv
.
setSelected
(
false
);
...
...
@@ -303,7 +302,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
mItemRecommendTv
.
setSelected
(
false
);
mItemRecommendTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_text_666666
));
mItemFocusTv
.
setSelected
(
true
);
mItemFocusTv
.
setTextColor
(
Color
.
WHITE
);
mItemFocusTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_but_text_color
)
);
mItemHotTv
.
setSelected
(
false
);
mItemHotTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_text_666666
));
break
;
...
...
m-dynamic/src/main/res/drawable/dynamic_background_publish_trend_top.xml
View file @
776bc4d7
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:state_enabled=
"true"
>
<shape>
<corners
android:radius=
"0dp"
></corners>
<gradient
android:endColor=
"@color/dynamic_main_theme_light"
android:startColor=
"@color/dynamic_main_theme"
/>
<stroke
android:width=
"0dp"
android:color=
"@color/platform_bebebe"
/>
</shape>
</item>
</selector>
\ No newline at end of file
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<gradient
android:startColor=
"@color/dynamic_main_theme_light"
android:endColor=
"@color/dynamic_main_theme"
android:angle=
"0"
/>
</shape>
\ No newline at end of file
m-dynamic/src/main/res/drawable/dynamic_layout_border.xml
View file @
776bc4d7
...
...
@@ -11,9 +11,6 @@
android:bottomLeftRadius=
"0dp"
android:topLeftRadius=
"0dp"
android:topRightRadius=
"0dp"
/>
<stroke
android:width=
"0.8dp"
android:color=
"#E3E3E3"
/>
</shape>
</item>
</layer-list>
m-dynamic/src/main/res/layout/dynamic_activity_browse_pictures.xml
View file @
776bc4d7
...
...
@@ -3,7 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"
#555e5e5e
"
>
android:background=
"
@color/platform_black
"
>
<android.support.v4.view.ViewPager
android:id=
"@+id/browse_pictures_vp"
...
...
m-dynamic/src/main/res/layout/dynamic_activity_members.xml
View file @
776bc4d7
This diff is collapsed.
Click to expand it.
m-dynamic/src/main/res/layout/dynamic_activity_topic_detail.xml
View file @
776bc4d7
...
...
@@ -13,7 +13,7 @@
<android.support.design.widget.CoordinatorLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fitsSystemWindows=
"true"
>
>
<android.support.design.widget.AppBarLayout
android:id=
"@+id/app_bar"
...
...
@@ -197,7 +197,7 @@
<android.support.v7.widget.Toolbar
android:id=
"@+id/toolbar"
android:layout_width=
"match_parent"
android:layout_height=
"
?attr/actionBarSize
"
android:layout_height=
"
@dimen/platform_action_bar_height
"
app:layout_collapseMode=
"pin"
app:popupTheme=
"@style/AppTheme.PopupOverlay"
>
...
...
@@ -249,7 +249,7 @@
android:paddingLeft=
"15dp"
android:paddingRight=
"15dp"
android:text=
"最新"
android:textColor=
"@color/
platform_main_theme_blu
e"
android:textColor=
"@color/
dynamic_main_them
e"
android:textSize=
"18sp"
/>
<View
...
...
@@ -258,7 +258,7 @@
android:layout_height=
"2dp"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:background=
"@color/
platform_main_theme_blu
e"
/>
android:background=
"@color/
dynamic_main_them
e"
/>
</RelativeLayout>
<RelativeLayout
...
...
m-dynamic/src/main/res/layout/dynamic_activity_trend.xml
View file @
776bc4d7
...
...
@@ -6,51 +6,61 @@
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_gravity=
"center_vertical"
<LinearLayout
android:id=
"@+id/publish_trend_title_rel"
android:orientation=
"horizontal"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dynamic_title_height"
android:background=
"@drawable/dynamic_background_publish_trend_top"
>
<ImageView
android:id=
"@+id/img_back"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:paddingLeft=
"15dp"
android:paddingRight=
"@dimen/platform_dp_15"
android:src=
"@drawable/platform_common_back"
/>
<com.flyco.tablayout.CommonTabLayout
android:id=
"@+id/tab_layout"
android:layout_width=
"110dp"
android:layout_height=
"match_parent"
android:layout_centerInParent=
"true"
android:layout_marginBottom=
"6dp"
app:tl_indicator_anim_enable=
"false"
app:tl_indicator_height=
"0dp"
app:tl_tab_space_equal=
"true"
app:tl_textSelectColor=
"@color/platform_color_242424"
app:tl_textUnselectColor=
"@color/platform_color_50ffffff"
app:tl_textsize=
"17sp"
/>
android:layout_height=
"48dp"
android:background=
"@drawable/dynamic_background_publish_trend_top"
>
<RelativeLayout
android:layout_gravity=
"center_vertical"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
>
<ImageView
android:id=
"@+id/img_back"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:paddingLeft=
"15dp"
android:paddingRight=
"@dimen/platform_dp_15"
android:src=
"@drawable/platform_common_back"
/>
<com.flyco.tablayout.CommonTabLayout
android:id=
"@+id/tab_layout"
android:layout_width=
"110dp"
android:layout_height=
"match_parent"
android:layout_centerInParent=
"true"
android:layout_marginBottom=
"6dp"
app:tl_indicator_anim_enable=
"false"
app:tl_indicator_height=
"0dp"
app:tl_tab_space_equal=
"true"
app:tl_textSelectColor=
"@color/platform_color_242424"
app:tl_textUnselectColor=
"@color/platform_white"
app:tl_textsize=
"17sp"
/>
<TextView
android:id=
"@+id/publish_trend_sure_tv"
android:layout_width=
"wrap_content"
android:layout_height=
"24dp"
android:layout_alignParentRight=
"true"
android:layout_centerInParent=
"true"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/dynamic_bg_publish_button"
android:gravity=
"center"
android:paddingLeft=
"10dp"
android:paddingRight=
"10dp"
android:text=
"发布"
android:textColor=
"@color/dynamic_sel_but_text_color"
android:textSize=
"14sp"
/>
</RelativeLayout>
</LinearLayout>
<TextView
android:id=
"@+id/publish_trend_sure_tv"
android:layout_width=
"wrap_content"
android:layout_height=
"24dp"
android:layout_alignParentRight=
"true"
android:layout_centerInParent=
"true"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/dynamic_bg_publish_button"
android:gravity=
"center"
android:paddingLeft=
"10dp"
android:paddingRight=
"10dp"
android:text=
"发布"
android:textColor=
"@color/dynamic_sel_but_text_color"
android:textSize=
"14sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
...
...
m-dynamic/src/main/res/layout/dynamic_fragment_moments.xml
View file @
776bc4d7
...
...
@@ -4,8 +4,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/trend_home_swl"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fitsSystemWindows=
"true"
>
android:layout_height=
"match_parent"
>
<android.support.design.widget.CoordinatorLayout
android:layout_width=
"match_parent"
...
...
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
View file @
776bc4d7
...
...
@@ -30,7 +30,6 @@ import com.yidianling.im.ui.page.fragment.bean.UnreadMessageBean
import
com.yidianling.im.ui.page.popupWindow.ChatSettingPopupWindow
import
com.yidianling.im.ui.param.ClearMessageParam
import
com.yidianling.im.ui.param.UnreadParam
import
com.yidianling.router.RouterManager
import
de.greenrobot.event.EventBus
import
io.reactivex.Observable
import
io.reactivex.android.schedulers.AndroidSchedulers
...
...
@@ -241,15 +240,11 @@ class NewMultiMessageFragment : BaseFragment() {
}
override
fun
onChatSettingClick
()
{
RouterManager
.
getAppRouter
()
?.
let
{
ARouter
.
getInstance
().
build
(
"/main/notifysetting"
).
navigation
()
}
ARouter
.
getInstance
().
build
(
"/main/notifysetting"
).
navigation
()
}
override
fun
onSafeInfoSetting
()
{
RouterManager
.
getAppRouter
()
?.
let
{
startActivity
(
ImIn
.
getUserService
().
privacyIntent
(
activity
))
}
startActivity
(
ImIn
.
getUserService
().
privacyIntent
(
activity
))
}
override
fun
onDismissAction
()
{
...
...
m-im/src/main/java/com/yidianling/im/ui/page/fragment/ChatFragment.kt
View file @
776bc4d7
...
...
@@ -302,13 +302,13 @@ class ChatFragment : BaseFragment(), XRecyclerView.LoadingListener {
chat_serviced_message
.
setTextColor
(
Color
.
parseColor
(
"#666666"
))
if
(
modelType
==
ChatModelType
.
ALL
)
{
chat_all_message
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
im_but_text_color
))
chat_all_message
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
im_
sel_
but_text_color
))
chat_all_message
.
setBackgroundResource
(
R
.
drawable
.
im_chat_model_selected_bg
)
}
else
if
(
modelType
==
ChatModelType
.
SERVICING
)
{
chat_servicing_message
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
im_but_text_color
))
chat_servicing_message
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
im_
sel_
but_text_color
))
chat_servicing_message
.
setBackgroundResource
(
R
.
drawable
.
im_chat_model_selected_bg
)
}
else
if
(
modelType
==
ChatModelType
.
SERVICED
)
{
chat_serviced_message
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
im_but_text_color
))
chat_serviced_message
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
im_
sel_
but_text_color
))
chat_serviced_message
.
setBackgroundResource
(
R
.
drawable
.
im_chat_model_selected_bg
)
}
}
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/StatusBarUtils.kt
View file @
776bc4d7
...
...
@@ -1050,13 +1050,21 @@ class StatusBarUtils {
/**
* 设置自定义状态栏位置
*/
fun
setCustomStatusView
(
context
:
Activity
,
statusView
:
View
,
params
:
ViewGroup
.
LayoutParams
){
fun
setCustomStatusView
(
context
:
Activity
,
statusView
:
View
){
setCustomStatusView
(
context
,
statusView
,
false
)
}
fun
setCustomStatusView
(
context
:
Activity
,
statusView
:
View
,
isDarkMode
:
Boolean
=
false
){
val
params
=
statusView
.
layoutParams
setTransparentForImageView
(
context
,
null
)
val
statusBarHeight
=
StatusBarUtils
.
getStatusBarHeight
(
context
)
params
.
height
=
RxImageTool
.
dp2px
(
48f
)
+
statusBarHeight
statusView
.
setPadding
(
0
,
statusBarHeight
,
0
,
0
)
if
(
isDarkMode
)
{
statusBarLightMode
(
context
)
}
}
}
//====================设置Activity状态栏View END====================
...
...
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