|
|
@@ -0,0 +1,181 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<LinearLayout
|
|
|
+ xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ tools:context=".SettingsActivity">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ >
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ android:src="@drawable/ic_theme"
|
|
|
+ android:layout_margin="16dp"
|
|
|
+ />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_weight="1"
|
|
|
+ >
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Modo oscuro"
|
|
|
+ android:textColor="@color/text"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Activa el modo oscuro para un cambio visual"
|
|
|
+ android:textSize="11sp"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
+ android:id="@+id/switchDarkMode"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="16sp"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ >
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ android:src="@drawable/ic_bluetooth"
|
|
|
+ android:layout_margin="16dp"
|
|
|
+ />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_weight="1"
|
|
|
+ >
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Bluetooth"
|
|
|
+ android:textColor="@color/text"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Conecta perisféricos sin cables"
|
|
|
+ android:textSize="11sp"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
+ android:id="@+id/switchBluetooth"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="16sp"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.divider.MaterialDivider
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ >
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/ic_sound"
|
|
|
+ android:layout_margin="16dp"
|
|
|
+ />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ >
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Sonido"
|
|
|
+ android:textSize="11sp"
|
|
|
+ />
|
|
|
+
|
|
|
+ <com.google.android.material.slider.RangeSlider
|
|
|
+ android:id="@+id/rsVolume"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:valueFrom="0"
|
|
|
+ android:valueTo="100"
|
|
|
+ android:stepSize="1"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ >
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/ic_vibration"
|
|
|
+ android:layout_margin="16dp"
|
|
|
+ />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ >
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Vibración en las llamadas"
|
|
|
+ android:textColor="@color/text"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
+ android:id="@+id/switchVibration"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="16sp"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|