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
aeff1b11
Commit
aeff1b11
authored
Dec 18, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改动态模块样式
parent
f1b324e6
Show whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
172 additions
and
101 deletions
+172
-101
audioim_home_button_autoaxb_background.xml
m-audioim/src/main/res/drawable/audioim_home_button_autoaxb_background.xml
+2
-1
AndroidManifest.xml
m-dynamic/src/main/AndroidManifest.xml
+22
-11
MyTrendsActivity.kt
m-dynamic/src/main/java/com/yidianling/dynamic/activity/MyTrendsActivity.kt
+4
-4
MembersActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/members/MembersActivity.java
+4
-4
PublishTrendActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/PublishTrendActivity.java
+4
-0
TopicDetailActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/topic/topicDetail/TopicDetailActivity.java
+10
-1
TrendsDetailActivity.java
m-dynamic/src/main/java/com/yidianling/dynamic/trendsDetail/TrendsDetailActivity.java
+7
-0
dynamic_background_publish_trend_top.xml
m-dynamic/src/main/res/drawable/dynamic_background_publish_trend_top.xml
+1
-1
dynamic_bg_fcous_selected.xml
m-dynamic/src/main/res/drawable/dynamic_bg_fcous_selected.xml
+1
-1
dynamic_bg_hot_selected.xml
m-dynamic/src/main/res/drawable/dynamic_bg_hot_selected.xml
+1
-1
dynamic_bg_radius_line_green_20.xml
m-dynamic/src/main/res/drawable/dynamic_bg_radius_line_green_20.xml
+1
-1
dynamic_bg_recommend_selected.xml
m-dynamic/src/main/res/drawable/dynamic_bg_recommend_selected.xml
+2
-1
dynamic_cancel_focus_text_bg.xml
m-dynamic/src/main/res/drawable/dynamic_cancel_focus_text_bg.xml
+2
-2
dynamic_focus_btn_bg2.xml
m-dynamic/src/main/res/drawable/dynamic_focus_btn_bg2.xml
+1
-1
dynamic_focus_topic_detail_bg.xml
m-dynamic/src/main/res/drawable/dynamic_focus_topic_detail_bg.xml
+2
-2
dynamic_has_focus_bg.xml
m-dynamic/src/main/res/drawable/dynamic_has_focus_bg.xml
+2
-1
dynamic_shape_green_border_trend_info_bg.xml
m-dynamic/src/main/res/drawable/dynamic_shape_green_border_trend_info_bg.xml
+1
-1
dynamic_activity_all_topic.xml
m-dynamic/src/main/res/layout/dynamic_activity_all_topic.xml
+1
-1
dynamic_activity_members.xml
m-dynamic/src/main/res/layout/dynamic_activity_members.xml
+3
-3
dynamic_activity_mytrends.xml
m-dynamic/src/main/res/layout/dynamic_activity_mytrends.xml
+3
-3
dynamic_activity_selec_topic.xml
m-dynamic/src/main/res/layout/dynamic_activity_selec_topic.xml
+1
-1
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
+14
-8
dynamic_activity_trend_details.xml
m-dynamic/src/main/res/layout/dynamic_activity_trend_details.xml
+3
-3
dynamic_activity_trends_reply_info.xml
m-dynamic/src/main/res/layout/dynamic_activity_trends_reply_info.xml
+3
-3
dynamic_cancel_focus_dialog_layout.xml
m-dynamic/src/main/res/layout/dynamic_cancel_focus_dialog_layout.xml
+1
-1
dynamic_fragment_moments.xml
m-dynamic/src/main/res/layout/dynamic_fragment_moments.xml
+3
-3
dynamic_fragment_trends_list.xml
m-dynamic/src/main/res/layout/dynamic_fragment_trends_list.xml
+2
-2
dynamic_item_alltopic.xml
m-dynamic/src/main/res/layout/dynamic_item_alltopic.xml
+1
-1
dynamic_item_talk_list.xml
m-dynamic/src/main/res/layout/dynamic_item_talk_list.xml
+1
-1
colors.xml
m-dynamic/src/xlzx/res/values/colors.xml
+15
-0
colors.xml
m-dynamic/src/ydl/res/values/colors.xml
+15
-0
HomePresenterImpl.kt
m-home/src/xlzx/java/com/yidianling/home/presenter/HomePresenterImpl.kt
+2
-1
UserBIConstants.kt
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
+8
-8
SmsLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/SmsLoginActivity.kt
+3
-3
InputPassWordPresenterImpl.kt
m-user/src/main/java/com/yidianling/user/ui/login/presenter/InputPassWordPresenterImpl.kt
+5
-5
LoginPresenterImpl.kt
m-user/src/main/java/com/yidianling/user/ui/login/presenter/LoginPresenterImpl.kt
+5
-14
VerificationCodePresenterImpl.kt
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
+2
-3
StatusBarUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/StatusBarUtils.kt
+10
-0
No files found.
m-audioim/src/main/res/drawable/audioim_home_button_autoaxb_background.xml
View file @
aeff1b11
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<corners
android:radius=
"20dp"
/>
<corners
android:radius=
"20dp"
/>
<gradient
android:startColor=
"#1DA1F2"
<gradient
android:startColor=
"#1DA1F2"
android:endColor=
"
#23B2FA
"
android:endColor=
"
@color/dynamic_main_theme_light
"
android:angle=
"180"
/>
android:angle=
"180"
/>
</shape>
</shape>
\ No newline at end of file
m-dynamic/src/main/AndroidManifest.xml
View file @
aeff1b11
...
@@ -7,39 +7,49 @@
...
@@ -7,39 +7,49 @@
<application>
<application>
<activity
<activity
android:name=
".trendsDetail.TrendsDetailActivity"
android:name=
".trendsDetail.TrendsDetailActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".topic.topicDetail.TopicDetailActivity"
android:name=
".topic.topicDetail.TopicDetailActivity"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".publishTrend.PublishTrendActivity"
android:name=
".publishTrend.PublishTrendActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".activity.TrendsReplyInfoActivity"
android:name=
".activity.TrendsReplyInfoActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".activity.MyTrendsActivity"
android:name=
".activity.MyTrendsActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".common.browsePictures.BrowsePicturesActivity"
android:name=
".common.browsePictures.BrowsePicturesActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".common.browsePictures.BrowsePicturesActivity2"
android:name=
".common.browsePictures.BrowsePicturesActivity2"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".members.MembersActivity"
android:name=
".members.MembersActivity"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".publishTrend.SelecTopicActivity"
android:name=
".publishTrend.SelecTopicActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".topic.AllTopicActivity"
android:name=
".topic.AllTopicActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
<activity
<activity
android:name=
".thank.ThankActivity"
android:name=
".thank.ThankActivity"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
android:theme=
"@style/platform_NoTitleTheme"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
m-dynamic/src/main/java/com/yidianling/dynamic/activity/MyTrendsActivity.kt
View file @
aeff1b11
...
@@ -104,9 +104,9 @@ class MyTrendsActivity : BaseActivity() {
...
@@ -104,9 +104,9 @@ class MyTrendsActivity : BaseActivity() {
//切换标签选中状态
//切换标签选中状态
private
fun
changeLabel
(
position
:
Int
,
isChangeFragment
:
Boolean
)
{
private
fun
changeLabel
(
position
:
Int
,
isChangeFragment
:
Boolean
)
{
if
(
position
==
0
)
{
if
(
position
==
0
)
{
item_topic_detail_new_tv
!!
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
title_green
))
item_topic_detail_new_tv
!!
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
main_theme
))
item_topic_detail_new_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
title_green
))
item_topic_detail_new_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
main_theme
))
item_topic_detail_hot_tv
!!
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
dynamic_text_gray
))
item_topic_detail_hot_tv
!!
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
dynamic_text_gray
))
item_topic_detail_hot_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_white
))
item_topic_detail_hot_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_white
))
...
@@ -116,8 +116,8 @@ class MyTrendsActivity : BaseActivity() {
...
@@ -116,8 +116,8 @@ class MyTrendsActivity : BaseActivity() {
item_topic_detail_new_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_white
))
item_topic_detail_new_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_white
))
item_topic_detail_hot_tv
!!
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
title_green
))
item_topic_detail_hot_tv
!!
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
main_theme
))
item_topic_detail_hot_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
title_green
))
item_topic_detail_hot_hint_tv
!!
.
setBackgroundColor
(
resources
.
getColor
(
R
.
color
.
dynamic_
main_theme
))
}
}
if
(
isChangeFragment
)
{
if
(
isChangeFragment
)
{
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/members/MembersActivity.java
View file @
aeff1b11
...
@@ -286,7 +286,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
...
@@ -286,7 +286,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
// members_top_user_focus_ortion_hint_iv.setVisibility(View.VISIBLE);
// members_top_user_focus_ortion_hint_iv.setVisibility(View.VISIBLE);
members_top_user_focus_ortion_tv
.
setText
(
"已关注"
);
members_top_user_focus_ortion_tv
.
setText
(
"已关注"
);
members_top_user_focus_ortion_tv
.
setTextColor
(
Color
.
parseColor
(
"#1DA1F2"
));
members_top_user_focus_ortion_tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_main_theme
));
focus_state
=
"1"
;
focus_state
=
"1"
;
}
else
{
}
else
{
members_top_user_focus_ortion_rel
.
setBackgroundResource
(
R
.
drawable
.
dynamic_focus_topic_detail_bg
);
members_top_user_focus_ortion_rel
.
setBackgroundResource
(
R
.
drawable
.
dynamic_focus_topic_detail_bg
);
...
@@ -462,7 +462,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
...
@@ -462,7 +462,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
members_top_user_focus_ortion_tv
.
setCompoundDrawablePadding
(
20
);
members_top_user_focus_ortion_tv
.
setCompoundDrawablePadding
(
20
);
members_top_user_focus_ortion_tv
.
setCompoundDrawables
(
null
,
null
,
drawable
,
null
);
members_top_user_focus_ortion_tv
.
setCompoundDrawables
(
null
,
null
,
drawable
,
null
);
members_top_user_focus_ortion_tv
.
setText
(
"已关注"
);
members_top_user_focus_ortion_tv
.
setText
(
"已关注"
);
members_top_user_focus_ortion_tv
.
setTextColor
(
Color
.
parseColor
(
"#1DA1F2"
));
members_top_user_focus_ortion_tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_main_theme
));
}
else
{
}
else
{
members_top_user_focus_ortion_rel
.
setBackgroundResource
(
R
.
drawable
.
dynamic_focus_topic_detail_bg
);
members_top_user_focus_ortion_rel
.
setBackgroundResource
(
R
.
drawable
.
dynamic_focus_topic_detail_bg
);
fans_count
=
(
fans_counti
-
1
)
+
""
;
fans_count
=
(
fans_counti
-
1
)
+
""
;
...
@@ -554,7 +554,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
...
@@ -554,7 +554,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
members_top_user_focus_ortion_tv
.
setCompoundDrawablePadding
(
20
);
members_top_user_focus_ortion_tv
.
setCompoundDrawablePadding
(
20
);
members_top_user_focus_ortion_tv
.
setCompoundDrawables
(
null
,
null
,
drawable
,
null
);
members_top_user_focus_ortion_tv
.
setCompoundDrawables
(
null
,
null
,
drawable
,
null
);
members_top_user_focus_ortion_tv
.
setText
(
"已关注"
);
members_top_user_focus_ortion_tv
.
setText
(
"已关注"
);
members_top_user_focus_ortion_tv
.
setTextColor
(
Color
.
parseColor
(
"#1DA1F2"
));
members_top_user_focus_ortion_tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_main_theme
));
}
else
{
}
else
{
members_top_user_focus_ortion_rel
.
setBackgroundResource
(
R
.
drawable
.
dynamic_focus_topic_detail_bg
);
members_top_user_focus_ortion_rel
.
setBackgroundResource
(
R
.
drawable
.
dynamic_focus_topic_detail_bg
);
members_top_user_focus_ortion_tv
.
setCompoundDrawables
(
null
,
null
,
null
,
null
);
members_top_user_focus_ortion_tv
.
setCompoundDrawables
(
null
,
null
,
null
,
null
);
...
@@ -805,7 +805,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
...
@@ -805,7 +805,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
}
else
{
//滑动到banner下面设置普通颜色
}
else
{
//滑动到banner下面设置普通颜色
members_title_top_tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_black
));
members_title_top_tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_black
));
members_title_top_tv
.
setText
(
name
);
members_title_top_tv
.
setText
(
name
);
members_title_back_iv
.
setImageResource
(
R
.
drawable
.
dynamic_toolbar
_back
);
members_title_back_iv
.
setImageResource
(
R
.
drawable
.
platform_common
_back
);
members_title_top_right_tv
.
setImageResource
(
R
.
drawable
.
dynamic_more_green
);
members_title_top_right_tv
.
setImageResource
(
R
.
drawable
.
dynamic_more_green
);
// members_top_view.setBackgroundColor(getResources().getColor(R.color.dynamic_black));
// members_top_view.setBackgroundColor(getResources().getColor(R.color.dynamic_black));
members_title_rel
.
setBackgroundDrawable
(
getResources
().
getDrawable
(
R
.
drawable
.
dynamic_layout_border
));
members_title_rel
.
setBackgroundDrawable
(
getResources
().
getDrawable
(
R
.
drawable
.
dynamic_layout_border
));
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/PublishTrendActivity.java
View file @
aeff1b11
...
@@ -25,6 +25,7 @@ import com.flyco.tablayout.listener.OnTabSelectListener;
...
@@ -25,6 +25,7 @@ import com.flyco.tablayout.listener.OnTabSelectListener;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
;
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
;
import
com.ydl.ydlcommon.utils.StatusBarUtils
;
import
com.ydl.ydlcommon.view.NoScrollViewPager
;
import
com.ydl.ydlcommon.view.NoScrollViewPager
;
import
com.yidianling.dynamic.DynamicConstants
;
import
com.yidianling.dynamic.DynamicConstants
;
import
com.yidianling.dynamic.R
;
import
com.yidianling.dynamic.R
;
...
@@ -53,6 +54,7 @@ public class PublishTrendActivity extends BaseActivity {
...
@@ -53,6 +54,7 @@ public class PublishTrendActivity extends BaseActivity {
private
List
<
Fragment
>
fragmentList
=
new
ArrayList
<>();
private
List
<
Fragment
>
fragmentList
=
new
ArrayList
<>();
private
PopupWindow
noticePopupWindow
;
private
PopupWindow
noticePopupWindow
;
private
Handler
handler
;
private
Handler
handler
;
private
View
mPublishTrendTitle
;
public
static
Intent
newIntent
(
Activity
activity
,
String
url
,
String
cover
,
String
title
)
{
public
static
Intent
newIntent
(
Activity
activity
,
String
url
,
String
cover
,
String
title
)
{
Intent
intent
=
new
Intent
(
activity
,
PublishTrendActivity
.
class
);
Intent
intent
=
new
Intent
(
activity
,
PublishTrendActivity
.
class
);
...
@@ -103,6 +105,7 @@ public class PublishTrendActivity extends BaseActivity {
...
@@ -103,6 +105,7 @@ public class PublishTrendActivity extends BaseActivity {
SharedPreferencesEditor
.
putString
(
"trend_state"
,
""
);
SharedPreferencesEditor
.
putString
(
"trend_state"
,
""
);
handler
=
new
Handler
();
handler
=
new
Handler
();
mBackIv
=
findViewById
(
R
.
id
.
img_back
);
mBackIv
=
findViewById
(
R
.
id
.
img_back
);
mPublishTrendTitle
=
findViewById
(
R
.
id
.
publish_trend_title_rel
);
mBackIv
.
setOnClickListener
(
v
->
{
mBackIv
.
setOnClickListener
(
v
->
{
finish
();
finish
();
...
@@ -119,6 +122,7 @@ public class PublishTrendActivity extends BaseActivity {
...
@@ -119,6 +122,7 @@ public class PublishTrendActivity extends BaseActivity {
mTableLayout
=
findViewById
(
R
.
id
.
tab_layout
);
mTableLayout
=
findViewById
(
R
.
id
.
tab_layout
);
mToastView
=
findViewById
(
R
.
id
.
tv_coustom_toast_view
);
mToastView
=
findViewById
(
R
.
id
.
tv_coustom_toast_view
);
initData
();
initData
();
StatusBarUtils
.
Companion
.
setCustomStatusView
(
this
,
mPublishTrendTitle
,
mPublishTrendTitle
.
getLayoutParams
());
}
}
private
void
initData
()
{
private
void
initData
()
{
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/topic/topicDetail/TopicDetailActivity.java
View file @
aeff1b11
...
@@ -38,6 +38,7 @@ import com.ydl.webview.NewH5Activity;
...
@@ -38,6 +38,7 @@ import com.ydl.webview.NewH5Activity;
import
com.ydl.ydl_image.module.GlideApp
;
import
com.ydl.ydl_image.module.GlideApp
;
import
com.ydl.ydlcommon.actions.share.ShareUtils
;
import
com.ydl.ydlcommon.actions.share.ShareUtils
;
import
com.ydl.ydlcommon.base.BaseMvpActivity
;
import
com.ydl.ydlcommon.base.BaseMvpActivity
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.ui.LogoLoadingView
;
import
com.ydl.ydlcommon.ui.LogoLoadingView
;
import
com.ydl.ydlcommon.utils.BuryPointUtils
;
import
com.ydl.ydlcommon.utils.BuryPointUtils
;
import
com.yidianling.common.tools.LogUtil
;
import
com.yidianling.common.tools.LogUtil
;
...
@@ -52,6 +53,8 @@ import com.yidianling.dynamic.router.DynamicIn;
...
@@ -52,6 +53,8 @@ import com.yidianling.dynamic.router.DynamicIn;
import
com.yidianling.dynamic.trendList.TrendListInFragment
;
import
com.yidianling.dynamic.trendList.TrendListInFragment
;
import
com.yidianling.dynamic.trendList.adapter.RecommendTopAdapter
;
import
com.yidianling.dynamic.trendList.adapter.RecommendTopAdapter
;
import
org.jetbrains.annotations.NotNull
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
...
@@ -139,6 +142,12 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
...
@@ -139,6 +142,12 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
private
static
final
String
IS_SPLASH
=
"isSplash"
;
private
static
final
String
IS_SPLASH
=
"isSplash"
;
private
static
final
String
TOPIC_ID
=
"topic_id"
;
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
)
{
public
static
Intent
newIntent
(
Context
context
,
boolean
isSplash
,
String
topicId
)
{
Intent
intent
=
new
Intent
(
context
,
TopicDetailActivity
.
class
);
Intent
intent
=
new
Intent
(
context
,
TopicDetailActivity
.
class
);
intent
.
putExtra
(
IS_SPLASH
,
isSplash
);
intent
.
putExtra
(
IS_SPLASH
,
isSplash
);
...
@@ -237,7 +246,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
...
@@ -237,7 +246,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
if
(
backgroundColor
!=
R
.
color
.
dynamic_white
)
{
if
(
backgroundColor
!=
R
.
color
.
dynamic_white
)
{
mToolbar
.
setBackgroundColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_white
));
mToolbar
.
setBackgroundColor
(
getResources
().
getColor
(
R
.
color
.
dynamic_white
));
alPhaAnimation
(
mToolbar
,
0
,
1
,
null
);
alPhaAnimation
(
mToolbar
,
0
,
1
,
null
);
mTopicDetailTitleBackIv
.
setImageResource
(
R
.
drawable
.
dynamic_toolbar
_back
);
mTopicDetailTitleBackIv
.
setImageResource
(
R
.
drawable
.
platform_common
_back
);
mTopicDetailTitleTopRightTv
.
setImageResource
(
R
.
drawable
.
dynamic_more_green
);
mTopicDetailTitleTopRightTv
.
setImageResource
(
R
.
drawable
.
dynamic_more_green
);
backgroundColor
=
R
.
color
.
dynamic_white
;
backgroundColor
=
R
.
color
.
dynamic_white
;
}
}
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/trendsDetail/TrendsDetailActivity.java
View file @
aeff1b11
...
@@ -50,6 +50,7 @@ import com.ydl.ydlcommon.actions.share.ShareMoreBean;
...
@@ -50,6 +50,7 @@ import com.ydl.ydlcommon.actions.share.ShareMoreBean;
import
com.ydl.ydlcommon.actions.share.ShareUtils
;
import
com.ydl.ydlcommon.actions.share.ShareUtils
;
import
com.ydl.ydlcommon.base.BaseMvpActivity
;
import
com.ydl.ydlcommon.base.BaseMvpActivity
;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.data.http.BaseResponse
;
import
com.ydl.ydlcommon.data.http.BaseResponse
;
import
com.ydl.ydlcommon.router.IYDLRouterConstant
;
import
com.ydl.ydlcommon.router.IYDLRouterConstant
;
import
com.ydl.ydlcommon.ui.LogoLoadingView
;
import
com.ydl.ydlcommon.ui.LogoLoadingView
;
...
@@ -296,6 +297,12 @@ public class TrendsDetailActivity extends BaseMvpActivity<ITrendsDetailView, ITr
...
@@ -296,6 +297,12 @@ public class TrendsDetailActivity extends BaseMvpActivity<ITrendsDetailView, ITr
private
Runnable
showEmojiRunnable
;
private
Runnable
showEmojiRunnable
;
private
Runnable
showTextRunnable
;
private
Runnable
showTextRunnable
;
@NotNull
@Override
public
StatusBarOptions
getStatusViewOptions
()
{
return
new
StatusBarOptions
(
true
,
true
);
}
public
static
Intent
newIntent
(
Activity
activity
,
int
trendId
,
boolean
isScrollToZan
)
{
public
static
Intent
newIntent
(
Activity
activity
,
int
trendId
,
boolean
isScrollToZan
)
{
Intent
intent
=
new
Intent
(
activity
,
TrendsDetailActivity
.
class
);
Intent
intent
=
new
Intent
(
activity
,
TrendsDetailActivity
.
class
);
Bundle
bundle
=
new
Bundle
();
Bundle
bundle
=
new
Bundle
();
...
...
m-dynamic/src/main/res/drawable/dynamic_background_publish_trend_top.xml
View file @
aeff1b11
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<item
android:state_enabled=
"true"
>
<item
android:state_enabled=
"true"
>
<shape>
<shape>
<corners
android:radius=
"0dp"
></corners>
<corners
android:radius=
"0dp"
></corners>
<gradient
android:endColor=
"
#05cbfc"
android:startColor=
"#3484da
"
/>
<gradient
android:endColor=
"
@color/dynamic_main_theme_light"
android:startColor=
"@color/dynamic_main_theme
"
/>
<stroke
android:width=
"0dp"
android:color=
"@color/platform_bebebe"
/>
<stroke
android:width=
"0dp"
android:color=
"@color/platform_bebebe"
/>
</shape>
</shape>
</item>
</item>
...
...
m-dynamic/src/main/res/drawable/dynamic_bg_fcous_selected.xml
View file @
aeff1b11
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
<solid
android:color=
"
#1DA1F2
"
/>
android:color=
"
@color/dynamic_main_theme
"
/>
<corners
<corners
android:bottomRightRadius=
"5dp"
android:bottomRightRadius=
"5dp"
android:topRightRadius=
"5dp"
/>
android:topRightRadius=
"5dp"
/>
...
...
m-dynamic/src/main/res/drawable/dynamic_bg_hot_selected.xml
View file @
aeff1b11
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
<solid
android:color=
"
#1DA1F2
"
/>
android:color=
"
@color/dynamic_main_theme
"
/>
<corners
<corners
android:bottomLeftRadius=
"5dp"
android:bottomLeftRadius=
"5dp"
android:topLeftRadius=
"5dp"
/>
android:topLeftRadius=
"5dp"
/>
...
...
m-dynamic/src/main/res/drawable/dynamic_bg_radius_line_green_20.xml
View file @
aeff1b11
...
@@ -3,6 +3,6 @@
...
@@ -3,6 +3,6 @@
<corners
android:radius=
"20dp"
></corners>
<corners
android:radius=
"20dp"
></corners>
<solid
android:color=
"@color/dynamic_white"
/>
<solid
android:color=
"@color/dynamic_white"
/>
<stroke
android:width=
"1dp"
android:color=
"@color/dynamic_
google_green
"
/>
<stroke
android:width=
"1dp"
android:color=
"@color/dynamic_
main_theme
"
/>
</shape>
</shape>
m-dynamic/src/main/res/drawable/dynamic_bg_recommend_selected.xml
View file @
aeff1b11
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
<solid
android:color=
"
#1DA1F2
"
/>
android:color=
"
@color/dynamic_main_theme
"
/>
</shape>
</shape>
\ No newline at end of file
m-dynamic/src/main/res/drawable/dynamic_cancel_focus_text_bg.xml
View file @
aeff1b11
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<gradient
<gradient
android:startColor=
"
#1DA1F2
"
android:startColor=
"
@color/dynamic_main_theme
"
android:endColor=
"
#23B2FA
"
/>
android:endColor=
"
@color/dynamic_main_theme_light
"
/>
<corners
android:bottomRightRadius=
"8dp"
/>
<corners
android:bottomRightRadius=
"8dp"
/>
...
...
m-dynamic/src/main/res/drawable/dynamic_focus_btn_bg2.xml
View file @
aeff1b11
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
android:topRightRadius=
"20dp"
/>
android:topRightRadius=
"20dp"
/>
<stroke
<stroke
android:width=
"1dp"
android:width=
"1dp"
android:color=
"@color/dynamic_
google_green
"
/>
android:color=
"@color/dynamic_
main_theme
"
/>
</shape>
</shape>
</item>
</item>
</layer-list>
</layer-list>
m-dynamic/src/main/res/drawable/dynamic_focus_topic_detail_bg.xml
View file @
aeff1b11
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
<solid
android:color=
"@color/dynamic_
google_green
"
/>
android:color=
"@color/dynamic_
main_theme
"
/>
<corners
<corners
android:bottomRightRadius=
"20dp"
android:bottomRightRadius=
"20dp"
android:bottomLeftRadius=
"20dp"
android:bottomLeftRadius=
"20dp"
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
android:topRightRadius=
"20dp"
/>
android:topRightRadius=
"20dp"
/>
<stroke
<stroke
android:width=
"0.5dp"
android:width=
"0.5dp"
android:color=
"@color/dynamic_
google_green
"
/>
android:color=
"@color/dynamic_
main_theme
"
/>
</shape>
</shape>
</item>
</item>
</layer-list>
</layer-list>
m-dynamic/src/main/res/drawable/dynamic_has_focus_bg.xml
View file @
aeff1b11
...
@@ -5,6 +5,6 @@
...
@@ -5,6 +5,6 @@
<corners
android:radius=
"17.5dp"
/>
<corners
android:radius=
"17.5dp"
/>
<stroke
android:width=
"1dp"
<stroke
android:width=
"1dp"
android:color=
"
#1DA1F2
"
/>
android:color=
"
@color/dynamic_main_theme
"
/>
</shape>
</shape>
\ No newline at end of file
m-dynamic/src/main/res/drawable/dynamic_shape_green_border_trend_info_bg.xml
View file @
aeff1b11
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<stroke
<stroke
android:width=
"1dp"
android:width=
"1dp"
android:color=
"@color/dynamic_
google_green
"
/>
android:color=
"@color/dynamic_
main_theme
"
/>
<solid
android:color=
"@color/dynamic_transparent"
/>
<solid
android:color=
"@color/dynamic_transparent"
/>
</shape>
</shape>
m-dynamic/src/main/res/layout/dynamic_activity_all_topic.xml
View file @
aeff1b11
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
android:id=
"@+id/topic_title_back_iv"
android:id=
"@+id/topic_title_back_iv"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:src=
"@drawable/
dynamic_toolbar
_back"
android:src=
"@drawable/
platform_common
_back"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"30dp"
android:paddingRight=
"30dp"
...
...
m-dynamic/src/main/res/layout/dynamic_activity_members.xml
View file @
aeff1b11
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<TextView
<TextView
android:id=
"@+id/members_top_user_visit_num_tv"
android:id=
"@+id/members_top_user_visit_num_tv"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content
"
android:layout_height=
"29dp
"
android:text=
""
android:text=
""
android:textColor=
"@color/dynamic_text_gray"
/>
android:textColor=
"@color/dynamic_text_gray"
/>
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"15dp"
android:paddingRight=
"15dp"
android:text=
"动态"
android:text=
"动态"
android:textColor=
"@color/dynamic_
title_green
"
android:textColor=
"@color/dynamic_
main_theme
"
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
<TextView
<TextView
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
android:layout_height=
"2dp"
android:layout_height=
"2dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:background=
"@color/dynamic_
title_green
"
/>
android:background=
"@color/dynamic_
main_theme
"
/>
</RelativeLayout>
</RelativeLayout>
...
...
m-dynamic/src/main/res/layout/dynamic_activity_mytrends.xml
View file @
aeff1b11
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"30dp"
android:paddingRight=
"30dp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:src=
"@drawable/
dynamic_toolbar
_back"
/>
android:src=
"@drawable/
platform_common
_back"
/>
<TextView
<TextView
android:id=
"@+id/tv_center_title"
android:id=
"@+id/tv_center_title"
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
android:paddingRight=
"15dp"
android:paddingRight=
"15dp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:text=
"我发布的"
android:text=
"我发布的"
android:textColor=
"@color/dynamic_
title_green
"
android:textColor=
"@color/dynamic_
main_theme
"
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
<TextView
<TextView
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
android:layout_height=
"2dp"
android:layout_height=
"2dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:background=
"@color/dynamic_
title_green
"
/>
android:background=
"@color/dynamic_
main_theme
"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
...
...
m-dynamic/src/main/res/layout/dynamic_activity_selec_topic.xml
View file @
aeff1b11
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"15dp"
android:paddingRight=
"15dp"
android:text=
"取消"
android:text=
"取消"
android:textColor=
"@color/
dynamic_google_green
"
android:textColor=
"@color/
platform_color_242424
"
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
</RelativeLayout>
</RelativeLayout>
<ScrollView
<ScrollView
...
...
m-dynamic/src/main/res/layout/dynamic_activity_topic_detail.xml
View file @
aeff1b11
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
android:background=
"@drawable/dynamic_focus_topic_detail_bg"
android:background=
"@drawable/dynamic_focus_topic_detail_bg"
android:gravity=
"center"
android:gravity=
"center"
android:text=
""
android:text=
""
android:textColor=
"@color/dynamic_
white
"
android:textColor=
"@color/dynamic_
but_text_color
"
android:textSize=
"14sp"
android:textSize=
"14sp"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"15dp"
android:paddingRight=
"15dp"
android:text=
""
android:text=
""
android:textColor=
"@color/dynamic_
google_green
"
/>
android:textColor=
"@color/dynamic_
main_theme
"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/topic_detail_users_rcv"
android:id=
"@+id/topic_detail_users_rcv"
...
@@ -306,7 +306,7 @@
...
@@ -306,7 +306,7 @@
android:layout_marginBottom=
"20dp"
android:layout_marginBottom=
"20dp"
android:elevation=
"3dp"
android:elevation=
"3dp"
android:src=
"@drawable/dynamic_newsfeed_new2"
android:src=
"@drawable/dynamic_newsfeed_new2"
app:backgroundTint=
"@color/dynamic_
google_green
"
app:backgroundTint=
"@color/dynamic_
main_theme
"
app:borderWidth=
"0dp"
app:borderWidth=
"0dp"
app:fabSize=
"normal"
/>
app:fabSize=
"normal"
/>
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.v4.widget.SwipeRefreshLayout>
<com.ydl.ydlcommon.
view
ui.LogoLoadingView
<com.ydl.ydlcommon.ui.LogoLoadingView
android:id=
"@+id/v_loading"
android:id=
"@+id/v_loading"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
...
...
m-dynamic/src/main/res/layout/dynamic_activity_trend.xml
View file @
aeff1b11
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
Frame
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
Linear
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
android:layout_gravity=
"center_vertical"
android:id=
"@+id/publish_trend_title_rel"
android:id=
"@+id/publish_trend_title_rel"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dynamic_title_height"
android:layout_height=
"@dimen/dynamic_title_height"
...
@@ -29,7 +31,7 @@
...
@@ -29,7 +31,7 @@
app:tl_indicator_anim_enable=
"false"
app:tl_indicator_anim_enable=
"false"
app:tl_indicator_height=
"0dp"
app:tl_indicator_height=
"0dp"
app:tl_tab_space_equal=
"true"
app:tl_tab_space_equal=
"true"
app:tl_textSelectColor=
"@color/dynamic_white
"
app:tl_textSelectColor=
"@color/platform_color_242424
"
app:tl_textUnselectColor=
"@color/platform_color_50ffffff"
app:tl_textUnselectColor=
"@color/platform_color_50ffffff"
app:tl_textsize=
"17sp"
/>
app:tl_textsize=
"17sp"
/>
...
@@ -46,22 +48,24 @@
...
@@ -46,22 +48,24 @@
android:paddingLeft=
"10dp"
android:paddingLeft=
"10dp"
android:paddingRight=
"10dp"
android:paddingRight=
"10dp"
android:text=
"发布"
android:text=
"发布"
android:textColor=
"@color/platform_color_0CC1F7
"
android:textColor=
"@color/dynamic_sel_but_text_color
"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<com.ydl.ydlcommon.view.NoScrollViewPager
<com.ydl.ydlcommon.view.NoScrollViewPager
android:id=
"@+id/view_pager"
android:id=
"@+id/view_pager"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_marginTop=
"45dp"
/>
<TextView
<TextView
android:id=
"@+id/tv_coustom_toast_view"
android:id=
"@+id/tv_coustom_toast_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginTop=
"45dp
"
android:layout_alignParentTop=
"true
"
android:background=
"@color/platform_color_FFEBE0"
android:background=
"@color/platform_color_FFEBE0"
android:gravity=
"center"
android:gravity=
"center"
android:textColor=
"@color/platform_color_FF5B05"
android:textColor=
"@color/platform_color_FF5B05"
...
@@ -70,6 +74,8 @@
...
@@ -70,6 +74,8 @@
tools:text=
"请选择在选择话题后进行发布哦~"
tools:text=
"请选择在选择话题后进行发布哦~"
tools:visibility=
"visible"
/>
tools:visibility=
"visible"
/>
</RelativeLayout>
<!--<RelativeLayout-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_notice_layout"-->
<!--android:id="@+id/rl_notice_layout"-->
...
@@ -97,4 +103,4 @@
...
@@ -97,4 +103,4 @@
<!--android:background="@drawable/dynamic_background_publish_triangle_view" />-->
<!--android:background="@drawable/dynamic_background_publish_triangle_view" />-->
<!--</RelativeLayout>-->
<!--</RelativeLayout>-->
</
Frame
Layout>
</
Linear
Layout>
m-dynamic/src/main/res/layout/dynamic_activity_trend_details.xml
View file @
aeff1b11
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"30dp"
android:paddingRight=
"30dp"
android:src=
"@drawable/
dynamic_toolbar
_back"
/>
android:src=
"@drawable/
platform_common
_back"
/>
<TextView
<TextView
android:id=
"@+id/tv_center_title"
android:id=
"@+id/tv_center_title"
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"15dp"
android:paddingRight=
"15dp"
android:src=
"@drawable/
dynamic_more_gree
n"
/>
android:src=
"@drawable/
platform_common_notice_more_u
n"
/>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -420,7 +420,7 @@
...
@@ -420,7 +420,7 @@
android:paddingRight=
"20dp"
android:paddingRight=
"20dp"
android:paddingTop=
"8dp"
android:paddingTop=
"8dp"
android:text=
"显示所有评论"
android:text=
"显示所有评论"
android:textColor=
"@color/dynamic_
google_green
"
android:textColor=
"@color/dynamic_
main_theme
"
android:textSize=
"15sp"
android:textSize=
"15sp"
android:visibility=
"gone"
android:visibility=
"gone"
tools:visibility=
"visible"
/>
tools:visibility=
"visible"
/>
...
...
m-dynamic/src/main/res/layout/dynamic_activity_trends_reply_info.xml
View file @
aeff1b11
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"30dp"
android:paddingRight=
"30dp"
android:src=
"@drawable/
dynamic_toolbar
_back"
/>
android:src=
"@drawable/
platform_common
_back"
/>
<TextView
<TextView
android:id=
"@+id/tv_center_title"
android:id=
"@+id/tv_center_title"
...
@@ -278,7 +278,7 @@
...
@@ -278,7 +278,7 @@
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/dynamic_shape_green_border_trend_info_bg"
android:background=
"@drawable/dynamic_shape_green_border_trend_info_bg"
android:gravity=
"center"
android:gravity=
"center"
android:textColor=
"@color/dynamic_
google_green
"
android:textColor=
"@color/dynamic_
main_theme
"
tools:visibility=
"visible"
tools:visibility=
"visible"
android:visibility=
"gone"
android:visibility=
"gone"
android:text=
"私聊"
/>
android:text=
"私聊"
/>
...
@@ -345,7 +345,7 @@
...
@@ -345,7 +345,7 @@
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:layout_marginLeft=
"40dp"
android:layout_marginLeft=
"40dp"
android:layout_marginRight=
"40dp"
android:layout_marginRight=
"40dp"
android:textColor=
"@color/dynamic_
google_green
"
android:textColor=
"@color/dynamic_
main_theme
"
android:background=
"@drawable/dynamic_bg_radius_line_green_20"
android:background=
"@drawable/dynamic_bg_radius_line_green_20"
android:text=
"回到主贴"
/>
android:text=
"回到主贴"
/>
...
...
m-dynamic/src/main/res/layout/dynamic_cancel_focus_dialog_layout.xml
View file @
aeff1b11
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:text=
"确定"
android:text=
"确定"
android:textColor=
"@color/dynamic_
white
"
android:textColor=
"@color/dynamic_
but_text_color
"
android:textSize=
"@dimen/dynamic_text_size_16"
android:textSize=
"@dimen/dynamic_text_size_16"
android:gravity=
"center"
android:gravity=
"center"
android:background=
"@drawable/dynamic_cancel_focus_text_bg"
android:background=
"@drawable/dynamic_cancel_focus_text_bg"
...
...
m-dynamic/src/main/res/layout/dynamic_fragment_moments.xml
View file @
aeff1b11
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/title_bar_height"
android:layout_height=
"@dimen/title_bar_height"
android:alpha=
"1"
android:alpha=
"1"
android:background=
"@color/
platform_main_theme_blu
e"
android:background=
"@color/
dynamic_main_them
e"
app:layout_collapseMode=
"pin"
>
app:layout_collapseMode=
"pin"
>
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"问答"
android:text=
"问答"
android:textColor=
"@color/dynamic_
white
"
android:textColor=
"@color/dynamic_
but_text_color
"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
...
@@ -293,7 +293,7 @@
...
@@ -293,7 +293,7 @@
android:layout_marginBottom=
"40dp"
android:layout_marginBottom=
"40dp"
android:elevation=
"3dp"
android:elevation=
"3dp"
android:src=
"@drawable/dynamic_publish_trend"
android:src=
"@drawable/dynamic_publish_trend"
app:backgroundTint=
"
#1DA1F2
"
app:backgroundTint=
"
@color/dynamic_main_theme
"
app:borderWidth=
"0dp"
app:borderWidth=
"0dp"
app:fabSize=
"normal"
/>
app:fabSize=
"normal"
/>
...
...
m-dynamic/src/main/res/layout/dynamic_fragment_trends_list.xml
View file @
aeff1b11
...
@@ -52,11 +52,11 @@
...
@@ -52,11 +52,11 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"20dp"
android:layout_marginBottom=
"20dp"
android:layout_marginRight=
"20dp"
android:layout_marginRight=
"20dp"
android:background=
"@color/dynamic_
google_green
"
android:background=
"@color/dynamic_
main_theme
"
android:elevation=
"3dp"
android:elevation=
"3dp"
android:padding=
"0dp"
android:padding=
"0dp"
android:src=
"@drawable/dynamic_newsfeed_new2"
android:src=
"@drawable/dynamic_newsfeed_new2"
app:backgroundTint=
"@color/dynamic_
google_green
"
app:backgroundTint=
"@color/dynamic_
main_theme
"
app:borderWidth=
"0dp"
app:borderWidth=
"0dp"
app:fabSize=
"normal"
app:fabSize=
"normal"
app:layout_anchor=
"@+id/trends_rcv"
app:layout_anchor=
"@+id/trends_rcv"
...
...
m-dynamic/src/main/res/layout/dynamic_item_alltopic.xml
View file @
aeff1b11
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"+ 关注"
android:text=
"+ 关注"
android:textColor=
"@color/dynamic_
google_green
"
android:textColor=
"@color/dynamic_
main_theme
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</RelativeLayout>
</RelativeLayout>
...
...
m-dynamic/src/main/res/layout/dynamic_item_talk_list.xml
View file @
aeff1b11
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
android:background=
"@drawable/dynamic_shape_green_border_trend_info_bg"
android:background=
"@drawable/dynamic_shape_green_border_trend_info_bg"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"私聊"
android:text=
"私聊"
android:textColor=
"@color/dynamic_
google_green
"
android:textColor=
"@color/dynamic_
main_theme
"
android:visibility=
"gone"
android:visibility=
"gone"
tools:visibility=
"visible"
/>
tools:visibility=
"visible"
/>
...
...
m-dynamic/src/xlzx/res/values/colors.xml
0 → 100644
View file @
aeff1b11
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--主题色-->
<color
name=
"dynamic_main_theme"
>
#fdbd00
</color>
<!--主题浅色-->
<color
name=
"dynamic_main_theme_light"
>
#FFEC8C
</color>
<!--主题亮色-->
<color
name=
"dynamic_main_theme_bright"
>
#fffae0
</color>
<!--确认按钮背景颜色-->
<color
name=
"dynamic_confirm_bg_color"
>
#FFDD33
</color>
<!--按钮文字颜色 YDL 为白色-->
<color
name=
"dynamic_but_text_color"
>
#242424
</color>
<!--选择按钮文字颜色 YDL 为蓝色-->
<color
name=
"dynamic_sel_but_text_color"
>
#242424
</color>
</resources>
m-dynamic/src/ydl/res/values/colors.xml
0 → 100644
View file @
aeff1b11
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--主题色-->
<color
name=
"dynamic_main_theme"
>
#1da1f2
</color>
<!--主题浅色-->
<color
name=
"dynamic_main_theme_light"
>
#60BDF5
</color>
<!--主题亮色-->
<color
name=
"dynamic_main_theme_bright"
>
#E8F6FF
</color>
<!--确认按钮背景颜色-->
<color
name=
"dynamic_confirm_bg_color"
>
#1da1f2
</color>
<!--按钮文字颜色-->
<color
name=
"dynamic_but_text_color"
>
#ffffff
</color>
<!--选择按钮文字颜色-->
<color
name=
"dynamic_sel_but_text_color"
>
#1da1f2
</color>
</resources>
m-home/src/xlzx/java/com/yidianling/home/presenter/HomePresenterImpl.kt
View file @
aeff1b11
...
@@ -189,7 +189,8 @@ class HomePresenterImpl : BaseHomePresenterImpl<IHomeContract.View, IHomeContrac
...
@@ -189,7 +189,8 @@ class HomePresenterImpl : BaseHomePresenterImpl<IHomeContract.View, IHomeContrac
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
).
setHotSearch
(
it
)
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
).
setHotSearch
(
it
)
}
}
},
},
mModel
.
consultRequest
(
mConsultType
).
map
{
mModel
.
consultRequest
(
mConsultType
)
.
map
{
//首页咨询数据
//首页咨询数据
homeList
.
add
(
getHomeItemFromTempData
(
it
,
YdlHomeViewHolderConstract
.
CONSULT_VIEW
))
homeList
.
add
(
getHomeItemFromTempData
(
it
,
YdlHomeViewHolderConstract
.
CONSULT_VIEW
))
},
},
...
...
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
View file @
aeff1b11
...
@@ -19,8 +19,8 @@ class UserBIConstants {
...
@@ -19,8 +19,8 @@ class UserBIConstants {
//百度监测 用户注册行为
//百度监测 用户注册行为
const
val
APP_REGISTER_PAGE
=
"app_register_page"
const
val
APP_REGISTER_PAGE
=
"app_register_page"
const
val
POSITION_LOGIN_CLICK
=
"login_click"
//登录点击
const
val
POSITION_LOGIN_CLICK
=
"login_
main|login_
click"
//登录点击
const
val
POSITION_LOGIN_SUCCESS_CLICK
=
"login_success_click"
//登录成功点击
const
val
POSITION_LOGIN_SUCCESS_CLICK
=
"login_
main|login_
success_click"
//登录成功点击
//百度监测 应用启动
//百度监测 应用启动
const
val
POSITION_APP_START_UP_CLICK
=
"app_start_up_click"
//应用启动
const
val
POSITION_APP_START_UP_CLICK
=
"app_start_up_click"
//应用启动
...
@@ -42,12 +42,12 @@ class UserBIConstants {
...
@@ -42,12 +42,12 @@ class UserBIConstants {
* action type
* action type
* 行为数据埋点,sign1字段 是对同一key下多种不同行为的描述
* 行为数据埋点,sign1字段 是对同一key下多种不同行为的描述
*/
*/
const
val
ACTION_TYPE_CODE_LOGIN
:
String
=
PART_ID_LOGIN_MAIN_PREFIX
+
"code_login"
//验证码登录
const
val
ACTION_TYPE_CODE_LOGIN
:
String
=
"code_login"
//验证码登录
const
val
ACTION_TYPE_RESET_PWD
:
String
=
PART_ID_LOGIN_MAIN_PREFIX
+
"reset_pwd"
//重置密码登录
const
val
ACTION_TYPE_RESET_PWD
:
String
=
"reset_pwd"
//重置密码登录
const
val
ACTION_TYPE_PWD_LOGIN
:
String
=
PART_ID_LOGIN_MAIN_PREFIX
+
"pwd_login"
//手机号密码登录
const
val
ACTION_TYPE_PWD_LOGIN
:
String
=
"pwd_login"
//手机号密码登录
const
val
ACTION_TYPE_DIRECT_LOGIN
:
String
=
PART_ID_LOGIN_MAIN_PREFIX
+
"direct_login"
//一键登录
const
val
ACTION_TYPE_DIRECT_LOGIN
:
String
=
"direct_login"
//一键登录
const
val
ACTION_TYPE_QQ_THIRD_LOGIN
:
String
=
PART_ID_LOGIN_MAIN_PREFIX
+
"qq_login"
//QQ登录
const
val
ACTION_TYPE_QQ_THIRD_LOGIN
:
String
=
"qq_login"
//QQ登录
const
val
ACTION_TYPE_WX_THIRD_LOGIN
:
String
=
PART_ID_LOGIN_MAIN_PREFIX
+
"wx_login"
//WX登录
const
val
ACTION_TYPE_WX_THIRD_LOGIN
:
String
=
"wx_login"
//WX登录
}
}
//====================壹点灵用户版首页(ydl_user_main_page)====================
//====================壹点灵用户版首页(ydl_user_main_page)====================
...
...
m-user/src/main/java/com/yidianling/user/ui/SmsLoginActivity.kt
View file @
aeff1b11
...
@@ -18,9 +18,9 @@ import com.ydl.ydlcommon.utils.remind.ToastHelper
...
@@ -18,9 +18,9 @@ import com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.router.im.IMLoginInfo
import
com.yidianling.router.im.IMLoginInfo
import
com.yidianling.router.im.IMRequestCallback
import
com.yidianling.router.im.IMRequestCallback
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.UserConstants
import
com.yidianling.user.UserConstants
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.http.UserHttp
import
com.yidianling.user.http.UserHttp
import
com.yidianling.user.http.UserHttpImpl
import
com.yidianling.user.http.UserHttpImpl
...
@@ -136,7 +136,7 @@ class SmsLoginActivity : BaseActivity() {
...
@@ -136,7 +136,7 @@ class SmsLoginActivity : BaseActivity() {
return
return
}
}
ActionCountUtils
.
count
(
UserBIConstants
.
ACTION_TYPE_CODE_LOGIN
)
ActionCountUtils
.
count
(
UserBIConstants
.
POSITION_LOGIN_CLICK
,
UserBIConstants
.
ACTION_TYPE_CODE_LOGIN
)
Log
.
e
(
"短信验证码:"
,
code
+
" - "
+
phoneNum
+
" - "
+
et_code
.
text
.
toString
());
Log
.
e
(
"短信验证码:"
,
code
+
" - "
+
phoneNum
+
" - "
+
et_code
.
text
.
toString
());
loginSub
=
userHttp
.
login
(
LoginParam
(
code
,
phoneNum
,
null
,
2
,
et_code
.
text
.
toString
()))
loginSub
=
userHttp
.
login
(
LoginParam
(
code
,
phoneNum
,
null
,
2
,
et_code
.
text
.
toString
()))
...
@@ -153,7 +153,7 @@ class SmsLoginActivity : BaseActivity() {
...
@@ -153,7 +153,7 @@ class SmsLoginActivity : BaseActivity() {
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
baiduActionBury
()
baiduActionBury
()
}
else
{
}
else
{
ActionCountUtils
.
countUid
(
it
.
uid
!!
,
UserBIConstants
.
ACTION_TYPE_CODE_LOGIN
)
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
uid
!!
,
UserBIConstants
.
ACTION_TYPE_CODE_LOGIN
)
}
}
ActivityManager
.
finishActivity
(
LoginActivity
::
class
.
java
)
ActivityManager
.
finishActivity
(
LoginActivity
::
class
.
java
)
if
(
ActivityManager
.
getActivitySize
()
<=
1
)
{
if
(
ActivityManager
.
getActivitySize
()
<=
1
)
{
...
...
m-user/src/main/java/com/yidianling/user/ui/login/presenter/InputPassWordPresenterImpl.kt
View file @
aeff1b11
...
@@ -6,14 +6,13 @@ import com.ydl.ydlcommon.modular.ModularServiceManager
...
@@ -6,14 +6,13 @@ import com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.router.YdlCommonOut
import
com.ydl.ydlcommon.router.YdlCommonOut
import
com.ydl.ydlcommon.utils.StringUtils
import
com.ydl.ydlcommon.utils.StringUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.http.request.PhoneLoginPwdParam
import
com.yidianling.user.http.request.PhoneLoginPwdParam
import
com.yidianling.user.http.request.PhoneResetPwdParam
import
com.yidianling.user.http.request.PhoneResetPwdParam
...
@@ -41,7 +40,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
...
@@ -41,7 +40,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
*/
*/
override
fun
resetPwd
(
newPassword
:
String
,
phone
:
String
,
msgCode
:
String
,
phoneCountryCode
:
String
)
{
override
fun
resetPwd
(
newPassword
:
String
,
phone
:
String
,
msgCode
:
String
,
phoneCountryCode
:
String
)
{
ActionCountUtils
.
count
(
UserBIConstants
.
ACTION_TYPE_RESET_PWD
)
ActionCountUtils
.
count
(
UserBIConstants
.
POSITION_LOGIN_CLICK
,
UserBIConstants
.
ACTION_TYPE_RESET_PWD
)
var
param
=
PhoneResetPwdParam
(
StringUtils
.
md5
(
newPassword
),
phoneCountryCode
,
msgCode
,
phone
)
var
param
=
PhoneResetPwdParam
(
StringUtils
.
md5
(
newPassword
),
phoneCountryCode
,
msgCode
,
phone
)
mModel
.
resetPwd
(
param
)
mModel
.
resetPwd
(
param
)
...
@@ -58,7 +57,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
...
@@ -58,7 +57,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
}
else
{
}
else
{
ToastUtil
.
toastShort
(
"修改密码成功"
)
ToastUtil
.
toastShort
(
"修改密码成功"
)
saveUserData
(
it
.
data
)
saveUserData
(
it
.
data
)
ActionCountUtils
.
count
(
UserBIConstants
.
ACTION_TYPE_RESET_PWD
)
ActionCountUtils
.
count
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
UserBIConstants
.
ACTION_TYPE_RESET_PWD
)
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
// 重设密码登录已经不可能是首次登录,所以不进行百度埋点
// 重设密码登录已经不可能是首次登录,所以不进行百度埋点
...
@@ -81,6 +80,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
...
@@ -81,6 +80,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
override
fun
userLoginByPassword
(
inputPassword
:
String
,
phone
:
String
,
phoneCountryCode
:
String
)
{
override
fun
userLoginByPassword
(
inputPassword
:
String
,
phone
:
String
,
phoneCountryCode
:
String
)
{
ActionCountUtils
.
count
(
UserBIConstants
.
ACTION_TYPE_PWD_LOGIN
)
ActionCountUtils
.
count
(
UserBIConstants
.
ACTION_TYPE_PWD_LOGIN
)
ActionCountUtils
.
count
(
UserBIConstants
.
POSITION_LOGIN_CLICK
,
UserBIConstants
.
ACTION_TYPE_RESET_PWD
)
var
param
=
PhoneLoginPwdParam
(
StringUtils
.
md5
(
inputPassword
),
phoneCountryCode
,
phone
)
var
param
=
PhoneLoginPwdParam
(
StringUtils
.
md5
(
inputPassword
),
phoneCountryCode
,
phone
)
...
@@ -102,7 +102,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
...
@@ -102,7 +102,7 @@ class InputPassWordPresenterImpl : BasePresenter<IInputPassWordContract.View, II
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
mView
.
baiduActionBury
()
mView
.
baiduActionBury
()
}
else
{
}
else
{
ActionCountUtils
.
countUid
(
UserBIConstants
.
ACTION_TYPE_PWD_LOGIN
,
it
.
data
.
uid
!!
)
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
data
.
uid
!!
,
UserBIConstants
.
ACTION_TYPE_PWD_LOGIN
)
}
}
mView
.
closeActivity
()
mView
.
closeActivity
()
}
}
...
...
m-user/src/main/java/com/yidianling/user/ui/login/presenter/LoginPresenterImpl.kt
View file @
aeff1b11
...
@@ -7,15 +7,13 @@ import com.umeng.socialize.bean.SHARE_MEDIA
...
@@ -7,15 +7,13 @@ import com.umeng.socialize.bean.SHARE_MEDIA
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.router.YdlCommonOut
import
com.ydl.ydlcommon.router.YdlCommonOut
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.
UserHelper
import
com.yidianling.user.
api.bean.UserResponseBean
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.http.UserHttpImpl
import
com.yidianling.user.http.UserHttpImpl
import
com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.http.request.BindPhoneJavaParam
...
@@ -76,8 +74,7 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
...
@@ -76,8 +74,7 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_ALIYUN_REGISTER_CLICK
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_ALIYUN_REGISTER_CLICK
)
}
else
{
}
else
{
ActionCountUtils
.
count
(
UserBIConstants
.
ACTION_TYPE_DIRECT_LOGIN
)
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
data
.
uid
!!
,
UserBIConstants
.
ACTION_TYPE_DIRECT_LOGIN
)
}
}
mView
.
autoLoginSuccess
()
mView
.
autoLoginSuccess
()
}
else
{
}
else
{
...
@@ -178,9 +175,7 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
...
@@ -178,9 +175,7 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
override
fun
loginByThird
(
activity
:
Activity
,
media
:
SHARE_MEDIA
)
{
override
fun
loginByThird
(
activity
:
Activity
,
media
:
SHARE_MEDIA
)
{
val
sign1
=
if
(
media
==
SHARE_MEDIA
.
QQ
)
UserBIConstants
.
ACTION_TYPE_QQ_THIRD_LOGIN
else
UserBIConstants
.
ACTION_TYPE_WX_THIRD_LOGIN
val
sign1
=
if
(
media
==
SHARE_MEDIA
.
QQ
)
UserBIConstants
.
ACTION_TYPE_QQ_THIRD_LOGIN
else
UserBIConstants
.
ACTION_TYPE_WX_THIRD_LOGIN
ActionCountUtils
.
count
(
UserHelper
.
getUserInfo
()
!!
.
uid
,
UserBIConstants
.
PART_ID_LOGIN_MAIN
,
ActionCountUtils
.
count
(
UserBIConstants
.
POSITION_LOGIN_CLICK
,
sign1
)
UserBIConstants
.
POSITION_LOGIN_CLICK
,
"友盟三方登录url无法获取"
,
"友盟三方登录api无法获取"
,
sign1
)
UserHttpImpl
.
getInstance
()
UserHttpImpl
.
getInstance
()
...
@@ -207,18 +202,14 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
...
@@ -207,18 +202,14 @@ class LoginPresenterImpl(view: ILoginContract.View) : BasePresenter<ILoginContra
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_QQ_REGISTER_CLICK
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_QQ_REGISTER_CLICK
)
}
else
{
}
else
{
ActionCountUtils
.
count
(
UserHelper
.
getUserInfo
()
!!
.
uid
,
UserBIConstants
.
PART_ID_LOGIN_MAIN
,
ActionCountUtils
.
count
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
sign1
)
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
"友盟三方登录url无法获取"
,
"友盟三方登录api无法获取"
,
sign1
)
}
}
}
else
{
}
else
{
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_WX_REGISTER_CLICK
)
mView
.
baiduActionBury
(
it
.
data
.
uid
,
UserBIConstants
.
POSITION_WX_REGISTER_CLICK
)
}
else
{
}
else
{
ActionCountUtils
.
count
(
UserHelper
.
getUserInfo
()
!!
.
uid
,
UserBIConstants
.
PART_ID_LOGIN_MAIN
,
ActionCountUtils
.
count
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
sign1
)
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
"友盟三方登录url无法获取"
,
"友盟三方登录api无法获取"
,
sign1
)
}
}
}
}
},
{
},
{
...
...
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
View file @
aeff1b11
...
@@ -3,14 +3,13 @@ package com.yidianling.user.ui.login.presenter
...
@@ -3,14 +3,13 @@ package com.yidianling.user.ui.login.presenter
import
android.text.TextUtils
import
android.text.TextUtils
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.http.request.PhoneLoginCodeParam
import
com.yidianling.user.http.request.PhoneLoginCodeParam
...
@@ -149,7 +148,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
...
@@ -149,7 +148,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
ModularServiceManager
.
provide
(
IHomeService
::
class
.
java
).
setDouble11ShowType
(
true
)
mView
.
baiduActionBury
()
mView
.
baiduActionBury
()
}
else
{
}
else
{
ActionCountUtils
.
countUid
(
UserBIConstants
.
ACTION_TYPE_CODE_LOGIN
,
it
.
data
.
uid
!!
)
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
it
.
data
.
uid
!!
,
UserBIConstants
.
ACTION_TYPE_CODE_LOGIN
)
}
}
mView
.
closeActivity
()
mView
.
closeActivity
()
}
else
{
}
else
{
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/StatusBarUtils.kt
View file @
aeff1b11
...
@@ -18,6 +18,7 @@ import android.view.WindowManager
...
@@ -18,6 +18,7 @@ import android.view.WindowManager
import
android.widget.LinearLayout
import
android.widget.LinearLayout
import
com.ydl.ydlcommon.R
import
com.ydl.ydlcommon.R
import
com.ydl.ydlcommon.bean.StatusBarOptions
import
com.ydl.ydlcommon.bean.StatusBarOptions
import
com.yidianling.common.tools.RxImageTool
/**
/**
...
@@ -1046,8 +1047,17 @@ class StatusBarUtils {
...
@@ -1046,8 +1047,17 @@ class StatusBarUtils {
}
}
return
statusView
return
statusView
}
}
/**
* 设置自定义状态栏位置
*/
fun
setCustomStatusView
(
context
:
Activity
,
statusView
:
View
,
params
:
ViewGroup
.
LayoutParams
){
setTransparentForImageView
(
context
,
null
)
val
statusBarHeight
=
StatusBarUtils
.
getStatusBarHeight
(
context
)
params
.
height
=
RxImageTool
.
dp2px
(
48f
)
+
statusBarHeight
statusView
.
setPadding
(
0
,
statusBarHeight
,
0
,
0
)
}
}
}
//====================设置Activity状态栏View END====================
//====================设置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