Skip to content

Commit

Permalink
调整底栏高度 && 压缩部分图片大小
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Nov 16, 2023
1 parent 168f9bf commit 7edfeb1
Show file tree
Hide file tree
Showing 37 changed files with 99 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity) getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int getContentResId() {
@Override
public View.OnClickListener addRestartListener() {
return view -> ((BaseSettingsActivity)getActivity()).showRestartDialog(
getResources().getString(R.string.home),
getResources().getString(R.string.mihome),
"com.miui.home"
);
}
Expand Down
36 changes: 18 additions & 18 deletions app/src/main/java/com/sevtinge/hyperceiler/utils/SearchHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,143 +178,143 @@ public static void getAllMods(Context context, boolean force) {

// 系统桌面相关
parsePrefXml(context, R.xml.home_gesture,
R.string.home,
R.string.mihome,
R.string.home_gesture,
R.string.home_gesture,
R.string.home_gesture,
R.string.home_gesture,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeGestureSettings");

parsePrefXml(context, R.xml.home_layout,
R.string.home,
R.string.mihome,
R.string.home_layout,
R.string.home_layout,
R.string.home_layout,
R.string.home_layout,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeLayoutSettings");

parsePrefXml(context, R.xml.home_folder,
R.string.home,
R.string.mihome,
R.string.home_folder,
R.string.home_folder,
R.string.home_folder,
R.string.home_folder,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeFolderSettings");

parsePrefXml(context, R.xml.home_drawer,
R.string.home,
R.string.mihome,
R.string.home_drawer,
R.string.home_drawer,
R.string.home_drawer,
R.string.home_drawer,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeDrawerSettings");

parsePrefXml(context, R.xml.home_title,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title,
R.string.home_title,
R.string.home_title,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeTitleSettings");

parsePrefXml(context, R.xml.home_title_anim,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeTitleAnimSettings");

parsePrefXml(context, R.xml.home_title_anim_1,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_1_title,
R.string.home_title_custom_anim_param_1_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnim1Settings");

parsePrefXml(context, R.xml.home_title_anim_2,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_2_title,
R.string.home_title_custom_anim_param_2_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnim2Settings");

parsePrefXml(context, R.xml.home_title_anim_3,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_3_title,
R.string.home_title_custom_anim_param_3_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnim3Settings");

parsePrefXml(context, R.xml.home_title_anim_4,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_4_title,
R.string.home_title_custom_anim_param_4_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnim4Settings");

parsePrefXml(context, R.xml.home_title_anim_5,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_5_title,
R.string.home_title_custom_anim_param_5_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnim5Settings");

parsePrefXml(context, R.xml.home_title_anim_6,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_6_title,
R.string.home_title_custom_anim_param_6_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnimSettings");

parsePrefXml(context, R.xml.home_title_anim_7,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_7_title,
R.string.home_title_custom_anim_param_7_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnim7Settings");

parsePrefXml(context, R.xml.home_title_anim_8,
R.string.home,
R.string.mihome,
R.string.home_title,
R.string.home_title_custom_anim_param,
R.string.home_title_custom_anim_param_8_title,
R.string.home_title_custom_anim_param_8_title,
"com.sevtinge.hyperceiler.ui.fragment.home.anim.HomeTitleAnim8Settings");

parsePrefXml(context, R.xml.home_recent,
R.string.home,
R.string.mihome,
R.string.home_recent,
R.string.home_recent,
R.string.home_recent,
R.string.home_recent,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeRecentSettings");

parsePrefXml(context, R.xml.home_widget,
R.string.home,
R.string.mihome,
R.string.home_widget,
R.string.home_widget,
R.string.home_widget,
R.string.home_widget,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeWidgetSettings");

parsePrefXml(context, R.xml.home_dock,
R.string.home,
R.string.mihome,
R.string.home_dock,
R.string.home_dock,
R.string.home_dock,
R.string.home_dock,
"com.sevtinge.hyperceiler.ui.fragment.home.HomeDockSettings");

parsePrefXml(context, R.xml.home_other,
R.string.home,
R.string.mihome,
R.string.home_other,
R.string.home_other,
R.string.home_other,
Expand Down
Binary file modified app/src/main/res/drawable/ic_hchenx.webp
Binary file not shown.
Binary file modified app/src/main/res/drawable/ic_lingqiqi.webp
Binary file not shown.
Binary file modified app/src/main/res/drawable/ic_moralnorm.webp
Binary file not shown.
Binary file modified app/src/main/res/drawable/ic_sevtinge.webp
Binary file not shown.
20 changes: 12 additions & 8 deletions app/src/main/res/layout/activity_navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<androidx.viewpager.widget.ViewPager
android:id="@+id/frame_page"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:paddingBottom="16dp" />
</LinearLayout>

<RadioGroup
Expand All @@ -27,7 +28,7 @@
android:checkedButton="@id/navigation_home"
android:gravity="center"
android:orientation="horizontal"
android:paddingVertical="10dp">
android:paddingVertical="16dp">

<RadioButton
android:id="@+id/navigation_home"
Expand All @@ -36,9 +37,10 @@
android:layout_weight="1"
android:button="@null"
android:drawableTop="@drawable/ic_navigation_home"
android:drawablePadding="3dp"
android:drawablePadding="2dp"
android:gravity="center"
android:text="首页"
android:paddingBottom="10dp"
android:text="@string/home"
android:textSize="12sp" />

<RadioButton
Expand All @@ -48,9 +50,10 @@
android:layout_weight="1"
android:button="@null"
android:drawableTop="@drawable/ic_navigation_settings"
android:drawablePadding="3dp"
android:drawablePadding="2dp"
android:gravity="center"
android:text="设置"
android:paddingBottom="10dp"
android:text="@string/settings"
android:textSize="12sp" />

<RadioButton
Expand All @@ -60,9 +63,10 @@
android:layout_weight="1"
android:button="@null"
android:drawableTop="@drawable/ic_navigation_about"
android:drawablePadding="3dp"
android:drawablePadding="2dp"
android:gravity="center"
android:text="关于"
android:paddingBottom="10dp"
android:text="@string/about"
android:textSize="12sp" />

</RadioGroup>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@
<string name="guard_provider_hyperos">システムセキュリティコンポーネント</string>
<string name="guard_provider_disable_upload_applist">インストール済みアプリリストの自動アップロードを防止</string>
<!--System launcher-->
<string name="home">システムランチャー</string>
<string name="mihome">システムランチャー</string>
<string name="home_gesture">ジェスチャーとナビゲーション</string>
<string name="home_navigation_title">ナビゲーション</string>
<string name="home_navigation_quick_back">前のアプリに戻る</string>
Expand Down Expand Up @@ -1321,7 +1321,7 @@
<string name="tip_14">ヒント: Sevtinge は山河大学 三江市キャンパス 情報工程学院出身です。</string>
<string name="tip_15">ヒント: Sevtinge には第二形態があるらしい…</string>
<string name="tip_16">ヒント: Sevtinge は子狐です!</string>
<string name="tip_17">ヒント: Ling Qiqi は猫耳の女の子の人格とロリの人格を持っています。</string>
<string name="tip_17">ヒント: Neko Qiqi は猫耳の女の子の人格とロリの人格を持っています。</string>
<string name="tip_18">ヒント: HyperCeiler は一番バッテリーを消費するシステムアプリです(ヘ、ヘイトスピーチ…)</string>
<string name="tip_19">ヒント: グレーアウトした機能は、特別な注釈がない場合機能が異常であることを意味しており、当分の間ユーザーに開放される予定はありません</string>
<string name="tip_20">ヒント: 何もしない場合は Canary の新しいバージョンを追わないでください。壊れている場合は急いでアップデートしないでください。</string>
Expand Down
Loading

0 comments on commit 7edfeb1

Please sign in to comment.