Commit 26e30000 authored by fallenstardust's avatar fallenstardust

允许跟随系统屏幕旋转

parent 66ec3716
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
<activity <activity
android:name="cn.garymb.ygomobile.ui.home.MainActivity" android:name="cn.garymb.ygomobile.ui.home.MainActivity"
android:configChanges="orientation|keyboardHidden|navigation|screenSize" android:configChanges="keyboardHidden|navigation"
android:exported="true" android:exported="true"
android:screenOrientation="portrait" android:screenOrientation="unspecified"
android:launchMode="singleTop" android:launchMode="singleTop"
android:theme="@style/AppTheme" android:theme="@style/AppTheme"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"> android:windowSoftInputMode="stateAlwaysHidden|adjustResize">
...@@ -136,9 +136,9 @@ ...@@ -136,9 +136,9 @@
tools:replace="android:theme" /> tools:replace="android:theme" />
<activity <activity
android:name="cn.garymb.ygomobile.ui.file.FileActivity" android:name="cn.garymb.ygomobile.ui.file.FileActivity"
android:configChanges="orientation|keyboardHidden|navigation|screenSize" android:configChanges="orientation|keyboardHidden|navigation"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" android:screenOrientation="unspecified"
android:theme="@style/AppTheme" android:theme="@style/AppTheme"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" /> android:windowSoftInputMode="stateAlwaysHidden|adjustResize" />
<activity <activity
......
...@@ -21,8 +21,8 @@ import android.view.inputmethod.EditorInfo; ...@@ -21,8 +21,8 @@ import android.view.inputmethod.EditorInfo;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView; import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
...@@ -97,7 +97,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene ...@@ -97,7 +97,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
private static final String ARG_MC_NEWS_LIST = "mcNewsList"; private static final String ARG_MC_NEWS_LIST = "mcNewsList";
private boolean isMcNewsLoadException = false; private boolean isMcNewsLoadException = false;
private RelativeLayout ll_back; private LinearLayout ll_back;
ShimmerTextView tv; ShimmerTextView tv;
ShimmerTextView tv2; ShimmerTextView tv2;
Shimmer shimmer; Shimmer shimmer;
...@@ -275,7 +275,8 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene ...@@ -275,7 +275,8 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
findExPansionsDataVer(); findExPansionsDataVer();
Log.i(BuildConfig.VERSION_NAME, WebActivity.dataVer); Log.i(BuildConfig.VERSION_NAME, WebActivity.dataVer);
if (!TextUtils.isEmpty(WebActivity.dataVer) && !WebActivity.dataVer.equals(oldVer)) { if (!TextUtils.isEmpty(WebActivity.dataVer) && !WebActivity.dataVer.equals(oldVer)) {
ll_new_notice.setVisibility(View.VISIBLE); findExPansionsDataVer();
ll_new_notice.setVisibility(View.VISIBLE);
} else { } else {
ll_new_notice.setVisibility(View.GONE); ll_new_notice.setVisibility(View.GONE);
} }
......
...@@ -100,34 +100,29 @@ ...@@ -100,34 +100,29 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:scrollbars="none" /> android:scrollbars="none" />
<RelativeLayout <LinearLayout
android:id="@+id/return_to_duel" android:id="@+id/return_to_duel"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@drawable/window3" android:background="@drawable/window3"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:id="@+id/logo_small" android:id="@+id/logo_small"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:layout_gravity="center"
android:src="@drawable/ic_launcher3" /> android:src="@drawable/ic_launcher3" />
<cn.garymb.ygomobile.ui.widget.ShimmerTextView <cn.garymb.ygomobile.ui.widget.ShimmerTextView
android:id="@+id/shimmer_tv" android:id="@+id/shimmer_tv"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_marginStart="-263dp"
android:layout_marginLeft="1dp"
android:layout_toEndOf="@id/logo_small"
android:gravity="center" android:gravity="center"
android:text="@string/return_to_duel" android:text="@string/return_to_duel"
android:textColor="@color/item_title" /> android:textColor="@color/item_title" />
</RelativeLayout> </LinearLayout>
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>
......
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