调整趣味游戏tab选中线颜色
This commit is contained in:
@@ -66,6 +66,7 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
|
||||
private String roomId;
|
||||
private TabLayout tabLayout;
|
||||
private int tabIndex = 0;
|
||||
private LinearLayout layout;
|
||||
|
||||
public LiveGameDialogFragment() {
|
||||
|
||||
@@ -110,6 +111,7 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
mWebView = (WebView) findViewById(R.id.rlWebview);
|
||||
tabLayout = (TabLayout) findViewById(R.id.tabLayout);
|
||||
layout = (LinearLayout) findViewById(R.id.bg_layout);
|
||||
mWebView.addJavascriptInterface(new JsInteration(), "androidObject");
|
||||
mWebView.getSettings().setJavaScriptEnabled(true);
|
||||
mWebView.getSettings().setDomStorageEnabled(true);
|
||||
@@ -190,9 +192,11 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
|
||||
if (model != null) {
|
||||
if (!StringUtil.isEmpty(model.getBgColor()) && !"#".equals(model.getBgColor())) {
|
||||
tabLayout.setBackgroundColor(Color.parseColor(model.getBgColor()));
|
||||
layout.setBackgroundColor(Color.parseColor(model.getBgColor()));
|
||||
}
|
||||
if (!StringUtil.isEmpty(model.getTextColor()) && !"#".equals(model.getTextColor())) {
|
||||
tabLayout.setTabTextColors(Color.parseColor("#B3FFFFFF"), Color.parseColor(model.getTextColor()));
|
||||
tabLayout.setSelectedTabIndicatorColor(Color.parseColor(model.getTextColor()));
|
||||
}
|
||||
String url = model.getActiveSrc();
|
||||
if (!url.startsWith("http")) {
|
||||
|
||||
Reference in New Issue
Block a user