Commit 40cea21d by 徐健

Merge branch 'feature/v3' of…

Merge branch 'feature/v3' of ssh://gitlab.yidianling.com:2224/app_android_lib/YDL-Component into feature/v3
parents 62f43467 fd2e5fd8
...@@ -71,8 +71,8 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>( ...@@ -71,8 +71,8 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
reLoadData() reLoadData()
} }
tv_home.setOnClickListener { tv_home?.setOnClickListener {
mPresenter?.loadHome() mPresenter.loadHome()
} }
bt_to_other.setOnClickListener { bt_to_other.setOnClickListener {
......
...@@ -53,6 +53,7 @@ ext { ...@@ -53,6 +53,7 @@ ext {
"m-tests" : "0.0.15.1", "m-tests" : "0.0.15.1",
"m-course" : "0.0.34.1", "m-course" : "0.0.34.1",
"m-im" : "0.0.2", "m-im" : "0.0.2",
"m-dynamic" : "0.0.1",
//-------------- 业务模块 API 层 -------------- //-------------- 业务模块 API 层 --------------
"m-audioim-api" : "0.0.5", "m-audioim-api" : "0.0.5",
...@@ -62,18 +63,19 @@ ext { ...@@ -62,18 +63,19 @@ ext {
"m-fm-api" : "0.0.2", "m-fm-api" : "0.0.2",
"m-muse-api" : "0.0.1", "m-muse-api" : "0.0.1",
"m-tests-api" : "0.0.1", "m-tests-api" : "0.0.1",
"m-user-api" : "0.0.7", "m-user-api" : "0.0.8",
"m-home-api" : "0.0.3", "m-home-api" : "0.0.3",
"m-im-api" : "0.0.2", "m-im-api" : "0.0.2",
"m-dynamic-api" : "0.0.1",
//-------------- 功能组件 -------------- //-------------- 功能组件 --------------
//第一步 //第一步
"ydl-platform" : "0.0.28.6", "ydl-platform" : "0.0.28.7",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.28.2", "ydl-webview" : "0.0.28.2",
"ydl-media" : "0.0.14.2", "ydl-media" : "0.0.14.2",
"ydl-pay" : "0.0.11.2", "ydl-pay" : "0.0.11.3",
"m-audioim" : "0.0.40.2", "m-audioim" : "0.0.40.2",
//以下 几乎不会动 //以下 几乎不会动
...@@ -93,6 +95,7 @@ ext { ...@@ -93,6 +95,7 @@ ext {
"m-user" : "0.0.25", "m-user" : "0.0.25",
"m-home" : "0.0.3", "m-home" : "0.0.3",
"m-im" : "0.0.1", "m-im" : "0.0.1",
"m-dynamic" : "0.0.1",
// 以下为接入flutter的模块 // 以下为接入flutter的模块
"m-muse" : "0.0.7", "m-muse" : "0.0.7",
...@@ -105,18 +108,19 @@ ext { ...@@ -105,18 +108,19 @@ ext {
"m-fm-api" : "0.0.2", "m-fm-api" : "0.0.2",
"m-muse-api" : "0.0.1", "m-muse-api" : "0.0.1",
"m-tests-api" : "0.0.1", "m-tests-api" : "0.0.1",
"m-user-api" : "0.0.7", "m-user-api" : "0.0.8",
"m-home-api" : "0.0.3", "m-home-api" : "0.0.3",
"m-im-api" : "0.0.2", "m-im-api" : "0.0.2",
"m-dynamic-api" : "0.0.1",
//-------------- 功能组件 -------------- //-------------- 功能组件 --------------
//第一步 //第一步
"ydl-platform" : "0.0.28.6", "ydl-platform" : "0.0.28.7",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.28.2", "ydl-webview" : "0.0.28.2",
"ydl-media" : "0.0.14.2", "ydl-media" : "0.0.14.2",
"ydl-pay" : "0.0.11.2", "ydl-pay" : "0.0.11.3",
"m-audioim" : "0.0.40.2", "m-audioim" : "0.0.40.2",
//以下 几乎不会动 //以下 几乎不会动
...@@ -283,6 +287,7 @@ ext { ...@@ -283,6 +287,7 @@ ext {
"ydl-m-im-api" : "com.ydl:m-im-api:${ydlCompileVersion["m-im-api"]}", "ydl-m-im-api" : "com.ydl:m-im-api:${ydlCompileVersion["m-im-api"]}",
"ydl-m-home-api" : "com.ydl:m-home-api:${ydlCompileVersion["m-home-api"]}", "ydl-m-home-api" : "com.ydl:m-home-api:${ydlCompileVersion["m-home-api"]}",
"ydl-m-consultant-api" : "com.ydl:m-consultant-api:${ydlCompileVersion["m-consultant-api"]}", "ydl-m-consultant-api" : "com.ydl:m-consultant-api:${ydlCompileVersion["m-consultant-api"]}",
"ydl-m-dynamic-api" : "com.ydl:m-dynamic-api:${ydlCompileVersion["m-dynamic-api"]}",
] ]
} }
...@@ -99,12 +99,12 @@ dependencies { ...@@ -99,12 +99,12 @@ dependencies {
api project(':ydl-platform') api project(':ydl-platform')
api project(":ydl-pay") api project(":ydl-pay")
implementation modularPublication('com.ydl:m-user-api') implementation modularPublication('com.ydl:m-user-api')
implementation modularPublication('com.ydl:m-audioim-api') implementation modularPublication('com.ydl:m-dynamic-api')
}else { }else {
//发布时使用 //发布时使用
api rootProject.ext.dependencies["ydl-pay"] api rootProject.ext.dependencies["ydl-pay"]
compileOnly rootProject.ext.dependencies["ydl-m-user-api"] compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-audioim-api"] compileOnly rootProject.ext.dependencies["ydl-m-dynamic-api"]
api rootProject.ext.dependencies["ydl-webview"] api rootProject.ext.dependencies["ydl-webview"]
api(rootProject.ext.dependencies["ydl-platform"]) { api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true transitive = true
......
...@@ -24,7 +24,7 @@ modular { ...@@ -24,7 +24,7 @@ modular {
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-dynamic-api" artifactId = "m-dynamic-api"
//开发时注释掉版本号,发布api时打开 //开发时注释掉版本号,发布api时打开
//version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"] version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"]
// API 层打包时需要引入的依赖 // API 层打包时需要引入的依赖
apiDependencies { apiDependencies {
implementation "com.google.code.gson:gson:2.8.2" implementation "com.google.code.gson:gson:2.8.2"
......
...@@ -6,6 +6,7 @@ import android.support.v4.app.FragmentPagerAdapter ...@@ -6,6 +6,7 @@ import android.support.v4.app.FragmentPagerAdapter
import android.support.v4.view.ViewPager import android.support.v4.view.ViewPager
import butterknife.ButterKnife import butterknife.ButterKnife
import com.ydl.ydlcommon.base.BaseActivity import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.bean.StatusBarOptions
import com.yidianling.dynamic.R import com.yidianling.dynamic.R
import com.yidianling.dynamic.router.DynamicIn import com.yidianling.dynamic.router.DynamicIn
import com.yidianling.dynamic.trendList.TrendsListFragment import com.yidianling.dynamic.trendList.TrendsListFragment
...@@ -32,6 +33,11 @@ class MyTrendsActivity : BaseActivity() { ...@@ -32,6 +33,11 @@ class MyTrendsActivity : BaseActivity() {
private val fragmentList = ArrayList<TrendsListFragment>() private val fragmentList = ArrayList<TrendsListFragment>()
override fun getStatusViewOptions(): StatusBarOptions {
return StatusBarOptions(isAddStatusView = true, statusBarDarkMode = true)
}
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(R.layout.dynamic_activity_mytrends) setContentView(R.layout.dynamic_activity_mytrends)
......
...@@ -18,6 +18,7 @@ import com.ydl.ydl_image.module.GlideApp ...@@ -18,6 +18,7 @@ import com.ydl.ydl_image.module.GlideApp
import com.ydl.ydlcommon.adapter.BaseRecyclerAdapter import com.ydl.ydlcommon.adapter.BaseRecyclerAdapter
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.bean.StatusBarOptions
import com.ydl.ydlcommon.utils.MoonUtil import com.ydl.ydlcommon.utils.MoonUtil
import com.ydl.ydlcommon.view.BaseViewHolder import com.ydl.ydlcommon.view.BaseViewHolder
import com.yidianling.common.tools.ToastUtil import com.yidianling.common.tools.ToastUtil
...@@ -50,6 +51,10 @@ class TrendsReplyInfoActivity : BaseActivity() { ...@@ -50,6 +51,10 @@ class TrendsReplyInfoActivity : BaseActivity() {
private var aid: String? = null//为空则是回复详情,否则为点赞详情 private var aid: String? = null//为空则是回复详情,否则为点赞详情
internal var header: MaterialHeader? = null internal var header: MaterialHeader? = null
override fun getStatusViewOptions(): StatusBarOptions {
return StatusBarOptions(isAddStatusView = true, statusBarDarkMode = true)
}
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
......
...@@ -30,6 +30,7 @@ import com.ydl.ydl_image.module.GlideApp; ...@@ -30,6 +30,7 @@ import com.ydl.ydl_image.module.GlideApp;
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.data.http.RxUtils; 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.dialog.ListDialog;
import com.ydl.ydlcommon.view.widgets.BorderCircleImageView; import com.ydl.ydlcommon.view.widgets.BorderCircleImageView;
import com.ydl.ydlcommon.view.widgets.MyNestedScrollView; import com.ydl.ydlcommon.view.widgets.MyNestedScrollView;
...@@ -106,6 +107,8 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene ...@@ -106,6 +107,8 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
private static final String USER_ID = "user_id"; private static final String USER_ID = "user_id";
public static Intent newIntent(Activity activity, String userId) { public static Intent newIntent(Activity activity, String userId) {
Intent intent = new Intent(activity, MembersActivity.class); Intent intent = new Intent(activity, MembersActivity.class);
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
...@@ -134,6 +137,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene ...@@ -134,6 +137,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
initListeners(); initListeners();
// initDatas(); // initDatas();
setTabSelection(0); setTabSelection(0);
StatusBarUtils.Companion.setCustomStatusView(this,members_title_rel,true);
} }
private void initEvent() { private void initEvent() {
...@@ -182,7 +186,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene ...@@ -182,7 +186,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene
*/ */
private void initLoadMore() { private void initLoadMore() {
member_swrl.setOnRefreshListener(this); 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() { member_swrl.post(new Runnable() {
@Override @Override
public void run() { public void run() {
...@@ -806,7 +810,7 @@ public class MembersActivity extends BaseActivity implements View.OnClickListene ...@@ -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.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.platform_common_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.platform_common_notice_more_un);
// 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));
} }
......
...@@ -15,6 +15,7 @@ import android.view.animation.AlphaAnimation; ...@@ -15,6 +15,7 @@ import android.view.animation.AlphaAnimation;
import android.view.animation.Animation; import android.view.animation.Animation;
import android.view.animation.TranslateAnimation; import android.view.animation.TranslateAnimation;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.PopupWindow; import android.widget.PopupWindow;
import android.widget.TextView; import android.widget.TextView;
...@@ -54,7 +55,7 @@ public class PublishTrendActivity extends BaseActivity { ...@@ -54,7 +55,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; private LinearLayout 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);
...@@ -122,7 +123,7 @@ public class PublishTrendActivity extends BaseActivity { ...@@ -122,7 +123,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()); StatusBarUtils.Companion.setCustomStatusView(this,mPublishTrendTitle);
} }
private void initData() { private void initData() {
......
...@@ -7,6 +7,7 @@ import android.widget.RelativeLayout; ...@@ -7,6 +7,7 @@ import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.yidianling.dynamic.R; import com.yidianling.dynamic.R;
import com.yidianling.dynamic.adapter.SelectTopicAdapter; import com.yidianling.dynamic.adapter.SelectTopicAdapter;
import com.yidianling.dynamic.common.net.DynamicApiUtils; import com.yidianling.dynamic.common.net.DynamicApiUtils;
...@@ -16,6 +17,8 @@ import com.ydl.ydlcommon.view.widgets.RecyclerViewForScrollView; ...@@ -16,6 +17,8 @@ import com.ydl.ydlcommon.view.widgets.RecyclerViewForScrollView;
import com.yidianling.dynamic.model.Command; import com.yidianling.dynamic.model.Command;
import com.yidianling.dynamic.model.RecommendTopic; import com.yidianling.dynamic.model.RecommendTopic;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -34,6 +37,12 @@ public class SelecTopicActivity extends BaseActivity { ...@@ -34,6 +37,12 @@ public class SelecTopicActivity extends BaseActivity {
SelectTopicAdapter adapterR, adapterF; SelectTopicAdapter adapterR, adapterF;
RelativeLayout select_topic_focus_hint_rel, select_topic_recommend_hint_rel; RelativeLayout select_topic_focus_hint_rel, select_topic_recommend_hint_rel;
@NotNull
@Override
public StatusBarOptions getStatusViewOptions() {
return new StatusBarOptions(true,true);
}
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
......
...@@ -229,13 +229,13 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie ...@@ -229,13 +229,13 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
topic_title = bundle.getString("topic_title"); topic_title = bundle.getString("topic_title");
publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE); publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE);
publish_trend_bottom_topic_tv.setText("# " + topic_title); publish_trend_bottom_topic_tv.setText("# " + topic_title);
publish_trend_bottom_topic_tv.setTextColor(ContextCompat.getColor(activity, R.color.platform_main_theme_blue)); publish_trend_bottom_topic_tv.setTextColor(ContextCompat.getColor(activity, R.color.dynamic_main_theme));
} else if ("topic_publish".equals(publish_type)) {// 从话题详情进来的发布 } else if ("topic_publish".equals(publish_type)) {// 从话题详情进来的发布
topic_id = bundle.getString("topic_id"); topic_id = bundle.getString("topic_id");
topic_title = bundle.getString("topic_title"); topic_title = bundle.getString("topic_title");
publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE); publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE);
publish_trend_bottom_topic_tv.setText("# " + topic_title); publish_trend_bottom_topic_tv.setText("# " + topic_title);
publish_trend_bottom_topic_tv.setTextColor(ContextCompat.getColor(activity, R.color.platform_main_theme_blue)); publish_trend_bottom_topic_tv.setTextColor(ContextCompat.getColor(activity, R.color.dynamic_main_theme));
} else if ("default_publish".equals(publish_type)) {// 默认发布类型 } else if ("default_publish".equals(publish_type)) {// 默认发布类型
publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE); publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE);
} }
...@@ -848,7 +848,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie ...@@ -848,7 +848,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
} }
publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE); publish_trend_bottom_topic_tv.setVisibility(View.VISIBLE);
publish_trend_bottom_topic_tv.setText("# " + topic_title); publish_trend_bottom_topic_tv.setText("# " + topic_title);
publish_trend_bottom_topic_tv.setTextColor(ContextCompat.getColor(activity, R.color.platform_main_theme_blue)); publish_trend_bottom_topic_tv.setTextColor(ContextCompat.getColor(activity, R.color.dynamic_main_theme));
// 获取编辑框焦点 // 获取编辑框焦点
publish_trend_content_editext.setFocusable(true); publish_trend_content_editext.setFocusable(true);
......
...@@ -9,6 +9,7 @@ import android.widget.RelativeLayout; ...@@ -9,6 +9,7 @@ import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.yidianling.common.tools.LogUtil; import com.yidianling.common.tools.LogUtil;
import com.yidianling.common.tools.ToastUtil; import com.yidianling.common.tools.ToastUtil;
import com.yidianling.dynamic.DynamicConstants; import com.yidianling.dynamic.DynamicConstants;
...@@ -22,6 +23,8 @@ import com.yidianling.dynamic.thank.view.ThankHeadView; ...@@ -22,6 +23,8 @@ import com.yidianling.dynamic.thank.view.ThankHeadView;
import com.ydl.ydlcommon.base.BaseActivity; import com.ydl.ydlcommon.base.BaseActivity;
import com.ydl.ydlcommon.data.http.RxUtils; import com.ydl.ydlcommon.data.http.RxUtils;
import org.jetbrains.annotations.NotNull;
import butterknife.BindView; import butterknife.BindView;
import butterknife.ButterKnife; import butterknife.ButterKnife;
import de.greenrobot.event.EventBus; import de.greenrobot.event.EventBus;
...@@ -64,6 +67,11 @@ public class ThankActivity extends BaseActivity implements PtrHandler, LoadMoreH ...@@ -64,6 +67,11 @@ public class ThankActivity extends BaseActivity implements PtrHandler, LoadMoreH
WorryDetailAnswer worryDetailAnswerForEventBus; WorryDetailAnswer worryDetailAnswerForEventBus;
@NotNull
@Override
public StatusBarOptions getStatusViewOptions() {
return new StatusBarOptions(true, true);
}
void init() { void init() {
// header // header
......
...@@ -8,9 +8,12 @@ import android.support.v4.view.ViewPager; ...@@ -8,9 +8,12 @@ import android.support.v4.view.ViewPager;
import android.view.View; import android.view.View;
import android.widget.ImageView; import android.widget.ImageView;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.yidianling.dynamic.R; import com.yidianling.dynamic.R;
import com.ydl.ydlcommon.base.BaseActivity; import com.ydl.ydlcommon.base.BaseActivity;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -29,6 +32,12 @@ public class AllTopicActivity extends BaseActivity implements View.OnClickListen ...@@ -29,6 +32,12 @@ public class AllTopicActivity extends BaseActivity implements View.OnClickListen
private FragmentManager fragmentManager; private FragmentManager fragmentManager;
private AllTopicFragment alltopic_fragment; private AllTopicFragment alltopic_fragment;
@NotNull
@Override
public StatusBarOptions getStatusViewOptions() {
return new StatusBarOptions(true, true);
}
// private HotTopicFragment hottopic_fragmen; // private HotTopicFragment hottopic_fragmen;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
......
...@@ -38,9 +38,9 @@ import com.ydl.webview.NewH5Activity; ...@@ -38,9 +38,9 @@ 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.ydl.ydlcommon.utils.StatusBarUtils;
import com.yidianling.common.tools.LogUtil; import com.yidianling.common.tools.LogUtil;
import com.yidianling.dynamic.DynamicConstants; import com.yidianling.dynamic.DynamicConstants;
import com.yidianling.dynamic.R; import com.yidianling.dynamic.R;
...@@ -53,8 +53,6 @@ import com.yidianling.dynamic.router.DynamicIn; ...@@ -53,8 +53,6 @@ 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;
...@@ -142,12 +140,6 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD ...@@ -142,12 +140,6 @@ 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);
...@@ -163,8 +155,8 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD ...@@ -163,8 +155,8 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
initDatas(); initDatas();
initViews(); initViews();
fetchDatas(); fetchDatas();
initNetLossView(); initNetLossView();
StatusBarUtils.Companion.setCustomStatusView(this,mToolbar,true);
} }
private void initNetLossView() { private void initNetLossView() {
...@@ -189,7 +181,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD ...@@ -189,7 +181,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
private void initViews() { private void initViews() {
setSupportActionBar(mToolbar); setSupportActionBar(mToolbar);
mSwl.setOnRefreshListener(this); mSwl.setOnRefreshListener(this);
mSwl.setColorSchemeResources(R.color.platform_main_theme_blue); mSwl.setColorSchemeResources(R.color.dynamic_main_theme);
mSwl.setProgressViewOffset(false, 0, 200); mSwl.setProgressViewOffset(false, 0, 200);
topTrendsRcv.setLayoutManager(new LinearLayoutManager(this)); topTrendsRcv.setLayoutManager(new LinearLayoutManager(this));
topTrendsRcv.setAdapter(mRecommendTopAdapter); topTrendsRcv.setAdapter(mRecommendTopAdapter);
...@@ -247,7 +239,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD ...@@ -247,7 +239,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
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.platform_common_back); mTopicDetailTitleBackIv.setImageResource(R.drawable.platform_common_back);
mTopicDetailTitleTopRightTv.setImageResource(R.drawable.dynamic_more_green); mTopicDetailTitleTopRightTv.setImageResource(R.drawable.platform_common_notice_more_un);
backgroundColor = R.color.dynamic_white; backgroundColor = R.color.dynamic_white;
} }
collapsingToolbarLayout.setTitle(topicTitle); collapsingToolbarLayout.setTitle(topicTitle);
...@@ -466,16 +458,16 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD ...@@ -466,16 +458,16 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
mTopicDetailVp.setCurrentItem(0); mTopicDetailVp.setCurrentItem(0);
} }
selectTab = 0; selectTab = 0;
mItemTopicDetailNewTv.setTextColor(getResources().getColor(R.color.platform_main_theme_blue)); mItemTopicDetailNewTv.setTextColor(getResources().getColor(R.color.dynamic_main_theme));
mItemTopicDetailNewHintTv.setBackgroundColor(getResources().getColor(R.color.platform_main_theme_blue)); mItemTopicDetailNewHintTv.setBackgroundColor(getResources().getColor(R.color.dynamic_main_theme));
break; break;
case 1: case 1:
if (mTopicDetailVp.getCurrentItem() != 1) { if (mTopicDetailVp.getCurrentItem() != 1) {
mTopicDetailVp.setCurrentItem(1); mTopicDetailVp.setCurrentItem(1);
} }
selectTab = 1; selectTab = 1;
mItemTopicDetailHotTv.setTextColor(getResources().getColor(R.color.platform_main_theme_blue)); mItemTopicDetailHotTv.setTextColor(getResources().getColor(R.color.dynamic_main_theme));
mItemTopicDetailHotHintTv.setBackgroundColor(getResources().getColor(R.color.platform_main_theme_blue)); mItemTopicDetailHotHintTv.setBackgroundColor(getResources().getColor(R.color.dynamic_main_theme));
break; break;
} }
...@@ -507,6 +499,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD ...@@ -507,6 +499,7 @@ public class TopicDetailActivity extends BaseMvpActivity<TopicDetailView, TopicD
.error(R.drawable.dynamic_default_img) .error(R.drawable.dynamic_default_img)
.into(mTopicDetailTopBgIv); .into(mTopicDetailTopBgIv);
mTopicDetailFocusTv.setBackgroundResource("1".equals(is_focused) ? R.drawable.dynamic_focused_topic_detail_bg : R.drawable.dynamic_focus_topic_detail_bg); 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)); mTopicDetailFocusTv.setText("1".equals(is_focused) ? this.getString(R.string.dynamic_trend_foucused) : "+" + this.getString(R.string.dynamic_trend_foucus));
if (!"2".equals(topicId)) { if (!"2".equals(topicId)) {
mTopicDetailFocusTv.setVisibility(View.VISIBLE); mTopicDetailFocusTv.setVisibility(View.VISIBLE);
......
...@@ -208,7 +208,7 @@ class TrendsListFragment : BaseLazyFragment(), ITrendsListView, ...@@ -208,7 +208,7 @@ class TrendsListFragment : BaseLazyFragment(), ITrendsListView,
} else { } else {
trends_lastr_swl!!.setViewGroup(trends_rcv) trends_lastr_swl!!.setViewGroup(trends_rcv)
trends_lastr_swl!!.setOnRefreshListener(this) trends_lastr_swl!!.setOnRefreshListener(this)
trends_lastr_swl!!.setColorSchemeResources(R.color.platform_main_theme_blue) trends_lastr_swl!!.setColorSchemeResources(R.color.dynamic_main_theme)
} }
initRecyclerView() initRecyclerView()
} }
......
...@@ -780,7 +780,7 @@ public class TrendsDetailActivity extends BaseMvpActivity<ITrendsDetailView, ITr ...@@ -780,7 +780,7 @@ public class TrendsDetailActivity extends BaseMvpActivity<ITrendsDetailView, ITr
}); });
} }
swl.setOnRefreshListener(this); 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.getLayoutParams().height = ScreenUtil.getDisplayWidth() * 19 / 66;
vpAds.requestLayout(); vpAds.requestLayout();
vpAds.setOnTouchListener((v, event) -> { vpAds.setOnTouchListener((v, event) -> {
......
package com.yidianling.dynamic.trendsHome; package com.yidianling.dynamic.trendsHome;
import android.content.Intent; import android.content.Intent;
import android.graphics.Color;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
...@@ -135,8 +134,8 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView, ...@@ -135,8 +134,8 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
public void initDataAndEvent() { public void initDataAndEvent() {
mUnbinder = ButterKnife.bind(this, getView()); mUnbinder = ButterKnife.bind(this, getView());
initViews(); initViews();
// TODO: 2019-12-13 by:HaoRui
initDatas(); initDatas();
} }
@Override @Override
...@@ -147,7 +146,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView, ...@@ -147,7 +146,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
private void initViews() { private void initViews() {
initBannerView(); initBannerView();
swl.setOnRefreshListener(this); swl.setOnRefreshListener(this);
swl.setColorSchemeResources(R.color.platform_main_theme_blue); swl.setColorSchemeResources(R.color.dynamic_main_theme);
mAppBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() { mAppBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
@Override @Override
public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) { public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
...@@ -289,11 +288,11 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView, ...@@ -289,11 +288,11 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
mItemFocusTv.setSelected(false); mItemFocusTv.setSelected(false);
mItemFocusTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666)); mItemFocusTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666));
mItemHotTv.setSelected(true); mItemHotTv.setSelected(true);
mItemHotTv.setTextColor(Color.WHITE); mItemHotTv.setTextColor(getResources().getColor(R.color.dynamic_but_text_color));
break; break;
case 1: case 1:
mItemRecommendTv.setSelected(true); mItemRecommendTv.setSelected(true);
mItemRecommendTv.setTextColor(Color.WHITE); mItemRecommendTv.setTextColor(getResources().getColor(R.color.dynamic_but_text_color));
mItemFocusTv.setSelected(false); mItemFocusTv.setSelected(false);
mItemFocusTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666)); mItemFocusTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666));
mItemHotTv.setSelected(false); mItemHotTv.setSelected(false);
...@@ -303,7 +302,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView, ...@@ -303,7 +302,7 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
mItemRecommendTv.setSelected(false); mItemRecommendTv.setSelected(false);
mItemRecommendTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666)); mItemRecommendTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666));
mItemFocusTv.setSelected(true); mItemFocusTv.setSelected(true);
mItemFocusTv.setTextColor(Color.WHITE); mItemFocusTv.setTextColor(getResources().getColor(R.color.dynamic_but_text_color));
mItemHotTv.setSelected(false); mItemHotTv.setSelected(false);
mItemHotTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666)); mItemHotTv.setTextColor(getResources().getColor(R.color.dynamic_text_666666));
break; break;
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="@color/dynamic_main_theme_light"
<item android:state_enabled="true"> android:endColor="@color/dynamic_main_theme"
<shape> android:angle="0" />
<corners android:radius="0dp"></corners> </shape>
<gradient android:endColor="@color/dynamic_main_theme_light" android:startColor="@color/dynamic_main_theme" /> \ No newline at end of file
<stroke android:width="0dp" android:color="@color/platform_bebebe" />
</shape>
</item>
</selector>
\ No newline at end of file
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
android:bottomLeftRadius="0dp" android:bottomLeftRadius="0dp"
android:topLeftRadius="0dp" android:topLeftRadius="0dp"
android:topRightRadius="0dp"/> android:topRightRadius="0dp"/>
<stroke
android:width="0.8dp"
android:color="#E3E3E3"/>
</shape> </shape>
</item> </item>
</layer-list> </layer-list>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
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:background="#555e5e5e"> android:background="@color/platform_black">
<android.support.v4.view.ViewPager <android.support.v4.view.ViewPager
android:id="@+id/browse_pictures_vp" android:id="@+id/browse_pictures_vp"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<android.support.design.widget.CoordinatorLayout <android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:fitsSystemWindows="true"> >
<android.support.design.widget.AppBarLayout <android.support.design.widget.AppBarLayout
android:id="@+id/app_bar" android:id="@+id/app_bar"
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="@dimen/platform_action_bar_height"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:popupTheme="@style/AppTheme.PopupOverlay"> app:popupTheme="@style/AppTheme.PopupOverlay">
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
android:paddingLeft="15dp" android:paddingLeft="15dp"
android:paddingRight="15dp" android:paddingRight="15dp"
android:text="最新" android:text="最新"
android:textColor="@color/platform_main_theme_blue" android:textColor="@color/dynamic_main_theme"
android:textSize="18sp" /> android:textSize="18sp" />
<View <View
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,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/platform_main_theme_blue" /> android:background="@color/dynamic_main_theme" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
......
...@@ -6,51 +6,61 @@ ...@@ -6,51 +6,61 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <LinearLayout
android:layout_gravity="center_vertical"
android:id="@+id/publish_trend_title_rel" android:id="@+id/publish_trend_title_rel"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/dynamic_title_height" android:layout_height="48dp"
android:background="@drawable/dynamic_background_publish_trend_top"> 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" />
<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 <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/trend_home_swl" android:id="@+id/trend_home_swl"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:fitsSystemWindows="true">
<android.support.design.widget.CoordinatorLayout <android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -96,6 +96,8 @@ dependencies { ...@@ -96,6 +96,8 @@ dependencies {
api project(':ydl-platform') api project(':ydl-platform')
implementation modularPublication('com.ydl:m-im-api') implementation modularPublication('com.ydl:m-im-api')
implementation modularPublication('com.ydl:m-user-api') implementation modularPublication('com.ydl:m-user-api')
implementation modularPublication('com.ydl:m-dynamic-api')
implementation modularPublication('com.ydl:m-tests-api')
}else { }else {
//发布时使用 //发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-user-api"] compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
......
...@@ -30,7 +30,6 @@ import com.yidianling.im.ui.page.fragment.bean.UnreadMessageBean ...@@ -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.page.popupWindow.ChatSettingPopupWindow
import com.yidianling.im.ui.param.ClearMessageParam import com.yidianling.im.ui.param.ClearMessageParam
import com.yidianling.im.ui.param.UnreadParam import com.yidianling.im.ui.param.UnreadParam
import com.yidianling.router.RouterManager
import de.greenrobot.event.EventBus import de.greenrobot.event.EventBus
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.android.schedulers.AndroidSchedulers
...@@ -241,15 +240,11 @@ class NewMultiMessageFragment : BaseFragment() { ...@@ -241,15 +240,11 @@ class NewMultiMessageFragment : BaseFragment() {
} }
override fun onChatSettingClick() { override fun onChatSettingClick() {
RouterManager.getAppRouter()?.let { ARouter.getInstance().build("/main/notifysetting").navigation()
ARouter.getInstance().build("/main/notifysetting").navigation()
}
} }
override fun onSafeInfoSetting() { override fun onSafeInfoSetting() {
RouterManager.getAppRouter()?.let { startActivity(ImIn.getUserService().privacyIntent(activity))
startActivity(ImIn.getUserService().privacyIntent(activity))
}
} }
override fun onDismissAction() { override fun onDismissAction() {
......
...@@ -302,13 +302,13 @@ class ChatFragment : BaseFragment(), XRecyclerView.LoadingListener { ...@@ -302,13 +302,13 @@ class ChatFragment : BaseFragment(), XRecyclerView.LoadingListener {
chat_serviced_message.setTextColor(Color.parseColor("#666666")) chat_serviced_message.setTextColor(Color.parseColor("#666666"))
if (modelType == ChatModelType.ALL) { 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) chat_all_message.setBackgroundResource(R.drawable.im_chat_model_selected_bg)
} else if (modelType == ChatModelType.SERVICING) { } 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) chat_servicing_message.setBackgroundResource(R.drawable.im_chat_model_selected_bg)
} else if (modelType == ChatModelType.SERVICED) { } 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) chat_serviced_message.setBackgroundResource(R.drawable.im_chat_model_selected_bg)
} }
} }
......
...@@ -24,7 +24,7 @@ modular { ...@@ -24,7 +24,7 @@ modular {
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-user-api" artifactId = "m-user-api"
//开发时注释掉版本号,发布api时打开 //开发时注释掉版本号,发布api时打开
//version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"] // version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"]
// API 层打包时需要引入的依赖 // API 层打包时需要引入的依赖
apiDependencies { apiDependencies {
implementation "com.google.code.gson:gson:2.8.2" implementation "com.google.code.gson:gson:2.8.2"
......
package com.yidianling.user.modular_service
import android.app.Activity
import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.yidianling.user.api.service.IAppService
@Route(path = "/user/AppService")
class AppServiceImpl: IAppService {
override fun mainIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun mainIntent(context: Context, selectTab: Int, animation: Boolean) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun myRedPockIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun receiverRedPacketIntent(activity: Activity, param: String) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun personalInfoIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun rechargeIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun splashIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun feedBackIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun sendRedPacketIntent(activity: Activity, toUid: String) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun notificationSettingIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun privacyIntent(activity: Activity) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun init(context: Context?) {
}
}
\ No newline at end of file
package com.yidianling.user.api.service
import android.app.Activity
import android.content.Context
import com.alibaba.android.arouter.facade.template.IProvider
/**
* Created by haorui on 2019-12-18 .
* Des: App 壳应用 方法调用,临时解决方案
* 待壳应用组件化抽取后,放置于壳应用组件之下
*/
interface IAppService : IProvider {
fun mainIntent(activity: Activity)
fun mainIntent(context: Context, selectTab: Int, animation: Boolean)
fun myRedPockIntent(activity: Activity)
fun receiverRedPacketIntent(activity: Activity, param: String)
fun personalInfoIntent(activity: Activity)
fun rechargeIntent(activity: Activity)
fun splashIntent(activity: Activity)
fun feedBackIntent(activity: Activity)
fun sendRedPacketIntent(activity: Activity, toUid: String)
fun notificationSettingIntent(activity: Activity)
fun privacyIntent(activity: Activity)
}
\ No newline at end of file
...@@ -1050,13 +1050,21 @@ class StatusBarUtils { ...@@ -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) setTransparentForImageView(context, null)
val statusBarHeight = StatusBarUtils.getStatusBarHeight(context) val statusBarHeight = StatusBarUtils.getStatusBarHeight(context)
params.height = RxImageTool.dp2px(48f) + statusBarHeight params.height = RxImageTool.dp2px(48f) + statusBarHeight
statusView.setPadding(0, statusBarHeight, 0, 0) statusView.setPadding(0, statusBarHeight, 0, 0)
if (isDarkMode) {
statusBarLightMode(context)
}
} }
} }
//====================设置Activity状态栏View END==================== //====================设置Activity状态栏View END====================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment