ingresar_cantidad.xml
3.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
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:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="10dp"
app:cardElevation="5dp"
tools:ignore="PrivateResource">
<!-- android:background="@drawable/md_transparent"-->
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/barraSuperior"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryDark"
android:orientation="horizontal"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lySegundo">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tvTitulo"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_marginStart="5dp"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:text="@string/adv"
android:textAlignment="center"
android:textColor="@android:color/white"
android:textSize="25sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/lySegundo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="12dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/barraSuperior">
<EditText
android:id="@+id/etCantidad"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:ems="10"
android:focusable="true"
android:gravity="center"
android:inputType="numberDecimal"
android:maxLength="8"
android:text=""
android:hint="Ingrese Cantidad"
android:textSize="20sp" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btnAceptar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_marginBottom="20dp"
android:clickable="true"
android:focusable="true"
android:textColor="@android:color/white"
android:padding="10dp"
android:background="@drawable/boton_borde_redondeado"
android:text="@string/btnConfirmar"
android:textAlignment="center"
android:textSize="20sp"
android:textStyle="bold"
app:cardBackgroundColor="@android:color/darker_gray"
app:cardUseCompatPadding="true" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>