最新3次版本提交
This commit is contained in:
@@ -58,6 +58,8 @@
|
|||||||
<item name="windowActionBar">false</item>
|
<item name="windowActionBar">false</item>
|
||||||
<!-- 隐藏Activity窗口的Title标题栏 -->
|
<!-- 隐藏Activity窗口的Title标题栏 -->
|
||||||
<item name="windowNoTitle">true</item>
|
<item name="windowNoTitle">true</item>
|
||||||
|
<item name="android:windowIsTranslucent">true</item>
|
||||||
|
|
||||||
<!-- <item name="android:windowFullscreen">true</item>-->
|
<!-- <item name="android:windowFullscreen">true</item>-->
|
||||||
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
||||||
<item name="android:windowBackground">#aadcf5</item>
|
<item name="android:windowBackground">#aadcf5</item>
|
||||||
|
|||||||
@@ -60,6 +60,8 @@
|
|||||||
<item name="windowActionBar">false</item>
|
<item name="windowActionBar">false</item>
|
||||||
<!-- 隐藏Activity窗口的Title标题栏 -->
|
<!-- 隐藏Activity窗口的Title标题栏 -->
|
||||||
<item name="windowNoTitle">true</item>
|
<item name="windowNoTitle">true</item>
|
||||||
|
<item name="android:windowIsTranslucent">true</item>
|
||||||
|
|
||||||
<!-- <item name="android:windowFullscreen">true</item>-->
|
<!-- <item name="android:windowFullscreen">true</item>-->
|
||||||
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
||||||
<item name="android:windowBackground">#aadcf5</item>
|
<item name="android:windowBackground">#aadcf5</item>
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
// public ImageView showTopV1;
|
// public ImageView showTopV1;
|
||||||
private LinearLayout showTopLy;
|
private LinearLayout showTopLy;
|
||||||
private View topVvvv;
|
private View topVvvv;
|
||||||
private ProgressBar progressBar;
|
// private ProgressBar progressBar;
|
||||||
public static String url = "https://154.213.186.36";
|
public static String url = "https://154.213.186.36";
|
||||||
|
|
||||||
//先定义
|
//先定义
|
||||||
@@ -89,8 +89,8 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
|
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
getWindow().setNavigationBarColor(Color.parseColor("#FFFFFF"));
|
// getWindow().setNavigationBarColor(Color.parseColor("#FFFFFF"));
|
||||||
getWindow().getDecorView().setBackgroundColor(Color.parseColor("#FFFFFF"));
|
// getWindow().getDecorView().setBackgroundColor(Color.parseColor("#FFFFFF"));
|
||||||
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
|
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
View decor = getWindow().getDecorView();
|
View decor = getWindow().getDecorView();
|
||||||
@@ -145,7 +145,7 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
|
|
||||||
// showTopV1 = (ImageView) findViewById(R.id.show_top_v1);
|
// showTopV1 = (ImageView) findViewById(R.id.show_top_v1);
|
||||||
showTopLy = findViewById(R.id.show_top_ly);
|
showTopLy = findViewById(R.id.show_top_ly);
|
||||||
progressBar = (ProgressBar) findViewById(R.id.progressbar);
|
// progressBar = (ProgressBar) findViewById(R.id.progressbar);
|
||||||
tvErrorMsg = findViewById(R.id.errormsg);
|
tvErrorMsg = findViewById(R.id.errormsg);
|
||||||
layoutError = findViewById(R.id.layoutError);
|
layoutError = findViewById(R.id.layoutError);
|
||||||
WebSettings settings = webView.getSettings();
|
WebSettings settings = webView.getSettings();
|
||||||
@@ -244,14 +244,14 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
if (showTopLy.getVisibility() == View.VISIBLE) {
|
if (showTopLy.getVisibility() == View.VISIBLE) {
|
||||||
handler.postDelayed(() ->{
|
handler.postDelayed(() ->{
|
||||||
showTopLy.setVisibility(View.GONE);
|
showTopLy.setVisibility(View.GONE);
|
||||||
|
getWindow().getDecorView().setBackgroundColor(Color.parseColor("#FFFFFF"));
|
||||||
|
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(webView.getUrl().equals(url+"/h5/")||webView.getUrl().equals(url+"/h5/#/")){
|
if(webView.getUrl().equals(url+"/h5/")||webView.getUrl().equals(url+"/h5/#/")){
|
||||||
getWindow().setNavigationBarColor(Color.parseColor("#000000"));
|
getWindow().setNavigationBarColor(Color.parseColor("#000000"));
|
||||||
}else{
|
}else{
|
||||||
getWindow().setNavigationBarColor(Color.parseColor("#FFFFFF"));
|
getWindow().setNavigationBarColor(Color.parseColor("#FFFFFF"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -283,7 +283,7 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
onShowNetView();
|
onShowNetView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
progressBar.setVisibility(View.GONE);
|
// progressBar.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -302,7 +302,7 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
onShowNetView();
|
onShowNetView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
progressBar.setVisibility(View.GONE);
|
// progressBar.setVisibility(View.GONE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -316,7 +316,7 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
isAtGame = false;
|
isAtGame = false;
|
||||||
topVvvv.setVisibility(View.GONE);
|
topVvvv.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
progressBar.setVisibility(View.VISIBLE);
|
// progressBar.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
if (!(url1.startsWith("http") || url1.startsWith("https"))) {
|
if (!(url1.startsWith("http") || url1.startsWith("https"))) {
|
||||||
try {
|
try {
|
||||||
@@ -362,7 +362,7 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
isAtGame = false;
|
isAtGame = false;
|
||||||
topVvvv.setVisibility(View.GONE);
|
topVvvv.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
progressBar.setVisibility(View.VISIBLE);
|
// progressBar.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(url1.startsWith("http") || url1.startsWith("https"))) {
|
if (!(url1.startsWith("http") || url1.startsWith("https"))) {
|
||||||
@@ -478,12 +478,12 @@ public class MainActivity2 extends AppCompatActivity {
|
|||||||
public void onProgressChanged(WebView view, int newProgress) {
|
public void onProgressChanged(WebView view, int newProgress) {
|
||||||
super.onProgressChanged(view, newProgress);
|
super.onProgressChanged(view, newProgress);
|
||||||
// 更新进度条的进度
|
// 更新进度条的进度
|
||||||
progressBar.setProgress(newProgress);
|
// progressBar.setProgress(newProgress);
|
||||||
// 如果加载完成,隐藏进度条
|
// 如果加载完成,隐藏进度条
|
||||||
if (newProgress == 100) {
|
if (newProgress == 100) {
|
||||||
progressBar.setVisibility(View.GONE);
|
// progressBar.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
progressBar.setVisibility(View.VISIBLE);
|
// progressBar.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,22 +85,22 @@
|
|||||||
android:layout_below="@id/top_vvvv"
|
android:layout_below="@id/top_vvvv"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:background="@color/white"
|
android:background="@color/black"
|
||||||
android:visibility="visible">
|
android:visibility="visible">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="4"
|
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
|
|
||||||
<com.web.tkgo.CircleImageView
|
<ImageView
|
||||||
android:id="@+id/show_top_v"
|
android:id="@+id/show_top_v"
|
||||||
android:layout_width="120dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="120dp"
|
android:layout_height="wrap_content"
|
||||||
android:src="@mipmap/hey_girl"
|
android:src="@mipmap/tk_bg"
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
app:ease_border_color="#EEEEEE"
|
app:ease_border_color="#EEEEEE"
|
||||||
app:ease_border_width="1px"
|
app:ease_border_width="1px"
|
||||||
app:es_shape_type="round" />
|
app:es_shape_type="round" />
|
||||||
@@ -108,20 +108,6 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="6"
|
|
||||||
android:gravity="center">
|
|
||||||
|
|
||||||
<ProgressBar
|
|
||||||
android:id="@+id/progressbar"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerHorizontal="true"
|
|
||||||
android:indeterminateDrawable="@drawable/pass_word_bg1" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
BIN
tkgo/src/main/res/mipmap-xxhdpi/tk_bg.jpg
Normal file
BIN
tkgo/src/main/res/mipmap-xxhdpi/tk_bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 276 KiB |
@@ -58,12 +58,14 @@
|
|||||||
<item name="windowActionBar">false</item>
|
<item name="windowActionBar">false</item>
|
||||||
<!-- 隐藏Activity窗口的Title标题栏 -->
|
<!-- 隐藏Activity窗口的Title标题栏 -->
|
||||||
<item name="windowNoTitle">true</item>
|
<item name="windowNoTitle">true</item>
|
||||||
|
<item name="android:windowIsTranslucent">true</item>
|
||||||
|
|
||||||
<!-- <item name="android:windowFullscreen">true</item>-->
|
<!-- <item name="android:windowFullscreen">true</item>-->
|
||||||
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
||||||
<item name="android:windowBackground">@color/white</item>
|
<item name="android:windowBackground">#000000</item>
|
||||||
<!-- <item name="android:background">#aadcf5</item>-->
|
<!-- <item name="android:background">#000000</item>-->
|
||||||
|
|
||||||
<item name="android:navigationBarColor">@color/white</item>
|
<item name="android:navigationBarColor">#000000</item>
|
||||||
<!-- <item name="android:windowBackground">@mipmap/big_bg</item>-->
|
<!-- <item name="android:windowBackground">@mipmap/big_bg</item>-->
|
||||||
<item name="android:forceDarkAllowed" tools:ignore="NewApi">false</item>
|
<item name="android:forceDarkAllowed" tools:ignore="NewApi">false</item>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -60,11 +60,13 @@
|
|||||||
<item name="windowActionBar">false</item>
|
<item name="windowActionBar">false</item>
|
||||||
<!-- 隐藏Activity窗口的Title标题栏 -->
|
<!-- 隐藏Activity窗口的Title标题栏 -->
|
||||||
<item name="windowNoTitle">true</item>
|
<item name="windowNoTitle">true</item>
|
||||||
|
<item name="android:windowIsTranslucent">true</item>
|
||||||
|
|
||||||
<!-- <item name="android:windowFullscreen">true</item>-->
|
<!-- <item name="android:windowFullscreen">true</item>-->
|
||||||
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
<!-- <item name="android:windowBackground">@drawable/splah_bg</item>-->
|
||||||
<item name="android:windowBackground">#FFFFFF</item>
|
<item name="android:windowBackground">#000000</item>
|
||||||
<!-- <item name="android:background">#aadcf5</item>-->
|
<!-- <item name="android:background">#000000</item>-->
|
||||||
<item name="android:navigationBarColor">#FFFFFF</item>
|
<item name="android:navigationBarColor">#000000</item>
|
||||||
<!-- <item name="android:windowBackground">@mipmap/big_bg</item>-->
|
<!-- <item name="android:windowBackground">@mipmap/big_bg</item>-->
|
||||||
<item name="android:forceDarkAllowed" tools:ignore="NewApi">false</item>
|
<item name="android:forceDarkAllowed" tools:ignore="NewApi">false</item>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user