Commit 26e30000 authored by fallenstardust's avatar fallenstardust

允许跟随系统屏幕旋转

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