1.Layout adjust
This commit is contained in:
parent
4e32e188f0
commit
cce3afdf1c
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:installLocation="auto"
|
||||
package="com.zane.smapiinstaller">
|
||||
|
||||
|
@ -19,7 +20,8 @@
|
|||
android:supportsRtl="true"
|
||||
android:configChanges="orientation|keyboard|screenSize"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:theme="@style/AppTheme">
|
||||
android:theme="@style/AppTheme"
|
||||
tools:ignore="UnusedAttribute">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name"
|
||||
|
|
|
@ -28,11 +28,11 @@ These Services do not address anyone under the age of 16. I do not knowingly col
|
|||
<br>
|
||||
The only official channel for distribution of this app are:
|
||||
<br>
|
||||
* <a href="https://play.google.com/store/apps/details?id=com.zane.smapiinstaller">Google Play Store</a>
|
||||
<br>
|
||||
* <a href="https://www.coolapk.com/apk/256582">Coolapk</a>
|
||||
<br>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">Github</a>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">GitHub</a>
|
||||
<br>
|
||||
* <s>Google Play Store</s>
|
||||
<br>
|
||||
Any other mode of distribution is not official and thus, is not maintained by the developer.
|
||||
<br>
|
||||
|
|
|
@ -28,11 +28,11 @@ Layanan ini tidak membahas siapa pun yang berusia di bawah 16 tahun. Saya tidak
|
|||
<br>
|
||||
Satu-satunya saluran resmi untuk distribusi aplikasi ini adalah:
|
||||
<br>
|
||||
* <a href="https://play.google.com/store/apps/details?id=com.zane.smapiinstaller">Google Play Store</a>
|
||||
<br>
|
||||
* <a href="https://www.coolapk.com/apk/256582">Coolapk</a>
|
||||
<br>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">Github</a>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">GitHub</a>
|
||||
<br>
|
||||
* <s>Google Play Store</s>
|
||||
<br>
|
||||
Mode distribusi lainnya tidak resmi dan tidak dikelola oleh pengembang.
|
||||
<br>
|
||||
|
|
|
@ -28,11 +28,11 @@ Zane York เป็นผู้พัฒนา SMAPI Installer app. แอพล
|
|||
<br>
|
||||
ช่องทางการเผยแพร่แอพลิเคชั่นนี้อย่างเป็นทางการ ได้แก่:
|
||||
<br>
|
||||
* <a href="https://play.google.com/store/apps/details?id=com.zane.smapiinstaller">Google Play Store</a>
|
||||
<br>
|
||||
* <a href="https://www.coolapk.com/apk/256582">Coolapk</a>
|
||||
<br>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">Github</a>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">GitHub</a>
|
||||
<br>
|
||||
* <s>Google Play Store</s>
|
||||
<br>
|
||||
แอพลิเคชั่นที่ถูกเผยแพร่ในแหล่งอื่นนอกจากช่องทางเหล่านี้ จะไม่ได้รับการดูแลจากผู้พัฒนา
|
||||
<br>
|
||||
|
|
|
@ -28,11 +28,11 @@
|
|||
<br>
|
||||
分发此应用程序的唯一官方渠道是:
|
||||
<br>
|
||||
* <a href="https://play.google.com/store/apps/details?id=com.zane.smapiinstaller">Google Play商店</a>
|
||||
<br>
|
||||
* <a href="https://www.coolapk.com/apk/256582">酷安</a>
|
||||
<br>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">Github</a>
|
||||
* <a href="https://github.com/ZaneYork/SMAPI-Android-Installer/releases">GitHub</a>
|
||||
<br>
|
||||
* <s>Google Play Store</s>
|
||||
<br>
|
||||
任何其他分发方式都可能不是开发者官方维护的。
|
||||
<br>
|
||||
|
|
|
@ -169,7 +169,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
DialogUtils.showConfirmDialog(toolbar, R.string.settings_check_for_updates,
|
||||
MainActivity.this.getString(R.string.app_update_detected, dto.getVersionName()), (dialog, which) -> {
|
||||
if (which == DialogAction.POSITIVE) {
|
||||
CommonLogic.openInPlayStore(MainActivity.this);
|
||||
CommonLogic.openUrl(MainActivity.this, Constants.RELEASE_URL);
|
||||
} else {
|
||||
ConfigUtils.saveConfig(application, appConfig);
|
||||
}
|
||||
|
|
|
@ -30,6 +30,10 @@ public class Constants {
|
|||
* DLC下载路径
|
||||
*/
|
||||
public static final String DLC_LIST_UPDATE_URL = "http://dl.zaneyork.cn/smapi/downloadable_content_list.json";
|
||||
/**
|
||||
* 软件发布页
|
||||
*/
|
||||
public static final String RELEASE_URL = "https://github.com/ZaneYork/SMAPI-Android-Installer/releases";
|
||||
/**
|
||||
* 帮助内容下载路径
|
||||
*/
|
||||
|
|
|
@ -40,10 +40,10 @@ public class AboutFragment extends Fragment {
|
|||
|
||||
@OnClick(R.id.button_release)
|
||||
void release() {
|
||||
CommonLogic.doOnNonNull(this.getContext(), (context) -> CommonLogic.openUrl(context, "https://github.com/ZaneYork/SMAPI-Android-Installer/releases"));
|
||||
CommonLogic.doOnNonNull(this.getContext(), (context) -> CommonLogic.openUrl(context, Constants.RELEASE_URL));
|
||||
}
|
||||
|
||||
@OnClick(R.id.button_gplay)
|
||||
// @OnClick(R.id.button_gplay)
|
||||
void gplay() {
|
||||
CommonLogic.openInPlayStore(this.getActivity());
|
||||
}
|
||||
|
|
|
@ -70,33 +70,33 @@
|
|||
app:srcCompat="@drawable/global" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content">-->
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_gplay"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/button_gplay"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/img_gplay"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<!-- <Button-->
|
||||
<!-- android:id="@+id/button_gplay"-->
|
||||
<!-- style="@style/Widget.AppCompat.Button.Borderless"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:gravity="center"-->
|
||||
<!-- android:text="@string/button_gplay"-->
|
||||
<!-- android:textSize="24sp"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||||
<!-- app:layout_constraintStart_toEndOf="@id/img_gplay"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_gplay"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:contentDescription="@string/icon_desc"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/global" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<!-- <ImageView-->
|
||||
<!-- android:id="@+id/img_gplay"-->
|
||||
<!-- android:layout_width="40dp"-->
|
||||
<!-- android:layout_height="40dp"-->
|
||||
<!-- android:contentDescription="@string/icon_desc"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
||||
<!-- app:srcCompat="@drawable/global" />-->
|
||||
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/main_tab_layout"
|
||||
app:tabGravity="fill"
|
||||
app:tabTextAppearance="@style/TabLayoutTextStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="32dp">
|
||||
</com.google.android.material.tabs.TabLayout>
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/main_pager"
|
||||
|
|
|
@ -5,4 +5,5 @@
|
|||
<dimen name="nav_header_vertical_spacing">8dp</dimen>
|
||||
<dimen name="nav_header_height">176dp</dimen>
|
||||
<dimen name="fab_margin">16dp</dimen>
|
||||
<dimen name="tab_text_size">18dp</dimen>
|
||||
</resources>
|
|
@ -21,4 +21,8 @@
|
|||
<item name="android:colorBackground">@color/colorPopupBackground</item>
|
||||
</style>
|
||||
|
||||
<style name="TabLayoutTextStyle">
|
||||
<item name="android:textSize">@dimen/tab_text_size</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue