mirror of
https://github.com/izzy2lost/PSX2.git
synced 2026-07-05 15:18:36 -07:00
delete unused stuff
This commit is contained in:
@@ -683,67 +683,6 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
final int PAD_R_DOWN = 122;
|
||||
final int PAD_R_LEFT = 123;
|
||||
|
||||
MaterialButton btn_pad_joy_lt = findViewById(R.id.btn_pad_joy_lt);
|
||||
if(btn_pad_joy_lt != null) {
|
||||
btn_pad_joy_lt.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_UP);
|
||||
sendKeyAction(v, event.getAction(), PAD_L_LEFT);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
MaterialButton btn_pad_joy_t = findViewById(R.id.btn_pad_joy_t);
|
||||
if(btn_pad_joy_t != null) {
|
||||
btn_pad_joy_t.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_UP);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
MaterialButton btn_pad_joy_rt = findViewById(R.id.btn_pad_joy_rt);
|
||||
if(btn_pad_joy_rt != null) {
|
||||
btn_pad_joy_rt.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_UP);
|
||||
sendKeyAction(v, event.getAction(), PAD_L_RIGHT);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
MaterialButton btn_pad_joy_l = findViewById(R.id.btn_pad_joy_l);
|
||||
if(btn_pad_joy_l != null) {
|
||||
btn_pad_joy_l.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_LEFT);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
MaterialButton btn_pad_joy_r = findViewById(R.id.btn_pad_joy_r);
|
||||
if(btn_pad_joy_r != null) {
|
||||
btn_pad_joy_r.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_RIGHT);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
MaterialButton btn_pad_joy_lb = findViewById(R.id.btn_pad_joy_lb);
|
||||
if(btn_pad_joy_lb != null) {
|
||||
btn_pad_joy_lb.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_LEFT);
|
||||
sendKeyAction(v, event.getAction(), PAD_L_DOWN);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
MaterialButton btn_pad_joy_b = findViewById(R.id.btn_pad_joy_b);
|
||||
if(btn_pad_joy_b != null) {
|
||||
btn_pad_joy_b.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_DOWN);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
MaterialButton btn_pad_joy_rb = findViewById(R.id.btn_pad_joy_rb);
|
||||
if(btn_pad_joy_rb != null) {
|
||||
btn_pad_joy_rb.setOnTouchListener((v, event) -> {
|
||||
sendKeyAction(v, event.getAction(), PAD_L_RIGHT);
|
||||
sendKeyAction(v, event.getAction(), PAD_L_DOWN);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
// Draggable JoystickView (portrait/landscape layouts)
|
||||
View joystick = findViewById(R.id.joystick_view);
|
||||
if (joystick instanceof JoystickView) {
|
||||
@@ -842,7 +781,6 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
View btnFile = findViewById(R.id.btn_file);
|
||||
View btnBios = findViewById(R.id.btn_bios);
|
||||
View btnSaves = findViewById(R.id.btn_saves);
|
||||
View btnHideUI = findViewById(R.id.btn_hide_ui);
|
||||
View llQuickActions = findViewById(R.id.ll_quick_actions);
|
||||
|
||||
if (btnSettings != null) btnSettings.setVisibility(vis);
|
||||
@@ -855,7 +793,6 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
if (btnFile != null) btnFile.setVisibility(vis);
|
||||
if (btnBios != null) btnBios.setVisibility(vis);
|
||||
if (btnSaves != null) btnSaves.setVisibility(vis);
|
||||
if (btnHideUI != null) btnHideUI.setVisibility(vis);
|
||||
if (llQuickActions != null) llQuickActions.setVisibility(vis);
|
||||
|
||||
// Hide/show on-screen controls
|
||||
@@ -866,12 +803,6 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
// When hiding all UI, also hide controls
|
||||
setControlsVisible(false);
|
||||
}
|
||||
|
||||
// The unhide button is no longer needed since toggle button stays visible
|
||||
View unhideButton = findViewById(R.id.btn_unhide_ui);
|
||||
if (unhideButton != null) {
|
||||
unhideButton.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
// Update renderer label when UI toggled back on
|
||||
if (!allUIHidden) updateRendererButtonLabel();
|
||||
@@ -936,7 +867,6 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
View btnFile = findViewById(R.id.btn_file);
|
||||
View btnBios = findViewById(R.id.btn_bios);
|
||||
View btnSaves = findViewById(R.id.btn_saves);
|
||||
View btnHideUI = findViewById(R.id.btn_hide_ui);
|
||||
MaterialButton btnToggle = findViewById(R.id.btn_toggle_controls);
|
||||
View llQuickActions = findViewById(R.id.ll_quick_actions);
|
||||
|
||||
@@ -944,7 +874,6 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
if (btnFile != null) btnFile.setVisibility(vis);
|
||||
if (btnBios != null) btnBios.setVisibility(vis);
|
||||
if (btnSaves != null) btnSaves.setVisibility(vis);
|
||||
if (btnHideUI != null) btnHideUI.setVisibility(vis);
|
||||
if (llQuickActions != null) llQuickActions.setVisibility(vis);
|
||||
if (btnToggle != null) btnToggle.setVisibility(View.VISIBLE); // always visible
|
||||
// Set toggle icon and internal state
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,124 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_covers_gradient_blue"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/toolbar_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_home"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:background="@android:color/transparent"
|
||||
android:contentDescription="Home"
|
||||
android:padding="4dp"
|
||||
android:src="@drawable/home_24px"
|
||||
app:tint="#883DA4" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_search"
|
||||
style="@style/PSX2.ElevatedTransparentButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:contentDescription="Search"
|
||||
android:textColor="#883DA4"
|
||||
app:icon="@drawable/search_24px"
|
||||
app:iconTint="#883DA4"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="8dp"
|
||||
app:iconSize="24dp" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_sort"
|
||||
style="@style/PSX2.ElevatedTransparentButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:contentDescription="Sort"
|
||||
android:textColor="#883DA4"
|
||||
app:icon="@drawable/sort_24px"
|
||||
app:iconTint="#883DA4"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="8dp"
|
||||
app:iconSize="24dp" />
|
||||
</LinearLayout>
|
||||
<!-- Letters row above covers -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_letters"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="0dp"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingEnd="24dp"
|
||||
android:clipToPadding="false"
|
||||
android:overScrollMode="never"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_covers"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingTop="6dp"
|
||||
android:paddingBottom="0dp"
|
||||
android:clipToPadding="false" />
|
||||
|
||||
<!-- Hint below covers grid: yellow bulb right next to text -->
|
||||
<LinearLayout
|
||||
android:id="@+id/hint_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/img_hint_bulb"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:tint="@color/covers_hint_yellow"
|
||||
android:src="@drawable/lightbulb_2_24px"
|
||||
android:layout_marginEnd="4dp"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_covers_hint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/covers_hint_long_press"
|
||||
android:textColor="@color/brand_primary"
|
||||
android:textStyle="bold"
|
||||
android:textSize="12sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Download button below covers, centered with COVERS text -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_download"
|
||||
style="@style/PSX2.ElevatedTransparentButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:text="COVERS"
|
||||
android:contentDescription="Download Covers"
|
||||
app:icon="@drawable/download_24px"
|
||||
app:iconTint="#883DA4"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="20dp"
|
||||
app:iconSize="34dp" />
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user