Alignment is finally fixed holy shit

This commit is contained in:
ottoptj 2024-05-10 07:34:55 +03:00
commit e14eb149b2
6 changed files with 136 additions and 133 deletions

View file

@ -1,69 +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:id="@+id/action_menu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:id="@+id/info"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Info"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_info_details" />
<TextView
android:id="@+id/uninstall"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Uninstall"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_delete" />
<TextView
android:id="@+id/rename"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Rename"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_edit" />
<TextView
android:id="@+id/hide"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Hide"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_view" />
<TextView
android:id="@+id/close"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Close"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_close_clear_cancel" />
</LinearLayout>

View file

@ -1,12 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="0dp">
<LinearLayout
android:id="@+id/rename_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingVertical="10dp"
android:visibility="invisible">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/app_name_edit"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#6F000000"
android:clickable="true"
android:elegantTextHeight="false"
android:imeOptions="actionDone"
android:includeFontPadding="true"
android:paddingLeft="40dp"
android:paddingTop="10dp"
android:paddingRight="40dp"
android:paddingBottom="10dp"
android:selectAllOnFocus="true"
android:singleLine="true"
android:textSize="28sp" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="0.3"
android:background="#89000000"
android:gravity="center"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="Reset"
android:textColor="#F3F3F3" />
</LinearLayout>
<TextView
android:id="@+id/app_name"
android:layout_width="match_parent"
@ -21,4 +61,73 @@
android:textSize="28sp"
android:visibility="visible" />
</LinearLayout>
<LinearLayout
android:id="@+id/action_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:visibility="invisible">
<TextView
android:id="@+id/info"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Info"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_info_details" />
<TextView
android:id="@+id/uninstall"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Uninstall"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_delete" />
<TextView
android:id="@+id/rename"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Rename"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_edit" />
<TextView
android:id="@+id/hide"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Hide"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_view" />
<TextView
android:id="@+id/close"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#6F000000"
android:foreground="@drawable/app_action_foreground"
android:text="Close"
android:textAlignment="center"
android:textColor="#F3F3F3FF"
app:drawableTopCompat="@android:drawable/ic_menu_close_clear_cancel" />
</LinearLayout>
</FrameLayout>

View file

@ -1,39 +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:id="@+id/rename_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingVertical="10dp">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/app_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#6F000000"
android:clickable="true"
android:elegantTextHeight="false"
android:imeOptions="actionDone"
android:includeFontPadding="true"
android:paddingLeft="60dp"
android:paddingTop="10dp"
android:paddingRight="40dp"
android:paddingBottom="10dp"
android:selectAllOnFocus="true"
android:singleLine="true"
android:textSize="28sp" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="0.3"
android:background="#89000000"
android:gravity="center"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="Reset"
android:textColor="#F3F3F3" />
</LinearLayout>

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="app_name" type="id" />
<item name="app_name_edit" type="id" />
</resources>