Browse Source

Remove unused layouts

merge-requests/2314/head
Nicolas Pomepuy 1 year ago
parent
commit
762f2a3370
  1. BIN
      application/resources/src/main/res/drawable-nodpi/nav_header_background.png
  2. 11
      application/resources/src/main/res/drawable/ic_cone_w.xml
  3. 8
      application/vlc-android/res/layout/adv_option_item.xml
  4. 25
      application/vlc-android/res/layout/audio_browser_separator.xml
  5. 8
      application/vlc-android/res/layout/custom_simple_spinner_dropdown_item.xml
  6. 79
      application/vlc-android/res/layout/dialog_all_access.xml
  7. 28
      application/vlc-android/res/layout/dialog_download.xml
  8. 50
      application/vlc-android/res/layout/ml_wizard_activity.xml
  9. 58
      application/vlc-android/res/layout/native_crash.xml
  10. 72
      application/vlc-android/res/layout/nav_drawer_header.xml

BIN
application/resources/src/main/res/drawable-nodpi/nav_header_background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

11
application/resources/src/main/res/drawable/ic_cone_w.xml

@ -1,11 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="56dp"
android:height="56dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillAlpha="1"
android:fillColor="#fafafa"
android:pathData="m12,2.6235c-0.2063,0 -0.4361,0.024 -0.6012,0.1473 -0.3267,0.2446 -0.4583,0.6369 -0.7428,1.4847 -0.2845,0.8479 -0.297,0.8909 -0.297,0.8909 1.1882,0.5941 2.0505,0.6497 3.282,0 0,0 -0.0136,-0.047 -0.297,-0.8909 -0.2834,-0.8446 -0.4141,-1.2342 -0.7428,-1.4847 -0.1641,-0.1251 -0.3949,-0.1473 -0.6012,-0.1473zM9.3193,8.2657 L8.1314,11.8301 8.1287,11.8411c0.0053,0 0.0097,0 0.015,0 2.2278,1.9308 5.4951,1.9308 7.7229,0 0.0014,0 0.0025,0 0.0038,0h-0.002l-1.1878,-3.5639c-0.0008,0 -0.0014,0 -0.0023,0 -1.8018,1.3455 -3.5769,1.3336 -5.3592,0zM6.2849,13.6118c-0.3949,0 -0.7624,0.2983 -0.8778,0.6919l-0.6919,2.3536c-0.226,0.7724 -0.4501,1.5391 -0.6772,2.3155 -0.0951,0.3245 0.0002,0.5632 0.1535,0.7282 0.095,0.1021 0.2122,0.1759 0.3201,0.2253 0.108,0.048 0.1818,0.074 0.2669,0.074 0.1983,0 3.6607,0 7.2215,0 3.5608,0 7.0232,0 7.2215,0 0.0851,0 0.1589,-0.026 0.2669,-0.074 0.1079,-0.049 0.2251,-0.1232 0.3201,-0.2253 0.1533,-0.165 0.2485,-0.4037 0.1535,-0.7282 -0.2271,-0.7764 -0.4512,-1.5431 -0.6772,-2.3155l-0.6919,-2.3536c-0.1154,-0.3936 -0.4828,-0.6919 -0.8778,-0.6919h-1.2526c-0.0006,0 -0.0012,0 -0.002,0 0,0 0.1984,0.5941 0.2973,0.8913 0.1435,0.4311 0.2145,0.6439 0,0.8908 -1.0442,1.0443 -2.711,1.6017 -4.4139,1.6664 -1.9302,0.074 -3.8952,-0.4957 -5.0915,-1.6664 -0.224,-0.2192 -0.1486,-0.4452 0,-0.8908 0.099,-0.2971 0.285,-0.8951 0.285,-0.8951z"
android:strokeWidth="0.19745927" />
</vector>

8
application/vlc-android/res/layout/adv_option_item.xml

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:longClickable="true"
android:focusable="true"
android:gravity="center" />

25
application/vlc-android/res/layout/audio_browser_separator.xml

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
<import type="org.videolan.medialibrary.media.MediaLibraryItem" />
<variable
name="item"
type="org.videolan.medialibrary.media.DummyItem" />
</data>
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dip"
android:layout_marginBottom="10dip"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:singleLine="true"
android:text="@{item.title}"
android:textColor="?attr/audio_browser_separator"
android:textSize="20sp" />
</layout>

8
application/vlc-android/res/layout/custom_simple_spinner_dropdown_item.xml

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
style="?android:attr/spinnerItemStyle"
android:singleLine="true"
android:layout_width="100dip"
android:layout_height="wrap_content"
android:ellipsize="end" />

79
application/vlc-android/res/layout/dialog_all_access.xml

@ -1,79 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ *************************************************************************
~ dialog_all_access.xml
~ **************************************************************************
~ Copyright © 2021 VLC authors and VideoLAN
~ Author: Nicolas POMEPUY
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation; either version 2 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program; if not, write to the Free Software
~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
~ ***************************************************************************
~
~
-->
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content">
<TextView
android:id="@+id/title"
style="@style/Theme.VLC.BottomSheetTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:text="@string/partial_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:textColor="?attr/font_default"
android:lineSpacingMultiplier="1.3"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title" />
<CheckBox
android:id="@+id/never_ask_again"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:text="@string/never_ask_again"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/description" />
<Button
android:id="@+id/grant_all_access_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:layout_marginEnd="16dp"
android:text="@string/permission_ask_again"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/never_ask_again" />
</androidx.constraintlayout.widget.ConstraintLayout>

28
application/vlc-android/res/layout/dialog_download.xml

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
android:id="@+id/download_progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="false"
android:max="100"
android:progress="0" />
<TextView
android:id="@+id/download_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/download_progress" />
<Button
android:id="@+id/download_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/download_text"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true" />
</RelativeLayout>

50
application/vlc-android/res/layout/ml_wizard_activity.xml

@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<androidx.core.widget.NestedScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="@dimen/wizard_dialog_width"
android:layout_height="wrap_content"
android:padding="16dp">
<Switch
android:id="@+id/wizard_check_scan"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:checked="true"
android:checkable="true"
android:text="@string/ml_wizard_scan_checkbox"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/wizard_description" />
<Button
android:id="@+id/wizard_validate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="apply"
android:text="@string/ok"
android:layout_marginTop="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/wizard_check_scan"
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog" />
<TextView
android:id="@+id/wizard_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="@string/ml_wizard_description"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</layout>

58
application/vlc-android/res/layout/native_crash.xml

@ -1,58 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?attr/marginTopContent"
android:orientation="vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/serious_crash"
android:textSize="24sp" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="@string/help_us_send_log"
android:visibility="gone" />
<ScrollView
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:scrollbars="vertical">
<TextView
android:id="@+id/crash_log"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</ScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/send_log"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:text="@string/send_log"
android:visibility="gone" />
<Button
android:id="@+id/restart_vlc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:text="@string/restart_vlc" />
</LinearLayout>
</LinearLayout>

72
application/vlc-android/res/layout/nav_drawer_header.xml

@ -1,72 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ *************************************************************************
~ nav_drawer_header.xml
~ **************************************************************************
~ Copyright © 2019 VLC authors and VideoLAN
~ Author: Nicolas POMEPUY
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation; either version 2 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program; if not, write to the Free Software
~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
~ ***************************************************************************
~
~
-->
<androidx.constraintlayout.widget.ConstraintLayout 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/navigationHeader"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorAccent"
android:orientation="vertical">
<org.videolan.vlc.gui.view.TopCropImageView
android:id="@+id/nav_header_background"
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="matrix"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/nav_header_background" />
<ImageView
android:id="@+id/nav_header_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:baselineAlignBottom="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_cone_w" />
<TextView
android:id="@+id/nav_header_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginBottom="12dp"
android:text="VLC"
android:textColor="@color/white"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/nav_header_logo"
app:layout_constraintStart_toEndOf="@+id/nav_header_logo"
tools:text="VLC 3.3" />
</androidx.constraintlayout.widget.ConstraintLayout>
Loading…
Cancel
Save