diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/handleview/EditControlPopup.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/handleview/EditControlPopup.java index 9e427f1bc..c39508842 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/handleview/EditControlPopup.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/handleview/EditControlPopup.java @@ -104,8 +104,8 @@ public EditControlPopup(Context context, ViewGroup parent) { mColorSelector.getRootView().setTranslationZ(11); mColorSelector.getRootView().setX(-context.getResources().getDimensionPixelOffset(R.dimen._280sdp)); - mEditPopupAnimator = ObjectAnimator.ofFloat(mScrollView, "x", 0).setDuration(1000); - mColorEditorAnimator = ObjectAnimator.ofFloat(mColorSelector.getRootView(), "x", 0).setDuration(1000); + mEditPopupAnimator = ObjectAnimator.ofFloat(mScrollView, "x", 0).setDuration(600); + mColorEditorAnimator = ObjectAnimator.ofFloat(mColorSelector.getRootView(), "x", 0).setDuration(600); Interpolator decelerate = new AccelerateDecelerateInterpolator(); mEditPopupAnimator.setInterpolator(decelerate); mColorEditorAnimator.setInterpolator(decelerate); diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/fragments/ProfileEditorFragment.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/fragments/ProfileEditorFragment.java index 5df28efa7..f01ee9407 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/fragments/ProfileEditorFragment.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/fragments/ProfileEditorFragment.java @@ -75,7 +75,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat List renderList = new ArrayList<>(5); Collections.addAll(renderList, getResources().getStringArray(R.array.renderer)); renderList.add("Default"); - mDefaultRenderer.setAdapter(new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1, renderList)); + mDefaultRenderer.setAdapter(new ArrayAdapter<>(getContext(), R.layout.item_simple_list_1, renderList)); // Set up behaviors mSaveButton.setOnClickListener(v -> { diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/multirt/RTSpinnerAdapter.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/multirt/RTSpinnerAdapter.java index e5548fceb..f7de37374 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/multirt/RTSpinnerAdapter.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/multirt/RTSpinnerAdapter.java @@ -56,7 +56,7 @@ public boolean hasStableIds() { public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { View view = convertView != null? convertView: - LayoutInflater.from(mContext).inflate(android.R.layout.simple_list_item_1, parent,false); + LayoutInflater.from(mContext).inflate(R.layout.item_simple_list_1, parent,false); Runtime runtime = mRuntimes.get(position); if(position == mRuntimes.size() - 1 ){ diff --git a/app_pojavlauncher/src/main/res/drawable/background_line_selected.xml b/app_pojavlauncher/src/main/res/drawable/background_line_selected.xml index 56fa839b7..f962a8189 100644 --- a/app_pojavlauncher/src/main/res/drawable/background_line_selected.xml +++ b/app_pojavlauncher/src/main/res/drawable/background_line_selected.xml @@ -7,10 +7,6 @@ - - diff --git a/app_pojavlauncher/src/main/res/drawable/background_line_unselected.xml b/app_pojavlauncher/src/main/res/drawable/background_line_unselected.xml index d1cd8faba..1c95d5431 100644 --- a/app_pojavlauncher/src/main/res/drawable/background_line_unselected.xml +++ b/app_pojavlauncher/src/main/res/drawable/background_line_unselected.xml @@ -8,8 +8,8 @@ + android:bottom="@dimen/padding_input_bottom" + android:top="@dimen/padding_input_top" /> + tools:paddingVertical="@dimen/_12sdp" /> + tools:paddingVertical="@dimen/_12sdp" /> + + + diff --git a/app_pojavlauncher/src/main/res/values-zh-rCN/strings.xml b/app_pojavlauncher/src/main/res/values-zh-rCN/strings.xml index e87b98e29..a4efa829e 100644 --- a/app_pojavlauncher/src/main/res/values-zh-rCN/strings.xml +++ b/app_pojavlauncher/src/main/res/values-zh-rCN/strings.xml @@ -177,6 +177,7 @@ Shift 添加按键 添加组合键 + 添加摇杆 添加子按钮 子按钮 n°%d 已添加! 选择默认 .json 控制键位 @@ -316,4 +317,16 @@ 在按钮标签中仅使用大写字母 如果您想在控件中使用小写字母,请禁用此功能 创建新配置 + 离开? + 你真的确定你要离开吗? + 离开编辑 + 保存并退出 + 确定 + 取消 + 控制器配置已被擦除 + 控制器设置 + 重置控制器映射 + 允许您重新映射控制器按钮 + 操纵杆死区比例 + 在操纵杆失灵时增加它 diff --git a/app_pojavlauncher/src/main/res/values/dimens.xml b/app_pojavlauncher/src/main/res/values/dimens.xml index c4dfec7d0..3a04517e8 100644 --- a/app_pojavlauncher/src/main/res/values/dimens.xml +++ b/app_pojavlauncher/src/main/res/values/dimens.xml @@ -16,6 +16,10 @@ @dimen/_24sdp @dimen/_32sdp + + @dimen/padding_heavy + @dimen/_11sdp + 60dp 60dp