1、将所有Activity统一到一个base(主题AppCompatTheme),layout和contentView统一处理

2、MainActivity tab切换方式的重构
3、下一步更改toolbar实现方式,然后再是尽量用fragment替换
This commit is contained in:
CsHeng
2017-05-05 18:12:51 +08:00
parent 7ca9272fe7
commit d69e75480e
83 changed files with 2036 additions and 1191 deletions

View File

@ -6,27 +6,19 @@ import android.os.Bundle;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.DownloadListener;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.webkit.*;
import android.widget.*;
import butterknife.BindView;
import butterknife.OnClick;
import com.gh.base.BaseActivity;
import com.gh.common.util.DisplayUtils;
import com.gh.gamecenter.entity.CommentnumEntity;
import com.gh.gamecenter.retrofit.RetrofitManager;
import java.util.List;
import butterknife.BindView;
import butterknife.OnClick;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import java.util.List;
/**
* Created by khy on 2016/10/18.
*/
@ -48,6 +40,11 @@ public class WebActivity extends BaseActivity {
private String entrance;
@Override
protected int getLayoutId() {
return R.layout.activity_web;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@ -65,8 +62,7 @@ public class WebActivity extends BaseActivity {
entrance = getIntent().getStringExtra("entrance");
View contentView = View.inflate(this, R.layout.activity_web, null);
init(contentView, webTitle);
init(webTitle);
webView.loadUrl(webUrl);