Commit 62463245e433a3ac4f527f5419c2bea1817d9571
1 parent
01fb822e19
Exists in
master
22092020 0500
Showing
44 changed files
with
2703 additions
and
172 deletions
Show diff stats
app/src/main/AndroidManifest.xml
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | android:label="@string/app_name" |
14 | 14 | android:roundIcon="@drawable/icono_inventario_big" |
15 | 15 | android:supportsRtl="true" |
16 | + android:windowSoftInputMode="adjustNothing" | |
16 | 17 | android:theme="@style/AppTheme" |
17 | 18 | android:usesCleartextTraffic="true"> |
18 | 19 | <activity |
... | ... | @@ -28,6 +29,7 @@ |
28 | 29 | <activity |
29 | 30 | android:name=".UI.MainActivity" |
30 | 31 | android:label="@string/app_name" |
32 | + android:windowSoftInputMode="adjustNothing" | |
31 | 33 | android:theme="@style/AppTheme.NoActionBar"> |
32 | 34 | |
33 | 35 | </activity> |
app/src/main/java/com/focasoftware/deboinventariov20/DB/DataBase/AppDb.kt
... | ... | @@ -12,7 +12,7 @@ import com.focasoftware.deboinventariov20.Model.InvHead |
12 | 12 | import com.focasoftware.deboinventariov20.Model.ServeInv |
13 | 13 | |
14 | 14 | |
15 | -@Database(entities = [Articles::class, InvHead::class, InvBody::class, ServeInv::class], version = 1, exportSchema = false) | |
15 | +@Database(entities = [Articles::class, InvHead::class, InvBody::class, ServeInv::class], version = 1, exportSchema = true) | |
16 | 16 | abstract class AppDb : RoomDatabase() { |
17 | 17 | abstract fun ArticulosDAO(): ArticulosDAO? |
18 | 18 | abstract fun InvHeadDAO(): InvHeadDAO? |
app/src/main/java/com/focasoftware/deboinventariov20/UI/SplashActivity.kt
app/src/main/java/com/focasoftware/deboinventariov20/UI/Utils/Utils.kt
... | ... | @@ -40,6 +40,7 @@ open class AlertDialogBorrarInv : DialogFragment() { |
40 | 40 | val content = "¿Seguro que desea Borrar el inventario?" |
41 | 41 | val builder: AlertDialog.Builder = AlertDialog.Builder(requireActivity()) |
42 | 42 | builder.setTitle(title).setMessage(content) |
43 | + | |
43 | 44 | .setPositiveButton(android.R.string.ok) { _, _ -> |
44 | 45 | val listener = activity as OnBorrarInvClickListener? |
45 | 46 | listener!!.onPositiveClick() |
... | ... | @@ -56,9 +57,11 @@ open class AlertDialogBorrarInv : DialogFragment() { |
56 | 57 | class NoEncontradoSimple : DialogFragment() { |
57 | 58 | override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { |
58 | 59 | return activity?.let { |
60 | + val builder: AlertDialog.Builder = AlertDialog.Builder(requireActivity()) | |
61 | + builder.show() | |
59 | 62 | val title = "" |
60 | 63 | val content = "¡El producto buscado NO fue encontrado!" |
61 | - val builder: AlertDialog.Builder = AlertDialog.Builder(requireActivity()) | |
64 | + | |
62 | 65 | builder.setTitle(title).setMessage(content) |
63 | 66 | .setPositiveButton(android.R.string.ok) { _, _ -> } |
64 | 67 | return builder.create() |
... | ... | @@ -123,4 +126,16 @@ class serverNoValido : DialogFragment() { |
123 | 126 | return builder.create() |
124 | 127 | } ?: throw IllegalStateException("Activity cannot be null") |
125 | 128 | } |
129 | +} | |
130 | +class serverNoConf : DialogFragment() { | |
131 | + override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { | |
132 | + return activity?.let { | |
133 | + val title = "Servidor no Valido" | |
134 | + val content = "!Debe configurar el Servidor en Configuraciones¡" | |
135 | + val builder: AlertDialog.Builder = AlertDialog.Builder(requireActivity()) | |
136 | + builder.setTitle(title).setMessage(content) | |
137 | + .setPositiveButton(android.R.string.ok) { _, _ -> } | |
138 | + return builder.create() | |
139 | + } ?: throw IllegalStateException("Activity cannot be null") | |
140 | + } | |
126 | 141 | } |
127 | 142 | \ No newline at end of file |
app/src/main/java/com/focasoftware/deboinventariov20/UI/actualizacionMaestros/ActuaMaestrosFragment.kt
... | ... | @@ -5,6 +5,7 @@ import android.view.LayoutInflater |
5 | 5 | import android.view.View |
6 | 6 | import android.view.ViewGroup |
7 | 7 | import android.widget.Button |
8 | +import android.widget.Toast | |
8 | 9 | import androidx.fragment.app.Fragment |
9 | 10 | import com.focasoftware.deboinventariov20.DB.DataBase.AppDb |
10 | 11 | import com.focasoftware.deboinventariov20.Model.Articles |
... | ... | @@ -12,6 +13,8 @@ import com.focasoftware.deboinventariov20.Model.ProductosService |
12 | 13 | import com.focasoftware.deboinventariov20.Model.ServeInv |
13 | 14 | import com.focasoftware.deboinventariov20.R |
14 | 15 | import com.focasoftware.deboinventariov20.UI.Utils.noServerConf |
16 | +import com.focasoftware.deboinventariov20.UI.Utils.serverNoConf | |
17 | +import com.focasoftware.deboinventariov20.UI.Utils.serverValido | |
15 | 18 | import kotlinx.android.synthetic.main.fragment_actua_maestros.* |
16 | 19 | import kotlinx.coroutines.* |
17 | 20 | import kotlinx.coroutines.Dispatchers.IO |
... | ... | @@ -20,20 +23,30 @@ import java.net.SocketTimeoutException |
20 | 23 | |
21 | 24 | |
22 | 25 | var BASE_URL = "" |
23 | - | |
26 | +var serverPre:ServeInv?=null | |
24 | 27 | class ActuaMaestrosFragment : Fragment() { |
25 | 28 | |
26 | 29 | override fun onCreate(savedInstanceState: Bundle?) { |
27 | 30 | super.onCreate(savedInstanceState) |
28 | 31 | |
29 | 32 | GlobalScope.launch(Main) { |
30 | - val serverPre = fetchServerPreOne() | |
31 | - if (serverPre!!.direccion.isNullOrEmpty()) { | |
32 | - val modalDialog = noServerConf() | |
33 | + | |
34 | + serverPre = fetchServerPreOne() | |
35 | + if (serverPre!=null) { | |
36 | + btnConfirmarAct.isEnabled=true | |
37 | + if (serverPre!!.direccion.isNullOrEmpty()) { | |
38 | + val modalDialog = noServerConf() | |
39 | + modalDialog.show(requireActivity().supportFragmentManager, "confirmDialog") | |
40 | + } else { | |
41 | + BASE_URL = serverPre!!.direccion.toString() + ":" + serverPre!!.puerto.toString() + "/" | |
42 | + tvServerConectado.text = "Conectado al servidor: ${serverPre!!.descripcion}" | |
43 | + } | |
44 | + }else{ | |
45 | + val modalDialog = serverNoConf() | |
33 | 46 | modalDialog.show(requireActivity().supportFragmentManager, "confirmDialog") |
34 | - } else { | |
35 | - BASE_URL = serverPre.direccion.toString() + ":" + serverPre.puerto.toString() + "/" | |
36 | - tvServerConectado.text = "Conectado al servidor: ${serverPre.descripcion}" | |
47 | + | |
48 | + btnConfirmarAct.isEnabled=false | |
49 | + | |
37 | 50 | } |
38 | 51 | } |
39 | 52 |
app/src/main/java/com/focasoftware/deboinventariov20/UI/configuracion/ConfiguracionFragment.kt
... | ... | @@ -231,54 +231,17 @@ class ConfiguracionFragment : Fragment() { |
231 | 231 | |
232 | 232 | if (etRuta.text.isNotEmpty()) editor?.putString("etRuta", etRuta.text.toString()) |
233 | 233 | |
234 | - if (rbProInclu.isChecked) editor?.putString( | |
235 | - "rbProInclu", | |
236 | - "1" | |
237 | - ) else editor?.putString("rbProInclu", "0") | |
238 | - if (rbProNoInclu.isChecked) editor?.putString( | |
239 | - "rbProNoInclu", | |
240 | - "1" | |
241 | - ) else editor?.putString("rbProNoInclu", "0") | |
242 | - | |
243 | - if (cbHabiLectura.isChecked) editor?.putString( | |
244 | - "cbHabiLectura", | |
245 | - "1" | |
246 | - ) else editor?.putString( | |
247 | - "cbHabiLectura", | |
248 | - "0" | |
249 | - ) | |
250 | - if (cbMostrarStock.isChecked) editor?.putString( | |
251 | - "cbMostrarStock", | |
252 | - "1" | |
253 | - ) else editor?.putString("cbMostrarStock", "0") | |
254 | - if (rbVentas.isChecked) editor?.putString( | |
255 | - "rbVentas", | |
256 | - "1" | |
257 | - ) else editor?.putString("rbVentas", "0") | |
258 | - if (rbDeposito.isChecked) editor?.putString( | |
259 | - "rbDeposito", | |
260 | - "1" | |
261 | - ) else editor?.putString("rbDeposito", "0") | |
262 | - if (rbCodigoDebo.isChecked) editor?.putString( | |
263 | - "rbCodigoDebo", | |
264 | - "1" | |
265 | - ) else editor?.putString("rbCodigoDebo", "0") | |
266 | - if (rbCodigoOrigen.isChecked) editor?.putString( | |
267 | - "rbCodigoOrigen", | |
268 | - "1" | |
269 | - ) else editor?.putString("rbCodigoOrigen", "0") | |
270 | - if (rbCodigoBarras.isChecked) editor?.putString( | |
271 | - "rbCodigoBarras", | |
272 | - "1" | |
273 | - ) else editor?.putString("rbCodigoBarras", "0") | |
274 | - if (cbMostrarExistencia.isChecked) editor?.putString( | |
275 | - "cbMostrarExistencia", | |
276 | - "1" | |
277 | - ) else editor?.putString("cbMostrarExistencia", "0") | |
278 | - if (cbMostrarPrecio.isChecked) editor?.putString( | |
279 | - "cbMostrarPrecio", | |
280 | - "1" | |
281 | - ) else editor?.putString("cbMostrarPrecio", "0") | |
234 | + if (rbProInclu.isChecked) editor?.putString("rbProInclu", "1") else editor?.putString("rbProInclu", "0") | |
235 | + if (rbProNoInclu.isChecked) editor?.putString("rbProNoInclu", "1") else editor?.putString("rbProNoInclu", "0") | |
236 | + if (cbHabiLectura.isChecked) editor?.putString("cbHabiLectura", "1") else editor?.putString("cbHabiLectura", "0") | |
237 | + if (cbMostrarStock.isChecked) editor?.putString("cbMostrarStock", "1") else editor?.putString("cbMostrarStock", "0") | |
238 | + if (rbVentas.isChecked) editor?.putString("rbVentas","1") else editor?.putString("rbVentas", "0") | |
239 | + if (rbDeposito.isChecked) editor?.putString("rbDeposito","1") else editor?.putString("rbDeposito", "0") | |
240 | +// if (rbCodigoDebo.isChecked) editor?.putString("rbCodigoDebo", "1") else editor?.putString("rbCodigoDebo", "0") | |
241 | +// if (rbCodigoOrigen.isChecked) editor?.putString("rbCodigoOrigen", "1") else editor?.putString("rbCodigoOrigen", "0") | |
242 | +// if (rbCodigoBarras.isChecked) editor?.putString("rbCodigoBarras", "1") else editor?.putString("rbCodigoBarras", "0") | |
243 | +// if (cbMostrarExistencia.isChecked) editor?.putString("cbMostrarExistencia", "1") else editor?.putString("cbMostrarExistencia", "0") | |
244 | +// if (cbMostrarPrecio.isChecked) editor?.putString("cbMostrarPrecio", "1") else editor?.putString("cbMostrarPrecio", "0") | |
282 | 245 | editor?.putString("ServerPredeterminado", indexSelect.toString()) |
283 | 246 | updateServerPreInZero() |
284 | 247 | updateServerPre(itemSelect) |
app/src/main/java/com/focasoftware/deboinventariov20/UI/descripcionFragment/DescripcionFragment.kt
... | ... | @@ -123,7 +123,8 @@ class DescripcionFragment : Fragment() { |
123 | 123 | mDialogView.etCantidad.requestFocus() |
124 | 124 | mDialogView.etCantidad.hint = "Ingrese un valor" |
125 | 125 | } else if (!mDialogView.etCantidad.text.isNullOrEmpty()) { |
126 | - cantidad = String.format("%.2f", mDialogView.etCantidad.text.toString().toFloat()).toFloat() | |
126 | + | |
127 | + cantidad = String.format("%.2f",mDialogView.etCantidad.text.toString().toFloat()).toFloat() | |
127 | 128 | val body = InvBody( |
128 | 129 | numeroInventario, |
129 | 130 | (viewAdapter2 as DescripcionListAdapter).items2?.get(viewHolder.layoutPosition)!!.sector, |
app/src/main/java/com/focasoftware/deboinventariov20/UI/inventario/InventarioFragment.kt
... | ... | @@ -22,6 +22,9 @@ import android.widget.Toast |
22 | 22 | import androidx.core.content.ContextCompat |
23 | 23 | import androidx.core.os.bundleOf |
24 | 24 | import androidx.fragment.app.Fragment |
25 | +import androidx.lifecycle.ViewModel | |
26 | +import androidx.lifecycle.ViewModelProvider | |
27 | +import androidx.lifecycle.ViewModelProviders | |
25 | 28 | import androidx.lifecycle.lifecycleScope |
26 | 29 | import androidx.navigation.NavController |
27 | 30 | import androidx.navigation.Navigation |
... | ... | @@ -35,6 +38,7 @@ import com.focasoftware.deboinventariov20.Model.InvHead |
35 | 38 | import com.focasoftware.deboinventariov20.R |
36 | 39 | import com.focasoftware.deboinventariov20.UI.Utils.NoEncontradoSimple |
37 | 40 | import com.focasoftware.deboinventariov20.UI.Utils.modificarCantidadEnCabecera |
41 | +import com.focasoftware.deboinventariov20.UI.inventario.viewModel.InventarioViewModel | |
38 | 42 | import kotlinx.android.synthetic.main.fragment_inventario.* |
39 | 43 | import kotlinx.android.synthetic.main.ingresar_cantidad.view.* |
40 | 44 | import kotlinx.android.synthetic.main.login_dialog.view.* |
... | ... | @@ -63,14 +67,16 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
63 | 67 | private var bFirst = false |
64 | 68 | private lateinit var deleteIcon: Drawable |
65 | 69 | lateinit var mDialogView: View |
70 | + lateinit var inventarioViewModel: ViewModel | |
66 | 71 | |
67 | 72 | @SuppressLint("MissingPermission") |
68 | 73 | override fun onCreate(savedInstanceState: Bundle?) { |
69 | 74 | super.onCreate(savedInstanceState) |
70 | - | |
75 | + inventarioViewModel= ViewModelProviders.of(this).get(InventarioViewModel::class.java) | |
76 | + | |
71 | 77 | sharedPreferences = requireActivity().getSharedPreferences("SP_INFO", Context.MODE_PRIVATE) |
72 | 78 | if (sharedPreferences.contains("Inventario")) if (sharedPreferences.getString("Inventario", "").toString() != "-1") { |
73 | - InventarioNuevo = sharedPreferences.getString("Inventario", "").toString().toInt() | |
79 | + (inventarioViewModel as InventarioViewModel).InventarioNuevo = sharedPreferences.getString("Inventario", "").toString().toInt() | |
74 | 80 | val editor = sharedPreferences.edit() |
75 | 81 | editor?.putString("Inventario", "-1") |
76 | 82 | editor?.apply() |
... | ... | @@ -94,19 +100,19 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
94 | 100 | rcInventarios = v.findViewById(R.id.rcInventarios) |
95 | 101 | val tvTitulo = v.findViewById<TextView>(R.id.tvTitulo) |
96 | 102 | |
97 | - if (InventarioNuevo == 0) {// TODO: SI INVETNARIO NUEVO | |
103 | + if ((inventarioViewModel as InventarioViewModel).InventarioNuevo == 0) {// TODO: SI INVETNARIO NUEVO | |
98 | 104 | GlobalScope.launch(Dispatchers.Main) { |
99 | 105 | //TODO: BUSCO EL ULTIMO INVENTARIO EN LA BD PARA PODER CREAR EL PROXIMO |
100 | - InventarioNuevo = AppDb.getAppDb(requireActivity())?.InvHeadDAO()?.findLastInv()?.plus(1) ?: 1 | |
106 | + (inventarioViewModel as InventarioViewModel).InventarioNuevo = AppDb.getAppDb(requireActivity())?.InvHeadDAO()?.findLastInv()?.plus(1) ?: 1 | |
101 | 107 | //TODO: CREAMOS EL INVENTARIO EN LA CABECERA DEL INVENTARIO |
102 | - invHead = InvHead(InventarioNuevo, if (!SerchArea()) "Ventas" else "Deposito", 1, ObtenerFechaActual(), ObtenerFechaActual(), 0L, SerchArea(), AjusteProductos(), ProdNoCont()) | |
108 | + invHead = InvHead((inventarioViewModel as InventarioViewModel).InventarioNuevo, if (!SerchArea()) "Ventas" else "Deposito", 1, ObtenerFechaActual(), ObtenerFechaActual(), 0L, SerchArea(), AjusteProductos(), ProdNoCont()) | |
103 | 109 | AppDb.getAppDb(requireActivity())!!.InvHeadDAO()!!.insertInvHead(invHead) |
104 | - tvTitulo.text = "Inventario " + " # $InventarioNuevo" | |
110 | + tvTitulo.text = "Inventario " + " # ${(inventarioViewModel as InventarioViewModel).InventarioNuevo}" | |
105 | 111 | } |
106 | 112 | } else {// TODO (SI VENGO DE FRAGMENT DESCRIPCION) |
107 | 113 | listArticulos.clear() |
108 | - CargarDeBdInventario(InventarioNuevo) | |
109 | - tvTitulo.text = "Inventario " + " # $InventarioNuevo" | |
114 | + CargarDeBdInventario((inventarioViewModel as InventarioViewModel).InventarioNuevo) | |
115 | + tvTitulo.text = "Inventario " + " # ${(inventarioViewModel as InventarioViewModel).InventarioNuevo}" | |
110 | 116 | } |
111 | 117 | |
112 | 118 | tCodigoBarras.setOnKeyListener { _, keyCode, keyEvent -> |
... | ... | @@ -315,9 +321,9 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
315 | 321 | AlertDialog.Builder(requireContext()).setTitle("Eliminación de Inventarios").setMessage("¿Confirma que desea eliminar el inventario?") |
316 | 322 | .setPositiveButton(R.string.btnOk, DialogInterface.OnClickListener { dialog, which -> |
317 | 323 | BorrarInvActual() |
318 | - Toast.makeText(requireContext(), "El inventario $InventarioNuevo fue Borrado", Toast.LENGTH_LONG).show() | |
324 | + Toast.makeText(requireContext(), "El inventario $(inventarioViewModel as InventarioViewModel).InventarioNuevo fue Borrado", Toast.LENGTH_LONG).show() | |
319 | 325 | navController.navigate(R.id.action_inventarioFragment_to_mainFragment2) |
320 | - InventarioNuevo = 0 | |
326 | + (inventarioViewModel as InventarioViewModel).InventarioNuevo = 0 | |
321 | 327 | |
322 | 328 | }).setNegativeButton(R.string.btnCancelar, DialogInterface.OnClickListener { dialog, which -> |
323 | 329 | //botón cancel pulsado |
... | ... | @@ -328,9 +334,9 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
328 | 334 | AlertDialog.Builder(requireContext()).setTitle(R.string.sTituloExportar).setMessage(R.string.sMensajeExportar) |
329 | 335 | .setPositiveButton(R.string.btnOk, DialogInterface.OnClickListener { dialog, which -> |
330 | 336 | BorrarInvActual() |
331 | - Toast.makeText(requireContext(), "El inventario $InventarioNuevo fue Exportado al Servidor", Toast.LENGTH_LONG).show() | |
337 | + Toast.makeText(requireContext(), "El inventario $(inventarioViewModel as InventarioViewModel).InventarioNuevo fue Exportado al Servidor", Toast.LENGTH_LONG).show() | |
332 | 338 | navController.navigate(R.id.action_inventarioFragment_to_mainFragment2) |
333 | - InventarioNuevo = 0 | |
339 | + (inventarioViewModel as InventarioViewModel).InventarioNuevo = 0 | |
334 | 340 | |
335 | 341 | }).setNegativeButton(R.string.btnCancelar, DialogInterface.OnClickListener { dialog, which -> }).show() |
336 | 342 | } |
... | ... | @@ -343,7 +349,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
343 | 349 | when (iEstado) { |
344 | 350 | 0 -> { |
345 | 351 | ivCamara.setImageResource(R.drawable.codbar) |
346 | - etCodigoBarras.hint = "Busqueda por C. Barras" | |
352 | + etCodigoBarras.hint = "Busqueda por Código de Barras" | |
347 | 353 | swSumaUno.visibility = View.VISIBLE |
348 | 354 | iBusquedaPor = 0 |
349 | 355 | iEstado = 1 |
... | ... | @@ -357,7 +363,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
357 | 363 | } |
358 | 364 | 2 -> { |
359 | 365 | ivCamara.setImageResource(R.drawable.cod_origen) |
360 | - etCodigoBarras.hint = "Busqueda por C. Origen" | |
366 | + etCodigoBarras.hint = "Busqueda por Código de Origen" | |
361 | 367 | swSumaUno.visibility = View.GONE |
362 | 368 | iBusquedaPor = 2 |
363 | 369 | iEstado = 0 |
... | ... | @@ -369,8 +375,8 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
369 | 375 | private fun BorrarInvActual() { |
370 | 376 | lifecycleScope.launch { |
371 | 377 | withContext(Dispatchers.IO) { |
372 | - AppDb.getAppDb(requireActivity())!!.InvHeadDAO()!!.deleteinvHead(InventarioNuevo.toLong()) | |
373 | - AppDb.getAppDb(requireActivity())!!.InvBodyDAO()!!.deleteInvBody(InventarioNuevo.toLong()) | |
378 | + AppDb.getAppDb(requireActivity())!!.InvHeadDAO()!!.deleteinvHead((inventarioViewModel as InventarioViewModel).InventarioNuevo.toLong()) | |
379 | + AppDb.getAppDb(requireActivity())!!.InvBodyDAO()!!.deleteInvBody((inventarioViewModel as InventarioViewModel).InventarioNuevo.toLong()) | |
374 | 380 | } |
375 | 381 | } |
376 | 382 | } |
... | ... | @@ -406,7 +412,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
406 | 412 | |
407 | 413 | var bundle = Bundle() |
408 | 414 | bundle = bundleOf("ArrayDesc" to artAcargar) |
409 | - bundle.putInt("numeroInv", InventarioNuevo) | |
415 | + bundle.putInt("numeroInv", (inventarioViewModel as InventarioViewModel).InventarioNuevo) | |
410 | 416 | navController.navigate(R.id.action_inventarioFragment_to_codigoOriFragment, bundle) |
411 | 417 | |
412 | 418 | } else {//TODO si no lo encuentra en la BD |
... | ... | @@ -449,7 +455,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
449 | 455 | imm!!.hideSoftInputFromWindow(requireActivity().currentFocus?.windowToken, InputMethodManager.HIDE_NOT_ALWAYS) |
450 | 456 | var bundle = Bundle() |
451 | 457 | bundle = bundleOf("ArrayDesc" to artAcargar) |
452 | - bundle.putInt("numeroInv", InventarioNuevo) | |
458 | + bundle.putInt("numeroInv", (inventarioViewModel as InventarioViewModel).InventarioNuevo) | |
453 | 459 | navController.navigate(R.id.action_inventarioFragment_to_descripcionFragment, bundle) |
454 | 460 | //navController.backStack.removeLast() |
455 | 461 | // } |
... | ... | @@ -486,7 +492,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
486 | 492 | // } else { |
487 | 493 | // var bundle = Bundle() |
488 | 494 | // bundle = bundleOf("ArrayDesc" to artAcargar) |
489 | -// bundle.putInt("numeroInv", InventarioNuevo) | |
495 | +// bundle.putInt("numeroInv", (inventarioViewModel as InventarioViewModel).InventarioNuevo) | |
490 | 496 | // navController.navigate(R.id.action_inventarioFragment_to_descripcionFragment, bundle) |
491 | 497 | // } |
492 | 498 | // } |
... | ... | @@ -543,7 +549,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
543 | 549 | cantidad = mDialogView.etCantidad.text.toString().toFloat() |
544 | 550 | cargarArtEnBd(artAcargar, String.format("%.2f", cantidad)) |
545 | 551 | cargarRecicler(artAcargar, cantidad) |
546 | - modificarCantidadEnCabecera(InventarioNuevo, true, requireContext()) | |
552 | + modificarCantidadEnCabecera((inventarioViewModel as InventarioViewModel).InventarioNuevo, true, requireContext()) | |
547 | 553 | } |
548 | 554 | } |
549 | 555 | return cantidad |
... | ... | @@ -702,7 +708,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
702 | 708 | } |
703 | 709 | |
704 | 710 | private fun cargarArtEnBd(articulos: Articles, cant: String) { |
705 | - val body = InvBody(InventarioNuevo,// TODO PREPARO PARA MANDAR A CARGAR EN LA BD | |
711 | + val body = InvBody((inventarioViewModel as InventarioViewModel).InventarioNuevo,// TODO PREPARO PARA MANDAR A CARGAR EN LA BD | |
706 | 712 | articulos.sector, |
707 | 713 | articulos.codigo, |
708 | 714 | articulos.descripcion, |
... | ... | @@ -739,10 +745,10 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
739 | 745 | override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int) { |
740 | 746 | |
741 | 747 | GlobalScope.launch(Dispatchers.Main) { |
742 | - borrarArticulo(listArticulos[viewHolder.adapterPosition].sector.toString(), listArticulos[viewHolder.adapterPosition].codigo.toString(), InventarioNuevo.toString()) | |
748 | + borrarArticulo(listArticulos[viewHolder.adapterPosition].sector.toString(), listArticulos[viewHolder.adapterPosition].codigo.toString(), (inventarioViewModel as InventarioViewModel).InventarioNuevo.toString()) | |
743 | 749 | (viewAdapter as ProductosListAdapter).removeItem(viewHolder) |
744 | 750 | viewAdapter.notifyDataSetChanged() |
745 | - modificarCantidadEnCabecera(InventarioNuevo, false, requireContext()) | |
751 | + modificarCantidadEnCabecera((inventarioViewModel as InventarioViewModel).InventarioNuevo, false, requireContext()) | |
746 | 752 | } |
747 | 753 | } |
748 | 754 | |
... | ... | @@ -790,7 +796,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
790 | 796 | |
791 | 797 | suspend fun SerchAreaInventario(): Boolean { |
792 | 798 | return GlobalScope.async(IO) { |
793 | - return@async AppDb.getAppDb(requireActivity())!!.InvHeadDAO()!!.fetchAreaInvH(InventarioNuevo.toLong()) | |
799 | + return@async AppDb.getAppDb(requireActivity())!!.InvHeadDAO()!!.fetchAreaInvH((inventarioViewModel as InventarioViewModel).InventarioNuevo.toLong()) | |
794 | 800 | }.await() |
795 | 801 | |
796 | 802 | } |
... | ... | @@ -829,7 +835,7 @@ class InventarioFragment : Fragment(), ProductosListAdapter.OnImageDotsClickList |
829 | 835 | val bundle = Bundle() |
830 | 836 | bundle.putString("sector", sector!!.toInt().toString()) |
831 | 837 | bundle.putString("codigo", codigo) |
832 | - bundle.putInt("numeroInv", InventarioNuevo) | |
838 | + bundle.putInt("numeroInv", (inventarioViewModel as InventarioViewModel).InventarioNuevo) | |
833 | 839 | navController.navigate(R.id.action_inventarioFragment_to_detalleArtFragment, bundle) |
834 | 840 | } |
835 | 841 |
app/src/main/res/drawable-v24/inicio.xml
... | ... | @@ -1,10 +0,0 @@ |
1 | -<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
2 | - android:width="30dp" | |
3 | - android:height="30dp" | |
4 | - android:viewportWidth="30" | |
5 | - android:viewportHeight="30" | |
6 | - android:tint="?attr/colorControlNormal"> | |
7 | - <path | |
8 | - android:fillColor="@android:color/white" | |
9 | - android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"/> | |
10 | -</vector> |
app/src/main/res/drawable-xlarge/ic_sort19.xml
... | ... | @@ -0,0 +1,6 @@ |
1 | +<vector android:height="40dp" android:viewportHeight="97.589" | |
2 | + android:viewportWidth="97.589" android:width="40dp" xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | + <path android:fillColor="#FF000000" android:pathData="M66.287,15.789c0.547,0.049 1.077,-0.121 1.489,-0.475l5.481,-4.705l-0.032,28.367c0,0.531 0.21,1.041 0.585,1.416s0.884,0.586 1.415,0.586h5.229c1.104,0 2,-0.895 2,-2V2.17c0,-1.104 -0.896,-2 -2,-2h-4.892c-0.453,0 -0.893,0.154 -1.246,0.436L63.079,9.553c-0.416,0.332 -0.683,0.814 -0.742,1.342c-0.059,0.529 0.096,1.059 0.428,1.475l2.146,2.68C65.251,15.471 65.747,15.738 66.287,15.789z"/> | |
4 | + <path android:fillColor="#FF000000" android:pathData="M90.684,64.143c-1.218,-2.703 -2.99,-4.797 -5.27,-6.223c-2.275,-1.424 -4.962,-2.145 -7.982,-2.145c-4.296,0 -7.746,1.301 -10.257,3.867c-2.506,2.562 -3.775,6.084 -3.775,10.465c0,4.063 1.051,7.297 3.123,9.604c2.086,2.322 4.968,3.5 8.566,3.5c2.141,0 3.956,-0.365 5.399,-1.086c1.161,-0.584 2.225,-1.515 3.161,-2.767c-0.219,2.402 -0.729,4.354 -1.51,5.795c-0.905,1.664 -2.229,2.9 -3.934,3.679c-1.746,0.793 -4.013,1.194 -6.738,1.194c-1.018,0 -2.023,-0.075 -2.989,-0.223c-0.578,-0.084 -1.162,0.08 -1.605,0.459c-0.441,0.381 -0.697,0.936 -0.697,1.518v3.638c0,1.021 0.769,1.877 1.782,1.987c1.101,0.121 2.475,0.183 4.082,0.183c6.82,0 11.996,-2.01 15.384,-5.974c3.367,-3.944 5.074,-9.963 5.074,-17.889C92.497,70.041 91.886,66.816 90.684,64.143zM81.473,74.219c-1.129,1.039 -2.45,1.543 -4.042,1.543c-1.671,0 -2.869,-0.49 -3.667,-1.502c-0.813,-1.025 -1.226,-2.459 -1.226,-4.262c0,-2.121 0.457,-3.756 1.358,-4.857c0.887,-1.084 2.096,-1.611 3.695,-1.611c1.609,0 2.9,0.664 3.943,2.031c1.063,1.396 1.601,3.137 1.601,5.174C83.139,72.053 82.594,73.193 81.473,74.219z"/> | |
5 | + <path android:fillColor="#FF000000" android:pathData="M43.243,65.596h-8.011V2c0,-1.105 -0.896,-2 -2,-2h-16.13c-1.104,0 -2,0.895 -2,2v63.596H7.091c-0.77,0 -1.472,0.443 -1.804,1.137c-0.333,0.695 -0.237,1.519 0.246,2.117l18.076,26.955c0.38,0.473 0.953,0.746 1.558,0.746s1.178,-0.273 1.558,-0.746L44.801,68.85c0.482,-0.6 0.578,-1.422 0.246,-2.117C44.715,66.039 44.013,65.596 43.243,65.596z"/> | |
6 | +</vector> |
app/src/main/res/drawable-xlarge/ic_sort91.xml
... | ... | @@ -0,0 +1,6 @@ |
1 | +<vector android:height="40dp" android:viewportHeight="97.086" | |
2 | + android:viewportWidth="97.086" android:width="40dp" xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | + <path android:fillColor="#FF000000" android:pathData="M66.035,71.896c0.547,0.049 1.077,-0.121 1.489,-0.475l5.481,-4.705l-0.032,28.367c0,0.531 0.21,1.041 0.585,1.416s0.885,0.586 1.415,0.586h5.229c1.105,0 2,-0.895 2,-2V58.277c0,-1.104 -0.895,-2 -2,-2H75.31c-0.453,0 -0.893,0.154 -1.246,0.436L62.828,65.66c-0.416,0.332 -0.684,0.814 -0.742,1.342c-0.06,0.529 0.096,1.059 0.428,1.475l2.146,2.681C65,71.578 65.496,71.846 66.035,71.896z"/> | |
4 | + <path android:fillColor="#FF000000" android:pathData="M90.432,8.699c-1.218,-2.703 -2.99,-4.797 -5.271,-6.223C82.887,1.052 80.2,0.331 77.18,0.331c-4.297,0 -7.747,1.301 -10.258,3.867c-2.506,2.562 -3.775,6.084 -3.775,10.465c0,4.064 1.051,7.297 3.122,9.605c2.086,2.322 4.969,3.5 8.566,3.5c2.142,0 3.956,-0.365 5.399,-1.086c1.161,-0.584 2.225,-1.514 3.161,-2.766c-0.22,2.402 -0.729,4.354 -1.511,5.795c-0.904,1.664 -2.229,2.9 -3.934,3.678c-1.745,0.793 -4.013,1.195 -6.737,1.195c-1.018,0 -2.023,-0.076 -2.989,-0.223c-0.578,-0.084 -1.162,0.08 -1.605,0.459c-0.442,0.381 -0.696,0.936 -0.696,1.518v3.637c0,1.021 0.769,1.877 1.781,1.988c1.102,0.121 2.475,0.182 4.082,0.182c6.82,0 11.996,-2.01 15.385,-5.973c3.367,-3.945 5.074,-9.963 5.074,-17.889C92.246,14.598 91.634,11.373 90.432,8.699zM81.221,18.775c-1.129,1.039 -2.449,1.543 -4.041,1.543c-1.672,0 -2.869,-0.49 -3.668,-1.502c-0.813,-1.025 -1.226,-2.459 -1.226,-4.262c0,-2.121 0.457,-3.756 1.358,-4.857c0.887,-1.084 2.097,-1.611 3.695,-1.611c1.609,0 2.9,0.664 3.943,2.031c1.063,1.395 1.602,3.137 1.602,5.174C82.887,16.609 82.342,17.75 81.221,18.775z"/> | |
5 | + <path android:fillColor="#FF000000" android:pathData="M42.992,65.596h-8.011V2c0,-1.105 -0.896,-2 -2,-2h-16.13c-1.104,0 -2,0.895 -2,2v63.596H6.84c-0.77,0 -1.472,0.443 -1.804,1.137C4.704,67.428 4.8,68.251 5.282,68.85l18.076,26.955c0.38,0.473 0.952,0.746 1.558,0.746s1.179,-0.273 1.559,-0.746L44.55,68.85c0.482,-0.6 0.578,-1.422 0.246,-2.117C44.464,66.039 43.762,65.596 42.992,65.596z"/> | |
6 | +</vector> |
app/src/main/res/drawable-xlarge/inicio.xml
... | ... | @@ -0,0 +1,5 @@ |
1 | +<vector android:height="80dp" android:tint="?attr/colorControlNormal" | |
2 | + android:viewportHeight="24" android:viewportWidth="24" | |
3 | + android:width="80dp" xmlns:android="http://schemas.android.com/apk/res/android"> | |
4 | + <path android:fillColor="@android:color/white" android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"/> | |
5 | +</vector> | |
0 | 6 | \ No newline at end of file |
app/src/main/res/drawable/ic_inicio.xml
... | ... | @@ -0,0 +1,10 @@ |
1 | +<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
2 | + android:width="24dp" | |
3 | + android:height="24dp" | |
4 | + android:viewportWidth="24" | |
5 | + android:viewportHeight="24" | |
6 | + android:tint="?attr/colorControlNormal"> | |
7 | + <path | |
8 | + android:fillColor="@android:color/white" | |
9 | + android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"/> | |
10 | +</vector> |
app/src/main/res/drawable/inicio.xml
... | ... | @@ -0,0 +1,12 @@ |
1 | + | |
2 | + | |
3 | +<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
4 | + android:width="24dp" | |
5 | + android:height="24dp" | |
6 | + android:viewportWidth="24" | |
7 | + android:viewportHeight="24" | |
8 | + android:tint="?attr/colorControlNormal"> | |
9 | + <path | |
10 | + android:fillColor="@android:color/white" | |
11 | + android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"/> | |
12 | +</vector> |
app/src/main/res/layout-large/item_spinner.xml
... | ... | @@ -0,0 +1,13 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<LinearLayout | |
3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
4 | + android:layout_width="match_parent" | |
5 | + android:layout_height="match_parent"> | |
6 | + | |
7 | + <TextView | |
8 | + android:layout_width="wrap_content" | |
9 | + android:layout_height="wrap_content" | |
10 | + android:textSize="40sp" | |
11 | + android:textStyle="bold" | |
12 | + android:id="@+id/tvServidorDesc"/> | |
13 | +</LinearLayout> |
app/src/main/res/layout-xlarge/activity_splash.xml
... | ... | @@ -0,0 +1,60 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="match_parent" | |
7 | + android:background="#E6E6E6" | |
8 | + | |
9 | + tools:context=".UI.SplashActivity"> | |
10 | + | |
11 | + | |
12 | + <androidx.appcompat.widget.AppCompatTextView | |
13 | + android:id="@+id/textView2" | |
14 | + android:layout_width="match_parent" | |
15 | + android:layout_height="150dp" | |
16 | + android:layout_margin="20dp" | |
17 | + android:autoSizeMaxTextSize="1000sp" | |
18 | + android:autoSizeMinTextSize="30sp" | |
19 | + android:autoSizeStepGranularity="5sp" | |
20 | + android:autoSizeTextType="uniform" | |
21 | + android:gravity="center" | |
22 | + android:lines="1" | |
23 | + android:text="@string/bien" | |
24 | + android:textColor="@color/colorAccent" | |
25 | + app:fontFamily="sans-serif-condensed" | |
26 | + app:layout_constraintBottom_toTopOf="@+id/imageView" | |
27 | + app:layout_constraintEnd_toEndOf="parent" | |
28 | + app:layout_constraintStart_toStartOf="parent" | |
29 | + app:layout_constraintTop_toTopOf="parent" /> | |
30 | + | |
31 | + <ImageView | |
32 | + android:id="@+id/imageView" | |
33 | + android:layout_width="541dp" | |
34 | + android:layout_height="388dp" | |
35 | + android:contentDescription="@string/todo" | |
36 | + android:src="@drawable/logo_splash" | |
37 | + app:layout_constraintBottom_toTopOf="@id/textView4" | |
38 | + app:layout_constraintEnd_toEndOf="parent" | |
39 | + app:layout_constraintStart_toStartOf="parent" | |
40 | + app:layout_constraintTop_toBottomOf="@+id/textView2" /> | |
41 | + | |
42 | + <androidx.appcompat.widget.AppCompatTextView | |
43 | + android:id="@+id/textView4" | |
44 | + android:layout_width="match_parent" | |
45 | + android:layout_height="150dp" | |
46 | + android:layout_margin="20dp" | |
47 | + android:autoSizeMaxTextSize="1000sp" | |
48 | + android:autoSizeMinTextSize="30sp" | |
49 | + android:autoSizeStepGranularity="5sp" | |
50 | + android:autoSizeTextType="uniform" | |
51 | + android:gravity="center" | |
52 | + android:lines="1" | |
53 | + android:text="@string/inventario" | |
54 | + android:textColor="@color/colorAccent" | |
55 | + app:fontFamily="sans-serif-condensed" | |
56 | + app:layout_constraintBottom_toBottomOf="parent" | |
57 | + app:layout_constraintEnd_toEndOf="parent" | |
58 | + app:layout_constraintEnd_toStartOf="parent" | |
59 | + app:layout_constraintTop_toBottomOf="@id/imageView" /> | |
60 | +</androidx.constraintlayout.widget.ConstraintLayout> | |
0 | 61 | \ No newline at end of file |
app/src/main/res/layout-xlarge/fragment_actua_maestros.xml
... | ... | @@ -0,0 +1,143 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="match_parent" | |
7 | + tools:context=".UI.actualizacionMaestros.ActuaMaestrosFragment"> | |
8 | + | |
9 | + | |
10 | + <androidx.appcompat.widget.AppCompatTextView | |
11 | + android:id="@+id/tvActMaestros" | |
12 | + android:layout_width="match_parent" | |
13 | + android:layout_height="120dp" | |
14 | + android:layout_marginTop="15dp" | |
15 | + android:autoSizeMaxTextSize="100sp" | |
16 | + android:autoSizeMinTextSize="20sp" | |
17 | + android:autoSizeStepGranularity="5sp" | |
18 | + android:autoSizeTextType="uniform" | |
19 | + android:gravity="center" | |
20 | + android:lines="1" | |
21 | + android:text="@string/tvActMaestros" | |
22 | + android:textColor="@color/colorAccent" | |
23 | + | |
24 | + app:fontFamily="sans-serif-condensed" | |
25 | + app:layout_constraintBottom_toTopOf="@+id/tvSeleccioneServidor" | |
26 | + app:layout_constraintEnd_toEndOf="parent" | |
27 | + app:layout_constraintStart_toStartOf="parent" | |
28 | + app:layout_constraintTop_toTopOf="parent" /> | |
29 | + | |
30 | + <TextView | |
31 | + android:id="@+id/tvSeleccioneServidor" | |
32 | + android:layout_width="0dp" | |
33 | + android:layout_height="wrap_content" | |
34 | + android:layout_marginStart="@dimen/MarginBotAgreSer" | |
35 | + android:layout_marginTop="20dp" | |
36 | + android:gravity="start" | |
37 | + android:lines="1" | |
38 | + android:text="@string/tvMedio" | |
39 | + android:textColor="@android:color/black" | |
40 | + android:textSize="@dimen/SubTitulos10" | |
41 | + app:fontFamily="sans-serif-condensed" | |
42 | + app:layout_constraintEnd_toEndOf="parent" | |
43 | + app:layout_constraintStart_toStartOf="parent" | |
44 | + app:layout_constraintTop_toBottomOf="@+id/tvActMaestros" /> | |
45 | + | |
46 | + <RadioGroup | |
47 | + android:id="@+id/rgTipoActualizacion" | |
48 | + android:layout_width="0dp" | |
49 | + android:layout_height="wrap_content" | |
50 | + android:layout_marginTop="20dp" | |
51 | + android:gravity="start" | |
52 | + android:orientation="vertical" | |
53 | + app:layout_constraintEnd_toEndOf="parent" | |
54 | + app:layout_constraintStart_toStartOf="parent" | |
55 | + app:layout_constraintTop_toBottomOf="@+id/tvSeleccioneServidor"> | |
56 | + | |
57 | + <RadioButton | |
58 | + android:id="@+id/obPorWifi" | |
59 | + android:layout_width="wrap_content" | |
60 | + android:layout_height="wrap_content" | |
61 | + android:layout_margin="5dp" | |
62 | + android:checked="true" | |
63 | + android:padding="5dp" | |
64 | + android:text="@string/obPorWifi" | |
65 | + android:textSize="@dimen/SubTitulos10" /> | |
66 | + | |
67 | + <RadioButton | |
68 | + android:id="@+id/obViaArchivo" | |
69 | + android:layout_width="wrap_content" | |
70 | + android:layout_height="wrap_content" | |
71 | + android:layout_margin="5dp" | |
72 | + android:checked="false" | |
73 | + android:padding="5dp" | |
74 | + android:text="@string/obViaArchivo" | |
75 | + android:textSize="@dimen/SubTitulos10"/> | |
76 | + </RadioGroup> | |
77 | + | |
78 | + <TextView | |
79 | + android:id="@+id/tvServerConectado" | |
80 | + android:layout_width="match_parent" | |
81 | + android:layout_height="wrap_content" | |
82 | + android:layout_margin="30dp" | |
83 | + android:gravity="center" | |
84 | + android:lines="2" | |
85 | + android:text="" | |
86 | + android:textColor="@android:color/black" | |
87 | + android:textSize="@dimen/textCantidad10" | |
88 | + android:textStyle="bold" | |
89 | + app:fontFamily="sans-serif-condensed" | |
90 | + app:layout_constraintBottom_toTopOf="@+id/countriesList" | |
91 | + app:layout_constraintTop_toBottomOf="@+id/rgTipoActualizacion" /> | |
92 | + | |
93 | + <TextView | |
94 | + android:id="@+id/countriesList" | |
95 | + android:layout_width="0dp" | |
96 | + android:layout_height="wrap_content" | |
97 | + android:layout_marginTop="@dimen/MarginTopTitulos" | |
98 | + android:gravity="center" | |
99 | + android:text="" | |
100 | + android:textColor="@android:color/black" | |
101 | + android:textSize="@dimen/SubTitulos10" | |
102 | + android:textStyle="bold" | |
103 | + android:visibility="visible" | |
104 | + app:fontFamily="sans-serif-condensed" | |
105 | + app:layout_constraintBottom_toTopOf="@+id/btnConfirmarAct" | |
106 | + app:layout_constraintEnd_toEndOf="parent" | |
107 | + app:layout_constraintHorizontal_bias="0.0" | |
108 | + app:layout_constraintStart_toStartOf="parent" | |
109 | + app:layout_constraintTop_toBottomOf="@+id/rgTipoActualizacion" | |
110 | + app:layout_constraintVertical_bias="0.106" /> | |
111 | + | |
112 | + <Button | |
113 | + android:id="@+id/btnConfirmarAct" | |
114 | + android:layout_width="0dp" | |
115 | + android:layout_height="wrap_content" | |
116 | + android:layout_margin="20dp" | |
117 | + android:background="@drawable/boton_borde_redondeado" | |
118 | + android:padding="10dp" | |
119 | + android:text="@string/btnConfirmarAct" | |
120 | + android:textColor="@android:color/white" | |
121 | + android:textSize="@dimen/SubTitulos10" | |
122 | + app:layout_constraintBottom_toBottomOf="parent" | |
123 | + app:layout_constraintEnd_toEndOf="parent" | |
124 | + app:layout_constraintStart_toStartOf="parent" /> | |
125 | + | |
126 | + | |
127 | + <ProgressBar | |
128 | + android:id="@+id/loading_view" | |
129 | + android:layout_width="wrap_content" | |
130 | + android:layout_height="wrap_content" | |
131 | + android:layout_marginStart="8dp" | |
132 | + android:layout_marginLeft="8dp" | |
133 | + android:layout_marginTop="8dp" | |
134 | + android:layout_marginEnd="8dp" | |
135 | + android:layout_marginRight="8dp" | |
136 | + android:layout_marginBottom="8dp" | |
137 | + android:visibility="gone" | |
138 | + app:layout_constraintBottom_toBottomOf="parent" | |
139 | + app:layout_constraintEnd_toEndOf="parent" | |
140 | + app:layout_constraintStart_toStartOf="parent" | |
141 | + app:layout_constraintTop_toTopOf="parent" /> | |
142 | + | |
143 | +</androidx.constraintlayout.widget.ConstraintLayout> |
app/src/main/res/layout-xlarge/fragment_codigo_ori.xml
... | ... | @@ -0,0 +1,85 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | + | |
3 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
4 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
5 | + xmlns:tools="http://schemas.android.com/tools" | |
6 | + android:layout_width="match_parent" | |
7 | + android:layout_height="match_parent" | |
8 | + android:background="@android:color/darker_gray" | |
9 | + tools:context=".UI.descripcionFragment.DescripcionFragment"> | |
10 | + | |
11 | + <ImageView | |
12 | + android:id="@+id/ivHolder" | |
13 | + android:layout_width="60dp" | |
14 | + android:layout_height="60dp" | |
15 | + android:src="@drawable/ic_izq" | |
16 | + android:visibility="visible" | |
17 | + app:layout_constraintBottom_toTopOf="@id/guideline4" | |
18 | + app:layout_constraintStart_toStartOf="parent" /> | |
19 | + | |
20 | + | |
21 | + <TextView | |
22 | + android:id="@+id/tvCodigo" | |
23 | + android:layout_width="0dp" | |
24 | + android:layout_height="wrap_content" | |
25 | + android:layout_marginStart="2dp" | |
26 | + android:gravity="center_horizontal" | |
27 | + android:orientation="vertical" | |
28 | + android:text="Deslizar a la izquierda para seleccionar" | |
29 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
30 | + android:textColor="@color/colorPrimaryDark" | |
31 | + android:textSize="30sp" | |
32 | + android:textStyle="bold" | |
33 | + | |
34 | + app:layout_constraintBottom_toTopOf="@id/guideline4" | |
35 | + app:layout_constraintHorizontal_chainStyle="packed" | |
36 | + app:layout_constraintStart_toEndOf="@id/ivHolder" | |
37 | + app:layout_constraintTop_toTopOf="parent" /> | |
38 | + | |
39 | + <androidx.recyclerview.widget.RecyclerView | |
40 | + android:id="@+id/rcCodigoOri" | |
41 | + android:layout_width="match_parent" | |
42 | + android:layout_height="0dp" | |
43 | + android:background="@android:color/darker_gray" | |
44 | + android:scrollbars="vertical" | |
45 | + app:layout_constraintBottom_toTopOf="@+id/guideline6" | |
46 | + app:layout_constraintEnd_toEndOf="parent" | |
47 | + app:layout_constraintStart_toStartOf="parent" | |
48 | + app:layout_constraintTop_toBottomOf="@id/guideline4" | |
49 | + tools:listitem="@layout/item_codigo_origen" /> | |
50 | + | |
51 | + <!-- <Button--> | |
52 | + <!-- android:id="@+id/btnSalir"--> | |
53 | + <!-- android:layout_width="0dp"--> | |
54 | + <!-- android:layout_height="wrap_content"--> | |
55 | + <!-- android:text="@string/btnCancelar"--> | |
56 | + <!-- android:textColor="@android:color/white"--> | |
57 | + <!-- android:padding="10dp"--> | |
58 | + <!-- android:background="@drawable/boton_borde_redondeado"--> | |
59 | + <!-- app:layout_constraintBottom_toBottomOf="@+id/guideline6"--> | |
60 | + <!-- app:layout_constraintEnd_toEndOf="parent"--> | |
61 | + <!-- app:layout_constraintHorizontal_chainStyle="spread"--> | |
62 | + <!-- app:layout_constraintStart_toStartOf="parent"--> | |
63 | + <!-- app:layout_constraintTop_toBottomOf="@+id/rcInventarios" />--> | |
64 | + | |
65 | + <androidx.constraintlayout.widget.Guideline | |
66 | + android:id="@+id/guideline4" | |
67 | + android:layout_width="wrap_content" | |
68 | + android:layout_height="wrap_content" | |
69 | + android:orientation="horizontal" | |
70 | + app:layout_constraintGuide_percent="0.06" /> | |
71 | + | |
72 | + <androidx.constraintlayout.widget.Guideline | |
73 | + android:id="@+id/guideline5" | |
74 | + android:layout_width="wrap_content" | |
75 | + android:layout_height="wrap_content" | |
76 | + android:orientation="horizontal" | |
77 | + app:layout_constraintGuide_percent="0.88" /> | |
78 | + | |
79 | + <androidx.constraintlayout.widget.Guideline | |
80 | + android:id="@+id/guideline6" | |
81 | + android:layout_width="wrap_content" | |
82 | + android:layout_height="wrap_content" | |
83 | + android:orientation="horizontal" | |
84 | + app:layout_constraintGuide_percent="0.97" /> | |
85 | +</androidx.constraintlayout.widget.ConstraintLayout> | |
0 | 86 | \ No newline at end of file |
app/src/main/res/layout-xlarge/fragment_configuracion.xml
... | ... | @@ -0,0 +1,372 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<ScrollView | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + tools:context=".UI.configuracion.ConfiguracionFragment" | |
6 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
7 | + android:layout_width="match_parent" | |
8 | + android:layout_height="wrap_content"> | |
9 | + | |
10 | +<androidx.constraintlayout.widget.ConstraintLayout | |
11 | + android:layout_width="match_parent" | |
12 | + android:layout_height="wrap_content" | |
13 | + tools:context=".UI.configuracion.ConfiguracionFragment"> | |
14 | + | |
15 | + | |
16 | + <androidx.appcompat.widget.AppCompatTextView | |
17 | + android:id="@+id/textView2" | |
18 | + android:layout_width="match_parent" | |
19 | + android:layout_height="100dp" | |
20 | + android:layout_marginStart="8dp" | |
21 | + android:layout_marginEnd="8dp" | |
22 | + android:autoSizeMaxTextSize="100sp" | |
23 | + android:autoSizeMinTextSize="20sp" | |
24 | + android:autoSizeStepGranularity="5sp" | |
25 | + android:autoSizeTextType="uniform" | |
26 | + android:gravity="center" | |
27 | + android:lines="1" | |
28 | + android:text="@string/tvTituloConf" | |
29 | + android:textColor="@color/colorAccent" | |
30 | + android:textSize="@dimen/Titulos" | |
31 | + app:fontFamily="sans-serif-condensed" | |
32 | + app:layout_constraintBottom_toTopOf="@+id/tvSeleccioneServidor" | |
33 | + app:layout_constraintEnd_toEndOf="parent" | |
34 | + app:layout_constraintStart_toStartOf="parent" | |
35 | + app:layout_constraintTop_toTopOf="parent" /> | |
36 | + | |
37 | + <TextView | |
38 | + android:id="@+id/tvSeleccioneServidor" | |
39 | + android:layout_width="0dp" | |
40 | + android:layout_height="wrap_content" | |
41 | + android:layout_marginStart="@dimen/MarginBotAgreSer" | |
42 | + android:layout_marginTop="15dp" | |
43 | + android:gravity="start" | |
44 | + android:lines="1" | |
45 | + android:text="@string/tvSeleccioneServidor" | |
46 | + android:textColor="@android:color/black" | |
47 | + android:textSize="@dimen/SubTitulos10" | |
48 | + app:fontFamily="sans-serif-condensed" | |
49 | + app:layout_constraintBottom_toTopOf="@+id/spServidor" | |
50 | + app:layout_constraintEnd_toEndOf="parent" | |
51 | + app:layout_constraintStart_toStartOf="parent" | |
52 | + app:layout_constraintTop_toBottomOf="@+id/textView2" /> | |
53 | + | |
54 | + <Spinner | |
55 | + android:id="@+id/spServidor" | |
56 | + style="@android:style/Widget.Holo.Light.Spinner" | |
57 | + android:layout_width="0dp" | |
58 | + android:layout_height="wrap_content" | |
59 | + android:elevation="5dp" | |
60 | + android:textSize="@dimen/VentasDeposito10" | |
61 | + app:layout_constraintBottom_toTopOf="@+id/btnAgregarServidor" | |
62 | + app:layout_constraintEnd_toStartOf="@+id/btnValidarServidor" | |
63 | + app:layout_constraintHorizontal_chainStyle="packed" | |
64 | + app:layout_constraintStart_toStartOf="parent" | |
65 | + app:layout_constraintTop_toBottomOf="@+id/tvSeleccioneServidor" | |
66 | + /> | |
67 | + | |
68 | + <Button | |
69 | + android:id="@+id/btnValidarServidor" | |
70 | + android:layout_width="wrap_content" | |
71 | + android:layout_height="wrap_content" | |
72 | + android:textColor="@android:color/white" | |
73 | + android:padding="10dp" | |
74 | + android:background="@drawable/boton_borde_redondeado" | |
75 | + android:text="@string/btnValidarServidor" | |
76 | + android:textSize="@dimen/SubTitulos10" | |
77 | + app:layout_constraintBottom_toTopOf="@+id/btnAgregarServidor" | |
78 | + app:layout_constraintEnd_toEndOf="parent" | |
79 | + app:layout_constraintHorizontal_chainStyle="packed" | |
80 | + app:layout_constraintStart_toEndOf="@id/spServidor" | |
81 | + app:layout_constraintTop_toBottomOf="@+id/tvSeleccioneServidor" /> | |
82 | + | |
83 | + <Button | |
84 | + android:id="@+id/btnAgregarServidor" | |
85 | + android:layout_width="0dp" | |
86 | + android:layout_height="wrap_content" | |
87 | + android:layout_marginTop="10dp" | |
88 | + android:layout_marginStart="@dimen/MarginBotAgreSer" | |
89 | + android:layout_marginEnd="@dimen/MarginBotAgreSer" | |
90 | + android:text="@string/btnAgregarServidor" | |
91 | + android:textSize="@dimen/SubTitulos10" | |
92 | + android:textColor="@android:color/white" | |
93 | + android:padding="10dp" | |
94 | + android:background="@drawable/boton_borde_redondeado" | |
95 | + app:layout_constraintBottom_toTopOf="@+id/tvUbicacionCarpetas" | |
96 | + app:layout_constraintEnd_toEndOf="parent" | |
97 | + app:layout_constraintStart_toStartOf="parent" | |
98 | + app:layout_constraintTop_toBottomOf="@+id/btnValidarServidor" /> | |
99 | + | |
100 | + | |
101 | + <TextView | |
102 | + android:id="@+id/tvUbicacionCarpetas" | |
103 | + android:layout_width="0dp" | |
104 | + android:layout_height="wrap_content" | |
105 | +android:visibility="gone" | |
106 | + android:layout_marginStart="@dimen/MarginBotAgreSer" | |
107 | + android:layout_marginTop="@dimen/MarginTopSubTitulos" | |
108 | + android:gravity="start" | |
109 | + android:lines="1" | |
110 | + android:text="@string/tvUbicacionCarpetas" | |
111 | + android:textColor="@android:color/black" | |
112 | + android:textSize="@dimen/SubTitulos" | |
113 | + app:fontFamily="sans-serif-condensed" | |
114 | + app:layout_constraintBottom_toTopOf="@+id/ibSearch" | |
115 | + app:layout_constraintEnd_toEndOf="parent" | |
116 | + app:layout_constraintStart_toStartOf="parent" | |
117 | + app:layout_constraintTop_toBottomOf="@+id/btnAgregarServidor" /> | |
118 | + | |
119 | + <ImageButton | |
120 | + android:id="@+id/ibSearch" | |
121 | + android:layout_width="36dp" | |
122 | + android:layout_height="37dp" | |
123 | + android:layout_margin="10dp" | |
124 | + android:src="@drawable/search" | |
125 | + android:textColor="@android:color/white" | |
126 | + android:padding="10dp" | |
127 | + android:visibility="gone" | |
128 | + android:background="@drawable/boton_borde_redondeado" | |
129 | + app:layout_constraintEnd_toStartOf="@+id/etRuta" | |
130 | + app:layout_constraintStart_toStartOf="parent" | |
131 | + app:layout_constraintTop_toBottomOf="@+id/tvUbicacionCarpetas" /> | |
132 | + | |
133 | + <EditText | |
134 | + android:id="@+id/etRuta" | |
135 | + android:layout_width="0dp" | |
136 | + android:layout_height="wrap_content" | |
137 | + android:layout_marginTop="10dp" | |
138 | + android:layout_marginEnd="10dp" | |
139 | + android:clickable="true" | |
140 | + android:ems="10" | |
141 | + android:focusable="true" | |
142 | + android:visibility="gone" | |
143 | + android:inputType="textPersonName" | |
144 | + android:lines="1" | |
145 | + android:text="" | |
146 | + android:textSize="@dimen/NormalText" | |
147 | + app:layout_constraintEnd_toEndOf="parent" | |
148 | + app:layout_constraintStart_toEndOf="@id/ibSearch" | |
149 | + app:layout_constraintTop_toBottomOf="@+id/tvUbicacionCarpetas" /> | |
150 | + | |
151 | + <TextView | |
152 | + android:id="@+id/tvActuFecha" | |
153 | + android:layout_width="0dp" | |
154 | + android:layout_height="wrap_content" | |
155 | + android:layout_marginStart="@dimen/MarginBotAgreSer" | |
156 | + android:layout_marginTop="@dimen/MarginTopSubTitulos" | |
157 | + android:gravity="start" | |
158 | + android:lines="1" | |
159 | + android:text="@string/tvTituloArea" | |
160 | + android:textColor="@android:color/black" | |
161 | + android:textSize="@dimen/SubTitulos10" | |
162 | + app:fontFamily="sans-serif-condensed" | |
163 | + app:layout_constraintEnd_toEndOf="parent" | |
164 | + app:layout_constraintStart_toStartOf="parent" | |
165 | + app:layout_constraintTop_toBottomOf="@+id/etRuta" /> | |
166 | + | |
167 | + <RadioGroup | |
168 | + android:id="@+id/rgFechaHora" | |
169 | + android:layout_width="0dp" | |
170 | + android:layout_height="wrap_content" | |
171 | + | |
172 | + android:gravity="center" | |
173 | + android:orientation="horizontal" | |
174 | + app:layout_constraintEnd_toEndOf="parent" | |
175 | + app:layout_constraintStart_toStartOf="parent" | |
176 | + app:layout_constraintTop_toBottomOf="@+id/tvActuFecha"> | |
177 | + | |
178 | + <RadioButton | |
179 | + android:id="@+id/rbVentas" | |
180 | + android:layout_width="wrap_content" | |
181 | + android:layout_height="wrap_content" | |
182 | + android:layout_margin="5dp" | |
183 | + android:checked="true" | |
184 | + android:padding="5dp" | |
185 | + android:text="@string/rbVentas" | |
186 | + android:textSize="@dimen/SubTitulos10" /> | |
187 | + | |
188 | + <RadioButton | |
189 | + android:id="@+id/rbDeposito" | |
190 | + android:layout_width="wrap_content" | |
191 | + android:layout_height="wrap_content" | |
192 | + android:layout_margin="5dp" | |
193 | + android:checked="false" | |
194 | + android:padding="5dp" | |
195 | + android:text="@string/rbDeposito" | |
196 | + android:textSize="@dimen/SubTitulos10" /> | |
197 | + | |
198 | + </RadioGroup> | |
199 | + | |
200 | + <TextView | |
201 | + android:id="@+id/tvLosProductos" | |
202 | + android:layout_width="0dp" | |
203 | + android:layout_height="wrap_content" | |
204 | + android:layout_marginStart="@dimen/MarginBotAgreSer" | |
205 | + android:layout_marginEnd="@dimen/MarginTopSubTitulos" | |
206 | + android:gravity="start" | |
207 | + android:lines="1" | |
208 | + android:text="@string/tvLosProductos" | |
209 | + android:textColor="@android:color/black" | |
210 | + android:textSize="@dimen/SubTitulos10" | |
211 | + app:fontFamily="sans-serif-condensed" | |
212 | + app:layout_constraintEnd_toEndOf="parent" | |
213 | + app:layout_constraintStart_toStartOf="parent" | |
214 | + app:layout_constraintTop_toBottomOf="@+id/rgFechaHora" /> | |
215 | + | |
216 | + <RadioGroup | |
217 | + android:id="@+id/rgLosProductos" | |
218 | + android:layout_width="0dp" | |
219 | + android:layout_height="wrap_content" | |
220 | + | |
221 | + android:gravity="center" | |
222 | + android:orientation="vertical" | |
223 | + app:layout_constraintEnd_toEndOf="parent" | |
224 | + app:layout_constraintStart_toStartOf="parent" | |
225 | + app:layout_constraintTop_toBottomOf="@+id/tvLosProductos"> | |
226 | + | |
227 | + <RadioButton | |
228 | + android:id="@+id/rbProInclu" | |
229 | + android:layout_width="match_parent" | |
230 | + android:layout_height="wrap_content" | |
231 | + android:layout_margin="@dimen/PadingCbyRb" | |
232 | + android:checked="true" | |
233 | + android:padding="@dimen/PadingCbyRb" | |
234 | + android:text="@string/rbProInclu" | |
235 | + android:textSize="@dimen/SubTitulos10" /> | |
236 | + | |
237 | + <RadioButton | |
238 | + android:id="@+id/rbProNoInclu" | |
239 | + android:layout_width="match_parent" | |
240 | + android:layout_height="wrap_content" | |
241 | + android:layout_margin="@dimen/PadingCbyRb" | |
242 | + android:checked="false" | |
243 | + android:padding="@dimen/PadingCbyRb" | |
244 | + android:text="@string/rbProNoInclu" | |
245 | + android:textSize="@dimen/SubTitulos10"/> | |
246 | + | |
247 | + </RadioGroup> | |
248 | + | |
249 | + <CheckBox | |
250 | + android:id="@+id/cbHabiLectura" | |
251 | + android:layout_width="0dp" | |
252 | + android:layout_height="wrap_content" | |
253 | + android:layout_margin="@dimen/PadingCbyRb" | |
254 | + android:padding="@dimen/PadingCbyRb" | |
255 | + android:text="@string/cbHabiLectura" | |
256 | + android:textSize="@dimen/SubTitulos10" | |
257 | + app:layout_constraintEnd_toEndOf="parent" | |
258 | + app:layout_constraintStart_toStartOf="parent" | |
259 | + app:layout_constraintTop_toBottomOf="@+id/rgLosProductos" /> | |
260 | + | |
261 | + <CheckBox | |
262 | + android:id="@+id/cbMostrarStock" | |
263 | + android:layout_width="0dp" | |
264 | + android:layout_height="wrap_content" | |
265 | + android:layout_margin="@dimen/PadingCbyRb" | |
266 | + android:padding="@dimen/PadingCbyRb" | |
267 | + android:text="@string/cbMostrarStock" | |
268 | + android:textSize="@dimen/SubTitulos10" | |
269 | + app:layout_constraintEnd_toEndOf="parent" | |
270 | + app:layout_constraintStart_toStartOf="parent" | |
271 | + app:layout_constraintTop_toBottomOf="@+id/cbHabiLectura" /> | |
272 | + | |
273 | +<!-- <TextView--> | |
274 | +<!-- android:id="@+id/tvColumMostrar"--> | |
275 | +<!-- android:layout_width="0dp"--> | |
276 | +<!-- android:layout_height="wrap_content"--> | |
277 | +<!-- android:layout_marginStart="@dimen/MarginBotAgreSer"--> | |
278 | +<!-- android:layout_marginEnd="@dimen/MarginTopSubTitulos"--> | |
279 | +<!-- android:gravity="start"--> | |
280 | +<!-- android:lines="1"--> | |
281 | +<!-- android:text="@string/tvColumMostrar"--> | |
282 | +<!-- android:textColor="@android:color/black"--> | |
283 | +<!-- android:textSize="@dimen/VentasDeposito10"--> | |
284 | +<!-- app:fontFamily="sans-serif-condensed"--> | |
285 | +<!-- app:layout_constraintEnd_toEndOf="parent"--> | |
286 | +<!-- app:layout_constraintStart_toStartOf="parent"--> | |
287 | +<!-- app:layout_constraintTop_toBottomOf="@+id/cbMostrarStock" />--> | |
288 | + | |
289 | +<!-- <RadioGroup--> | |
290 | +<!-- android:id="@+id/rgCodigosMostrar"--> | |
291 | +<!-- android:layout_width="0dp"--> | |
292 | +<!-- android:layout_height="wrap_content"--> | |
293 | + | |
294 | +<!-- android:gravity="center"--> | |
295 | +<!-- android:orientation="horizontal"--> | |
296 | +<!-- app:layout_constraintEnd_toEndOf="parent"--> | |
297 | +<!-- app:layout_constraintStart_toStartOf="parent"--> | |
298 | +<!-- app:layout_constraintTop_toBottomOf="@+id/tvColumMostrar">--> | |
299 | + | |
300 | +<!-- <RadioButton--> | |
301 | +<!-- android:id="@+id/rbCodigoDebo"--> | |
302 | +<!-- android:layout_width="wrap_content"--> | |
303 | +<!-- android:layout_height="wrap_content"--> | |
304 | +<!-- android:layout_margin="5dp"--> | |
305 | +<!-- android:checked="true"--> | |
306 | +<!-- android:padding="5dp"--> | |
307 | +<!-- android:text="@string/rbCodigoDebo"--> | |
308 | +<!-- android:textSize="@dimen/NormalText" />--> | |
309 | + | |
310 | +<!-- <RadioButton--> | |
311 | +<!-- android:id="@+id/rbCodigoOrigen"--> | |
312 | +<!-- android:layout_width="wrap_content"--> | |
313 | +<!-- android:layout_height="wrap_content"--> | |
314 | +<!-- android:layout_margin="5dp"--> | |
315 | +<!-- android:checked="false"--> | |
316 | +<!-- android:padding="5dp"--> | |
317 | +<!-- android:text="@string/rbCodigoOrigen"--> | |
318 | +<!-- android:textSize="@dimen/NormalText" />--> | |
319 | + | |
320 | +<!-- <RadioButton--> | |
321 | +<!-- android:id="@+id/rbCodigoBarras"--> | |
322 | +<!-- android:layout_width="wrap_content"--> | |
323 | +<!-- android:layout_height="wrap_content"--> | |
324 | +<!-- android:layout_margin="5dp"--> | |
325 | +<!-- android:padding="5dp"--> | |
326 | +<!-- android:text="@string/rbCodigoBarras"--> | |
327 | +<!-- android:textSize="@dimen/NormalText" />--> | |
328 | +<!-- </RadioGroup>--> | |
329 | + | |
330 | +<!-- <CheckBox--> | |
331 | +<!-- android:id="@+id/cbMostrarExistencia"--> | |
332 | +<!-- android:layout_width="wrap_content"--> | |
333 | +<!-- android:layout_height="wrap_content"--> | |
334 | +<!-- android:layout_margin="@dimen/PadingCbyRb"--> | |
335 | +<!-- android:padding="@dimen/PadingCbyRb"--> | |
336 | +<!-- android:text="@string/cbMostrarExistencia"--> | |
337 | +<!-- android:textSize="@dimen/NormalText"--> | |
338 | +<!-- android:checked="false"--> | |
339 | +<!-- app:layout_constraintEnd_toStartOf="@+id/cbMostrarPrecio"--> | |
340 | +<!-- app:layout_constraintStart_toStartOf="parent"--> | |
341 | +<!-- app:layout_constraintTop_toBottomOf="@+id/rgCodigosMostrar" />--> | |
342 | + | |
343 | +<!-- <CheckBox--> | |
344 | +<!-- android:id="@+id/cbMostrarPrecio"--> | |
345 | +<!-- android:layout_width="wrap_content"--> | |
346 | +<!-- android:layout_height="wrap_content"--> | |
347 | +<!-- android:layout_margin="@dimen/PadingCbyRb"--> | |
348 | +<!-- android:padding="@dimen/PadingCbyRb"--> | |
349 | +<!-- android:text="@string/cbMostrarPrecio"--> | |
350 | +<!-- android:textSize="@dimen/NormalText"--> | |
351 | +<!-- android:checked="false"--> | |
352 | +<!-- app:layout_constraintEnd_toEndOf="parent"--> | |
353 | +<!-- app:layout_constraintStart_toEndOf="@+id/cbMostrarExistencia"--> | |
354 | +<!-- app:layout_constraintTop_toBottomOf="@+id/rgCodigosMostrar" />--> | |
355 | + | |
356 | + <Button | |
357 | + android:id="@+id/btnGuardar" | |
358 | + android:layout_width="wrap_content" | |
359 | + android:layout_height="wrap_content" | |
360 | + android:layout_marginTop="20dp" | |
361 | + android:text="@string/btnGuardar" | |
362 | + android:textSize="@dimen/SubTitulos10" | |
363 | + app:layout_constraintEnd_toEndOf="parent" | |
364 | + android:textColor="@android:color/white" | |
365 | + android:padding="10dp" | |
366 | + android:background="@drawable/boton_borde_redondeado" | |
367 | + app:layout_constraintStart_toStartOf="parent" | |
368 | + app:layout_constraintTop_toBottomOf="@+id/cbMostrarStock" /> | |
369 | + | |
370 | +</androidx.constraintlayout.widget.ConstraintLayout> | |
371 | +</ScrollView> | |
372 | + |
app/src/main/res/layout-xlarge/fragment_descripcion.xml
... | ... | @@ -0,0 +1,86 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | + | |
3 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
4 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
5 | + xmlns:tools="http://schemas.android.com/tools" | |
6 | + android:layout_width="match_parent" | |
7 | + android:layout_height="match_parent" | |
8 | + android:background="@android:color/darker_gray" | |
9 | + tools:context=".UI.descripcionFragment.DescripcionFragment"> | |
10 | + | |
11 | + | |
12 | + <ImageView | |
13 | + android:id="@+id/ivHolder" | |
14 | + android:layout_width="60dp" | |
15 | + android:layout_height="60dp" | |
16 | + android:src="@drawable/ic_izq" | |
17 | + android:visibility="visible" | |
18 | + app:layout_constraintBottom_toTopOf="@id/guideline4" | |
19 | + app:layout_constraintStart_toStartOf="parent" /> | |
20 | + | |
21 | + | |
22 | + <TextView | |
23 | + android:id="@+id/tvCodigo" | |
24 | + android:layout_width="0dp" | |
25 | + android:layout_height="wrap_content" | |
26 | + android:layout_marginStart="2dp" | |
27 | + android:gravity="center_horizontal" | |
28 | + android:orientation="vertical" | |
29 | + android:text="Deslizar a la izquierda para seleccionar" | |
30 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
31 | + android:textColor="@color/colorPrimaryDark" | |
32 | + android:textSize="30sp" | |
33 | + android:textStyle="bold" | |
34 | + | |
35 | + app:layout_constraintBottom_toTopOf="@id/guideline4" | |
36 | + app:layout_constraintHorizontal_chainStyle="packed" | |
37 | + app:layout_constraintStart_toEndOf="@id/ivHolder" | |
38 | + app:layout_constraintTop_toTopOf="parent" /> | |
39 | + | |
40 | + <androidx.recyclerview.widget.RecyclerView | |
41 | + android:id="@+id/rcDescripcion" | |
42 | + android:layout_width="match_parent" | |
43 | + android:layout_height="0dp" | |
44 | + android:background="@android:color/darker_gray" | |
45 | + android:scrollbars="vertical" | |
46 | + app:layout_constraintBottom_toTopOf="@+id/guideline6" | |
47 | + app:layout_constraintEnd_toEndOf="parent" | |
48 | + app:layout_constraintStart_toStartOf="parent" | |
49 | + app:layout_constraintTop_toBottomOf="@id/guideline4" | |
50 | + tools:listitem="@layout/item" /> | |
51 | + | |
52 | + <!-- <Button--> | |
53 | + <!-- android:id="@+id/btnSalir"--> | |
54 | + <!-- android:layout_width="0dp"--> | |
55 | + <!-- android:layout_height="wrap_content"--> | |
56 | + <!-- android:text="@string/btnCancelar"--> | |
57 | + <!-- android:textColor="@android:color/white"--> | |
58 | + <!-- android:padding="10dp"--> | |
59 | + <!-- android:background="@drawable/boton_borde_redondeado"--> | |
60 | + <!-- app:layout_constraintBottom_toBottomOf="@+id/guideline6"--> | |
61 | + <!-- app:layout_constraintEnd_toEndOf="parent"--> | |
62 | + <!-- app:layout_constraintHorizontal_chainStyle="spread"--> | |
63 | + <!-- app:layout_constraintStart_toStartOf="parent"--> | |
64 | + <!-- app:layout_constraintTop_toBottomOf="@+id/rcInventarios" />--> | |
65 | + | |
66 | + <androidx.constraintlayout.widget.Guideline | |
67 | + android:id="@+id/guideline4" | |
68 | + android:layout_width="wrap_content" | |
69 | + android:layout_height="wrap_content" | |
70 | + android:orientation="horizontal" | |
71 | + app:layout_constraintGuide_percent="0.06" /> | |
72 | + | |
73 | + <androidx.constraintlayout.widget.Guideline | |
74 | + android:id="@+id/guideline5" | |
75 | + android:layout_width="wrap_content" | |
76 | + android:layout_height="wrap_content" | |
77 | + android:orientation="horizontal" | |
78 | + app:layout_constraintGuide_percent="0.88" /> | |
79 | + | |
80 | + <androidx.constraintlayout.widget.Guideline | |
81 | + android:id="@+id/guideline6" | |
82 | + android:layout_width="wrap_content" | |
83 | + android:layout_height="wrap_content" | |
84 | + android:orientation="horizontal" | |
85 | + app:layout_constraintGuide_percent="0.97" /> | |
86 | +</androidx.constraintlayout.widget.ConstraintLayout> |
app/src/main/res/layout-xlarge/fragment_detalle_art.xml
... | ... | @@ -0,0 +1,348 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + android:id="@+id/nsPedidosDatos" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="match_parent"> | |
7 | + | |
8 | + <androidx.cardview.widget.CardView | |
9 | + android:id="@+id/cvItem1" | |
10 | + android:layout_width="match_parent" | |
11 | + android:layout_height="wrap_content" | |
12 | + android:layout_marginStart="5dp" | |
13 | + android:layout_marginTop="5dp" | |
14 | + android:layout_marginEnd="5dp" | |
15 | + app:cardBackgroundColor="@android:color/darker_gray" | |
16 | + app:cardCornerRadius="25dp" | |
17 | + app:cardElevation="10dp" | |
18 | + app:layout_constraintEnd_toEndOf="parent" | |
19 | + app:layout_constraintStart_toStartOf="parent" | |
20 | + app:layout_constraintTop_toTopOf="parent"> | |
21 | + | |
22 | + <androidx.constraintlayout.widget.ConstraintLayout | |
23 | + android:id="@+id/clayout" | |
24 | + android:layout_width="match_parent" | |
25 | + android:layout_height="match_parent"> | |
26 | + | |
27 | + <!-- <TextView--> | |
28 | + <!-- android:id="@+id/tvTime"--> | |
29 | + <!-- android:layout_width="0dp"--> | |
30 | + <!-- android:layout_height="wrap_content"--> | |
31 | + <!-- android:layout_marginTop="15dp"--> | |
32 | + <!-- android:gravity="center_horizontal"--> | |
33 | + <!-- android:orientation="horizontal"--> | |
34 | + <!-- android:text="Detalle del artículo"--> | |
35 | + <!-- android:textAppearance="@style/TextAppearance.AppCompat.Large"--> | |
36 | + <!-- android:textSize="@dimen/Titulos"--> | |
37 | + <!-- android:textStyle="bold"--> | |
38 | + <!-- app:layout_constraintEnd_toEndOf="parent"--> | |
39 | + <!-- app:layout_constraintStart_toStartOf="parent"--> | |
40 | + <!-- app:layout_constraintTop_toTopOf="parent" />--> | |
41 | + | |
42 | + <TextView | |
43 | + android:id="@+id/tvDescripcion" | |
44 | + android:layout_width="wrap_content" | |
45 | + android:layout_height="0dp" | |
46 | + android:layout_marginTop="10dp" | |
47 | + android:layout_marginBottom="30dp" | |
48 | + android:gravity="center_horizontal" | |
49 | + android:text="coaca" | |
50 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
51 | + android:textSize="30sp" | |
52 | + android:textStyle="bold" | |
53 | + app:layout_constraintEnd_toEndOf="parent" | |
54 | + app:layout_constraintStart_toStartOf="parent" | |
55 | + app:layout_constraintTop_toTopOf="parent" /> | |
56 | + | |
57 | + | |
58 | + <TextView | |
59 | + android:id="@+id/textView18" | |
60 | + android:layout_width="wrap_content" | |
61 | + android:layout_height="wrap_content" | |
62 | + android:layout_marginTop="10dp" | |
63 | + android:text="Códigos:" | |
64 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
65 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
66 | + app:layout_constraintStart_toStartOf="parent" | |
67 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
68 | + | |
69 | + <TextView | |
70 | + android:id="@+id/textView19" | |
71 | + android:layout_width="wrap_content" | |
72 | + android:layout_height="wrap_content" | |
73 | + android:layout_marginStart="5dp" | |
74 | + android:text="DEBO:" | |
75 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
76 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
77 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView18" | |
78 | + app:layout_constraintStart_toEndOf="@+id/textView18" /> | |
79 | + | |
80 | + <TextView | |
81 | + android:id="@+id/tvSector" | |
82 | + android:layout_width="0dp" | |
83 | + android:layout_height="wrap_content" | |
84 | + android:layout_marginStart="5dp" | |
85 | + android:text="99" | |
86 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
87 | + android:textSize="@dimen/SubTitulos10" | |
88 | + android:textStyle="bold" | |
89 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView19" | |
90 | + app:layout_constraintStart_toEndOf="@+id/textView19" /> | |
91 | + | |
92 | + <TextView | |
93 | + android:id="@+id/tvCodigo" | |
94 | + android:layout_width="0dp" | |
95 | + android:layout_height="wrap_content" | |
96 | + android:layout_marginTop="10dp" | |
97 | + android:text="999999" | |
98 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
99 | + android:textSize="@dimen/SubTitulos10" | |
100 | + android:textStyle="bold" | |
101 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvSector" | |
102 | + app:layout_constraintStart_toEndOf="@id/tvSector" /> | |
103 | + | |
104 | + | |
105 | + <TextView | |
106 | + android:id="@+id/textView1" | |
107 | + android:layout_width="0dp" | |
108 | + android:layout_height="wrap_content" | |
109 | + android:layout_marginStart="5dp" | |
110 | + android:layout_marginTop="10dp" | |
111 | + android:text="barras:" | |
112 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
113 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
114 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvCodigo" | |
115 | + app:layout_constraintStart_toEndOf="@+id/tvCodigo" /> | |
116 | + | |
117 | + <TextView | |
118 | + android:id="@+id/tvCodigoBarras" | |
119 | + android:layout_width="wrap_content" | |
120 | + android:layout_height="wrap_content" | |
121 | + android:layout_marginStart="5dp" | |
122 | + android:text="12346579012345" | |
123 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
124 | + android:textSize="@dimen/SubTitulos10" | |
125 | + android:textStyle="bold" | |
126 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView1" | |
127 | + app:layout_constraintStart_toEndOf="@id/textView1" /> | |
128 | + | |
129 | + <TextView | |
130 | + android:id="@+id/textView2" | |
131 | + android:layout_width="wrap_content" | |
132 | + android:layout_height="wrap_content" | |
133 | + android:layout_marginStart="5dp" | |
134 | + android:layout_marginTop="10dp" | |
135 | + android:text="origen:" | |
136 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
137 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
138 | + app:layout_constraintStart_toEndOf="@+id/textView18" | |
139 | + app:layout_constraintTop_toBottomOf="@+id/textView18" /> | |
140 | + | |
141 | + | |
142 | + <TextView | |
143 | + android:id="@+id/tvCodigoOrigen" | |
144 | + android:layout_width="wrap_content" | |
145 | + android:layout_height="wrap_content" | |
146 | + android:layout_marginStart="5dp" | |
147 | + android:layout_marginTop="10dp" | |
148 | + android:text="1234567890123" | |
149 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
150 | + android:textSize="@dimen/SubTitulos10" | |
151 | + android:textStyle="bold" | |
152 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView2" | |
153 | + app:layout_constraintStart_toEndOf="@+id/textView2" | |
154 | + app:layout_constraintTop_toBottomOf="@+id/textView18" /> | |
155 | + | |
156 | + <TextView | |
157 | + android:id="@+id/textView9" | |
158 | + android:layout_width="wrap_content" | |
159 | + android:layout_height="wrap_content" | |
160 | + android:layout_marginTop="10dp" | |
161 | + android:text="Precio:" | |
162 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
163 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
164 | + app:layout_constraintStart_toStartOf="parent" | |
165 | + app:layout_constraintTop_toBottomOf="@+id/textView2" /> | |
166 | + | |
167 | + <TextView | |
168 | + android:id="@+id/textView12" | |
169 | + android:layout_width="wrap_content" | |
170 | + android:layout_height="wrap_content" | |
171 | + android:layout_marginStart="5dp" | |
172 | + android:layout_marginTop="10dp" | |
173 | + android:text="venta:" | |
174 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
175 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
176 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView9" | |
177 | + app:layout_constraintStart_toEndOf="@+id/textView18" /> | |
178 | + | |
179 | + <TextView | |
180 | + android:id="@+id/tvPrecio" | |
181 | + android:layout_width="wrap_content" | |
182 | + android:layout_height="wrap_content" | |
183 | + android:layout_marginStart="5dp" | |
184 | + android:layout_marginTop="10dp" | |
185 | + android:text="99999.99" | |
186 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
187 | + android:textSize="@dimen/SubTitulos10" | |
188 | + android:textStyle="bold" | |
189 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView12" | |
190 | + app:layout_constraintStart_toEndOf="@+id/textView12" /> | |
191 | + | |
192 | + <TextView | |
193 | + android:id="@+id/textView8" | |
194 | + android:layout_width="wrap_content" | |
195 | + android:layout_height="wrap_content" | |
196 | + android:text="Costo:" | |
197 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
198 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
199 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvPrecio" | |
200 | + app:layout_constraintStart_toEndOf="@+id/tvCodigo" /> | |
201 | + | |
202 | + <TextView | |
203 | + android:id="@+id/tvCosto" | |
204 | + android:layout_width="wrap_content" | |
205 | + android:layout_height="wrap_content" | |
206 | + android:layout_marginStart="5dp" | |
207 | + android:layout_marginTop="10dp" | |
208 | + android:text="9999.99" | |
209 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
210 | + android:textSize="@dimen/SubTitulos10" | |
211 | + android:textStyle="bold" | |
212 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView8" | |
213 | + app:layout_constraintStart_toEndOf="@+id/textView8" /> | |
214 | + | |
215 | + <TextView | |
216 | + android:id="@+id/textView3" | |
217 | + android:layout_width="wrap_content" | |
218 | + android:layout_height="wrap_content" | |
219 | + android:layout_marginTop="10dp" | |
220 | + android:text="Depósito:" | |
221 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
222 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
223 | + app:layout_constraintStart_toStartOf="parent" | |
224 | + app:layout_constraintTop_toBottomOf="@+id/textView9" /> | |
225 | + | |
226 | + <TextView | |
227 | + android:id="@+id/tvDeposito" | |
228 | + android:layout_width="wrap_content" | |
229 | + android:layout_height="wrap_content" | |
230 | + android:layout_marginStart="5dp" | |
231 | + android:text="Si" | |
232 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
233 | + android:textSize="@dimen/SubTitulos10" | |
234 | + android:textStyle="bold" | |
235 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView3" | |
236 | + app:layout_constraintStart_toEndOf="@+id/textView3" /> | |
237 | + | |
238 | + <TextView | |
239 | + android:id="@+id/textView5" | |
240 | + android:layout_width="wrap_content" | |
241 | + android:layout_height="wrap_content" | |
242 | + android:layout_marginTop="10dp" | |
243 | + android:text="Stock:" | |
244 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
245 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
246 | + app:layout_constraintStart_toStartOf="parent" | |
247 | + app:layout_constraintTop_toBottomOf="@+id/textView3" /> | |
248 | + | |
249 | + | |
250 | + <TextView | |
251 | + android:id="@+id/textView15" | |
252 | + android:layout_width="wrap_content" | |
253 | + android:layout_height="wrap_content" | |
254 | + android:layout_marginStart="5dp" | |
255 | + android:layout_marginTop="10dp" | |
256 | + android:text="venta:" | |
257 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
258 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
259 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView5" | |
260 | + app:layout_constraintStart_toEndOf="@+id/textView18" /> | |
261 | + | |
262 | + <TextView | |
263 | + android:id="@+id/tvExiVenta" | |
264 | + android:layout_width="wrap_content" | |
265 | + android:layout_height="wrap_content" | |
266 | + android:layout_marginStart="5dp" | |
267 | + android:layout_marginTop="10dp" | |
268 | + android:text="99999.99" | |
269 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
270 | + android:textSize="@dimen/SubTitulos10" | |
271 | + android:textStyle="bold" | |
272 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView15" | |
273 | + app:layout_constraintStart_toEndOf="@+id/textView15" /> | |
274 | + | |
275 | + <TextView | |
276 | + android:id="@+id/textView7" | |
277 | + android:layout_width="wrap_content" | |
278 | + android:layout_height="wrap_content" | |
279 | + android:text="deposito:" | |
280 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
281 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
282 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvExiVenta" | |
283 | + app:layout_constraintStart_toEndOf="@+id/tvCodigo" /> | |
284 | + | |
285 | + <TextView | |
286 | + android:id="@+id/tvExiDeposito" | |
287 | + android:layout_width="wrap_content" | |
288 | + android:layout_height="wrap_content" | |
289 | + android:layout_marginStart="5dp" | |
290 | + android:layout_marginTop="10dp" | |
291 | + android:text="99999.99" | |
292 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
293 | + android:textSize="@dimen/SubTitulos10" | |
294 | + android:textStyle="bold" | |
295 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView7" | |
296 | + app:layout_constraintStart_toEndOf="@+id/textView7" | |
297 | + app:layout_constraintTop_toBottomOf="@+id/tvCosto" /> | |
298 | + | |
299 | + | |
300 | + <TextView | |
301 | + android:id="@+id/textView10" | |
302 | + android:layout_width="wrap_content" | |
303 | + android:layout_height="wrap_content" | |
304 | + android:text="Unidad de venta:" | |
305 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
306 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
307 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvDeposito" | |
308 | + app:layout_constraintStart_toEndOf="@+id/tvCodigo" /> | |
309 | + | |
310 | + <TextView | |
311 | + android:id="@+id/tvBal" | |
312 | + android:layout_width="wrap_content" | |
313 | + android:layout_height="wrap_content" | |
314 | + android:layout_marginStart="5dp" | |
315 | + android:text="Unidades" | |
316 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
317 | + android:textSize="@dimen/SubTitulos10" | |
318 | + android:textStyle="bold" | |
319 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView10" | |
320 | + app:layout_constraintStart_toEndOf="@+id/textView10" /> | |
321 | + | |
322 | + | |
323 | + <TextView | |
324 | + android:id="@+id/textView11" | |
325 | + android:layout_width="wrap_content" | |
326 | + android:layout_height="wrap_content" | |
327 | + android:layout_marginTop="10dp" | |
328 | + android:text="Imagen:" | |
329 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
330 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
331 | + app:layout_constraintStart_toStartOf="parent" | |
332 | + app:layout_constraintTop_toBottomOf="@+id/textView5" /> | |
333 | + | |
334 | + <ImageView | |
335 | + android:id="@+id/ivImagen" | |
336 | + android:layout_width="400dp" | |
337 | + android:layout_height="400dp" | |
338 | + android:src="@drawable/no_imagen" | |
339 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
340 | + android:textSize="14sp" | |
341 | + app:layout_constraintEnd_toEndOf="parent" | |
342 | + app:layout_constraintStart_toStartOf="parent" | |
343 | + app:layout_constraintTop_toBottomOf="@+id/textView15" /> | |
344 | + | |
345 | + </androidx.constraintlayout.widget.ConstraintLayout> | |
346 | + </androidx.cardview.widget.CardView> | |
347 | + | |
348 | +</ScrollView> |
app/src/main/res/layout-xlarge/fragment_inventario.xml
... | ... | @@ -0,0 +1,171 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:id="@+id/frameLayout" | |
6 | + android:layout_width="match_parent" | |
7 | + android:layout_height="match_parent" | |
8 | + tools:context=".UI.inventario.InventarioFragment"> | |
9 | + | |
10 | + | |
11 | + <androidx.appcompat.widget.AppCompatTextView | |
12 | + android:id="@+id/tvTitulo" | |
13 | + android:layout_width="match_parent" | |
14 | + android:layout_height="90dp" | |
15 | + android:layout_marginStart="8dp" | |
16 | + android:layout_marginEnd="8dp" | |
17 | + android:autoSizeMaxTextSize="100sp" | |
18 | + android:autoSizeMinTextSize="20sp" | |
19 | + android:autoSizeStepGranularity="5sp" | |
20 | + android:autoSizeTextType="uniform" | |
21 | + android:gravity="center" | |
22 | + android:lines="1" | |
23 | + android:text="@string/invTitulo" | |
24 | + android:textColor="@color/colorAccent" | |
25 | + app:fontFamily="sans-serif-condensed" | |
26 | + app:layout_constraintBottom_toTopOf="@id/guideline2" | |
27 | + app:layout_constraintEnd_toEndOf="parent" | |
28 | + app:layout_constraintStart_toStartOf="parent" | |
29 | + app:layout_constraintTop_toTopOf="@id/guideline" /> | |
30 | + | |
31 | + | |
32 | + <ImageButton | |
33 | + android:id="@+id/ivCamara" | |
34 | + android:layout_width="@dimen/boton10" | |
35 | + android:layout_height="@dimen/boton10" | |
36 | + android:layout_marginTop="15dp" | |
37 | + android:clickable="true" | |
38 | + android:contentDescription="@string/ibBusCB" | |
39 | + android:elevation="5dp" | |
40 | + android:background="@drawable/boton_redondo" | |
41 | + android:layout_margin="10dp" | |
42 | + android:focusable="false" | |
43 | + android:scaleType="fitEnd" | |
44 | + app:layout_constraintCircleRadius="40dp" | |
45 | + android:src="@drawable/codbar" | |
46 | + app:layout_constraintBottom_toTopOf="@id/guideline3" | |
47 | + app:layout_constraintEnd_toStartOf="@+id/etCodigoBarras" | |
48 | + app:layout_constraintHorizontal_bias="0.0" | |
49 | + app:layout_constraintStart_toStartOf="parent" | |
50 | + app:layout_constraintTop_toBottomOf="@+id/guideline2" /> | |
51 | + | |
52 | + <EditText | |
53 | + android:id="@+id/etCodigoBarras" | |
54 | + android:layout_width="0dp" | |
55 | + android:layout_height="wrap_content" | |
56 | + android:autofillHints="" | |
57 | + android:clickable="true" | |
58 | + android:ems="10" | |
59 | + android:focusable="true" | |
60 | + android:hint="@string/ibBusCB" | |
61 | + android:inputType="textPersonName" | |
62 | + android:lines="1" | |
63 | + android:textAllCaps="true" | |
64 | + android:textSize="@dimen/textCantidad10" | |
65 | + app:layout_constraintBottom_toTopOf="@+id/guideline3" | |
66 | + app:layout_constraintEnd_toStartOf="@+id/swSumaUno" | |
67 | + app:layout_constraintHorizontal_bias="0.49" | |
68 | + app:layout_constraintHorizontal_chainStyle="packed" | |
69 | + app:layout_constraintStart_toEndOf="@+id/ivCamara" | |
70 | + app:layout_constraintTop_toBottomOf="@+id/guideline2" /> | |
71 | + | |
72 | + | |
73 | + <Switch | |
74 | + android:id="@+id/swSumaUno" | |
75 | + android:layout_width="wrap_content" | |
76 | + android:layout_height="wrap_content" | |
77 | + android:text="@string/switch_1" | |
78 | + android:textSize="@dimen/SubTitulos10" | |
79 | + app:layout_constraintBaseline_toBaselineOf="@+id/etCodigoBarras" | |
80 | + app:layout_constraintEnd_toEndOf="parent" | |
81 | + app:layout_constraintStart_toEndOf="@id/etCodigoBarras" | |
82 | + tools:ignore="UseSwitchCompatOrMaterialXml" /> | |
83 | + | |
84 | + <androidx.recyclerview.widget.RecyclerView | |
85 | + android:id="@+id/rcInventarios" | |
86 | + android:layout_width="match_parent" | |
87 | + android:layout_height="0dp" | |
88 | + android:background="@android:color/darker_gray" | |
89 | + app:layout_constraintBottom_toBottomOf="@+id/guideline5" | |
90 | + app:layout_constraintEnd_toEndOf="parent" | |
91 | + app:layout_constraintStart_toStartOf="parent" | |
92 | + app:layout_constraintTop_toBottomOf="@+id/guideline4" | |
93 | + tools:listitem="@layout/item" /> | |
94 | + | |
95 | + | |
96 | + <Button | |
97 | + android:id="@+id/btnExportarInv" | |
98 | + android:layout_width="wrap_content" | |
99 | + android:layout_height="wrap_content" | |
100 | + android:text="@string/btnExportarInv" | |
101 | + android:textColor="@android:color/white" | |
102 | + android:layout_marginTop="7dp" | |
103 | + android:padding="10dp" | |
104 | + android:textSize="@dimen/SubTitulos10" | |
105 | + android:background="@drawable/boton_borde_redondeado" | |
106 | + app:layout_constraintBottom_toBottomOf="@+id/guideline6" | |
107 | + app:layout_constraintEnd_toEndOf="parent" | |
108 | + app:layout_constraintHorizontal_chainStyle="spread" | |
109 | + app:layout_constraintStart_toEndOf="@+id/btnBorrarInv" | |
110 | + app:layout_constraintTop_toBottomOf="@+id/guideline5" /> | |
111 | + | |
112 | + <Button | |
113 | + android:id="@+id/btnBorrarInv" | |
114 | + android:layout_width="wrap_content" | |
115 | + android:layout_height="wrap_content" | |
116 | + android:layout_marginTop="7dp" | |
117 | + android:background="@drawable/boton_borde_redondeado" | |
118 | + android:padding="10dp" | |
119 | + android:text="@string/btnBorrarInv" | |
120 | + android:textColor="@android:color/white" | |
121 | + android:textSize="@dimen/SubTitulos10" | |
122 | + app:layout_constraintBottom_toBottomOf="@+id/guideline6" | |
123 | + app:layout_constraintEnd_toStartOf="@id/btnExportarInv" | |
124 | + app:layout_constraintHorizontal_chainStyle="spread" | |
125 | + app:layout_constraintStart_toStartOf="parent" | |
126 | + app:layout_constraintTop_toBottomOf="@+id/guideline5" /> | |
127 | + | |
128 | + <androidx.constraintlayout.widget.Guideline | |
129 | + android:id="@+id/guideline" | |
130 | + android:layout_width="wrap_content" | |
131 | + android:layout_height="wrap_content" | |
132 | + android:orientation="horizontal" | |
133 | + app:layout_constraintGuide_percent="0.02" /> | |
134 | + | |
135 | + <androidx.constraintlayout.widget.Guideline | |
136 | + android:id="@+id/guideline2" | |
137 | + android:layout_width="wrap_content" | |
138 | + android:layout_height="wrap_content" | |
139 | + android:orientation="horizontal" | |
140 | + app:layout_constraintGuide_percent="0.12029161" /> | |
141 | + | |
142 | + <androidx.constraintlayout.widget.Guideline | |
143 | + android:id="@+id/guideline3" | |
144 | + android:layout_width="wrap_content" | |
145 | + android:layout_height="wrap_content" | |
146 | + android:orientation="horizontal" | |
147 | + app:layout_constraintGuide_percent="0.27" /> | |
148 | + | |
149 | + <androidx.constraintlayout.widget.Guideline | |
150 | + android:id="@+id/guideline4" | |
151 | + android:layout_width="wrap_content" | |
152 | + android:layout_height="wrap_content" | |
153 | + android:orientation="horizontal" | |
154 | + app:layout_constraintGuide_percent="0.32" /> | |
155 | + | |
156 | + <androidx.constraintlayout.widget.Guideline | |
157 | + android:id="@+id/guideline5" | |
158 | + android:layout_width="wrap_content" | |
159 | + android:layout_height="wrap_content" | |
160 | + android:orientation="horizontal" | |
161 | + app:layout_constraintGuide_percent="0.88" /> | |
162 | + | |
163 | + <androidx.constraintlayout.widget.Guideline | |
164 | + android:id="@+id/guideline6" | |
165 | + android:layout_width="wrap_content" | |
166 | + android:layout_height="wrap_content" | |
167 | + android:orientation="horizontal" | |
168 | + app:layout_constraintGuide_percent="0.97" /> | |
169 | + | |
170 | + | |
171 | +</androidx.constraintlayout.widget.ConstraintLayout> | |
0 | 172 | \ No newline at end of file |
app/src/main/res/layout-xlarge/fragment_main.xml
... | ... | @@ -0,0 +1,131 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="match_parent"> | |
7 | + | |
8 | + <androidx.appcompat.widget.AppCompatTextView | |
9 | + android:id="@+id/tvInvDinamicos" | |
10 | + android:layout_width="match_parent" | |
11 | + android:layout_height="110dp" | |
12 | + android:autoSizeMaxTextSize="150sp" | |
13 | + android:autoSizeMinTextSize="25sp" | |
14 | + android:autoSizeStepGranularity="5sp" | |
15 | + android:autoSizeTextType="uniform" | |
16 | + android:gravity="start" | |
17 | + android:lines="1" | |
18 | + android:padding="10dp" | |
19 | + android:text="@string/invDinamicoVenta" | |
20 | + android:textColor="@color/colorAccent" | |
21 | + android:visibility="visible" | |
22 | + app:fontFamily="sans-serif-condensed" | |
23 | + app:layout_constraintEnd_toEndOf="parent" | |
24 | + app:layout_constraintStart_toStartOf="parent" | |
25 | + app:layout_constraintTop_toTopOf="parent" /> | |
26 | + | |
27 | + <androidx.appcompat.widget.AppCompatImageButton | |
28 | + android:id="@+id/ivSort19" | |
29 | + android:layout_width="@dimen/icon_dim10" | |
30 | + android:layout_height="@dimen/icon_dim10" | |
31 | + android:layout_marginStart="10dp" | |
32 | + android:padding="5dp" | |
33 | + android:src="@drawable/ic_sort19" | |
34 | + android:visibility="gone" | |
35 | + app:layout_constraintHorizontal_bias="0.0" | |
36 | + app:layout_constraintHorizontal_chainStyle="packed" | |
37 | + app:layout_constraintStart_toStartOf="parent" | |
38 | + app:layout_constraintTop_toBottomOf="@id/tvInvDinamicos" /> | |
39 | + | |
40 | + <androidx.appcompat.widget.AppCompatImageButton | |
41 | + android:id="@+id/ivSort91" | |
42 | + android:layout_width="@dimen/icon_dim10" | |
43 | + android:layout_height="@dimen/icon_dim10" | |
44 | + android:layout_marginStart="10dp" | |
45 | + android:padding="5dp" | |
46 | + android:src="@drawable/ic_sort91" | |
47 | + android:visibility="gone" | |
48 | + app:layout_constraintHorizontal_chainStyle="packed" | |
49 | + app:layout_constraintStart_toStartOf="parent" | |
50 | + app:layout_constraintTop_toBottomOf="@id/tvInvDinamicos" /> | |
51 | + | |
52 | + <TextView | |
53 | + android:id="@+id/tvTipo" | |
54 | + android:layout_width="wrap_content" | |
55 | + android:layout_height="wrap_content" | |
56 | + android:layout_margin="5dp" | |
57 | + android:text="Tipo:" | |
58 | + android:layout_marginTop="12dp" | |
59 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
60 | + android:visibility="gone" | |
61 | + app:layout_constraintBaseline_toBaselineOf="@+id/cbVentas" | |
62 | + app:layout_constraintEnd_toStartOf="@+id/cbVentas" /> | |
63 | + | |
64 | + <com.google.android.material.checkbox.MaterialCheckBox | |
65 | + android:id="@+id/cbVentas" | |
66 | + android:layout_width="wrap_content" | |
67 | + android:layout_height="wrap_content" | |
68 | + android:textSize="@dimen/SubTitulos10" | |
69 | + android:layout_margin="5dp" | |
70 | + android:checked="true" | |
71 | + android:text="Ventas" | |
72 | + android:layout_marginTop="12dp" | |
73 | + android:visibility="gone" | |
74 | + app:layout_constraintEnd_toStartOf="@+id/cbDeposito" | |
75 | + app:layout_constraintTop_toBottomOf="@+id/tvInvDinamicos" /> | |
76 | + | |
77 | + <com.google.android.material.checkbox.MaterialCheckBox | |
78 | + android:id="@+id/cbDeposito" | |
79 | + android:layout_width="wrap_content" | |
80 | + android:layout_height="wrap_content" | |
81 | + android:textSize="@dimen/SubTitulos10" | |
82 | + android:layout_margin="5dp" | |
83 | + android:checked="true" | |
84 | + android:text="Deposito" | |
85 | + android:layout_marginTop="12dp" | |
86 | + android:visibility="gone" | |
87 | + app:layout_constraintEnd_toEndOf="parent" | |
88 | + app:layout_constraintTop_toBottomOf="@+id/tvInvDinamicos" /> | |
89 | + | |
90 | + <androidx.recyclerview.widget.RecyclerView | |
91 | + android:id="@+id/rcInventario" | |
92 | + android:layout_width="match_parent" | |
93 | + android:layout_height="0dp" | |
94 | + android:background="@android:color/darker_gray" | |
95 | + android:scrollbars="vertical" | |
96 | + android:visibility="gone" | |
97 | + app:layout_constraintEnd_toEndOf="parent" | |
98 | + app:layout_constraintStart_toStartOf="parent" | |
99 | + app:layout_constraintTop_toBottomOf="@id/ivSort19" | |
100 | + tools:listitem="@layout/item_principal" | |
101 | + app:layout_constraintBottom_toTopOf="@+id/guideline6"/> | |
102 | + | |
103 | + | |
104 | + <androidx.appcompat.widget.AppCompatTextView | |
105 | + android:id="@+id/txtDeposito" | |
106 | + android:layout_width="match_parent" | |
107 | + android:layout_height="110dp" | |
108 | + android:autoSizeMaxTextSize="150sp" | |
109 | + android:autoSizeMinTextSize="25sp" | |
110 | + android:autoSizeStepGranularity="5sp" | |
111 | + android:autoSizeTextType="uniform" | |
112 | + android:gravity="start" | |
113 | + android:lines="1" | |
114 | + android:padding="10dp" | |
115 | + android:text="@string/invDinamicoCompra" | |
116 | + android:textColor="@color/colorAccent" | |
117 | + android:visibility="visible" | |
118 | + app:fontFamily="sans-serif-condensed" | |
119 | + app:layout_constraintBottom_toBottomOf="parent" | |
120 | + app:layout_constraintEnd_toEndOf="parent" | |
121 | + app:layout_constraintStart_toStartOf="parent" | |
122 | + app:layout_constraintTop_toBottomOf="@id/tvInvDinamicos" | |
123 | + app:layout_constraintVertical_bias="0.0" /> | |
124 | + | |
125 | + <androidx.constraintlayout.widget.Guideline | |
126 | + android:id="@+id/guideline6" | |
127 | + android:layout_width="wrap_content" | |
128 | + android:layout_height="wrap_content" | |
129 | + android:orientation="horizontal" | |
130 | + app:layout_constraintGuide_percent="0.97" /> | |
131 | +</androidx.constraintlayout.widget.ConstraintLayout> | |
0 | 132 | \ No newline at end of file |
app/src/main/res/layout-xlarge/fragment_servidores.xml
... | ... | @@ -0,0 +1,139 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="match_parent" | |
7 | + tools:context=".UI.servidores.ServidoresFragment"> | |
8 | + | |
9 | + <androidx.appcompat.widget.AppCompatTextView | |
10 | + android:id="@+id/tvTitutloServer" | |
11 | + android:layout_width="match_parent" | |
12 | + android:layout_height="120dp" | |
13 | + android:layout_marginStart="8dp" | |
14 | + android:layout_marginTop="15dp" | |
15 | + android:layout_marginEnd="8dp" | |
16 | + android:autoSizeMaxTextSize="100sp" | |
17 | + android:autoSizeMinTextSize="20sp" | |
18 | + android:autoSizeStepGranularity="5sp" | |
19 | + android:autoSizeTextType="uniform" | |
20 | + android:gravity="center" | |
21 | + android:lines="1" | |
22 | + android:text="@string/tvTitutloServer" | |
23 | + android:textColor="@color/colorAccent" | |
24 | + app:fontFamily="sans-serif-condensed" | |
25 | + app:layout_constraintEnd_toEndOf="parent" | |
26 | + app:layout_constraintStart_toStartOf="parent" | |
27 | + app:layout_constraintTop_toTopOf="parent" /> | |
28 | + | |
29 | + | |
30 | + <TextView | |
31 | + android:id="@+id/tvNomServer" | |
32 | + android:layout_width="match_parent" | |
33 | + android:layout_height="wrap_content" | |
34 | + android:layout_margin="10dp" | |
35 | + android:gravity="start" | |
36 | + android:lines="1" | |
37 | + android:text="@string/tvNomServer" | |
38 | + android:textColor="@android:color/black" | |
39 | + android:textSize="@dimen/SubTitulos10" | |
40 | + android:textStyle="bold|italic" | |
41 | + app:fontFamily="sans-serif-condensed" | |
42 | + app:layout_constraintEnd_toEndOf="parent" | |
43 | + app:layout_constraintStart_toStartOf="parent" | |
44 | + app:layout_constraintTop_toBottomOf="@id/tvTitutloServer" /> | |
45 | + | |
46 | + <EditText | |
47 | + android:id="@+id/etNombreServidor" | |
48 | + android:layout_width="match_parent" | |
49 | + android:layout_height="wrap_content" | |
50 | + android:layout_margin="10dp" | |
51 | + android:autofillHints="" | |
52 | + android:clickable="true" | |
53 | + android:ems="10" | |
54 | + android:focusable="true" | |
55 | + android:hint="Servidor Local" | |
56 | + android:inputType="text" | |
57 | + android:lines="1" | |
58 | + android:textSize="@dimen/SubTitulos10" | |
59 | + app:layout_constraintEnd_toEndOf="parent" | |
60 | + app:layout_constraintStart_toStartOf="parent" | |
61 | + app:layout_constraintTop_toBottomOf="@+id/tvNomServer" /> | |
62 | + | |
63 | + <TextView | |
64 | + android:id="@+id/tvDirServer" | |
65 | + android:layout_width="wrap_content" | |
66 | + android:layout_height="wrap_content" | |
67 | + android:layout_margin="10dp" | |
68 | + android:gravity="start" | |
69 | + android:lines="1" | |
70 | + android:text="@string/tvDirServer" | |
71 | + android:textColor="@android:color/black" | |
72 | + android:textSize="@dimen/SubTitulos10" | |
73 | + android:textStyle="bold|italic" | |
74 | + app:fontFamily="sans-serif-condensed" | |
75 | + app:layout_constraintStart_toStartOf="parent" | |
76 | + app:layout_constraintTop_toBottomOf="@+id/etNombreServidor" /> | |
77 | + | |
78 | + <EditText | |
79 | + android:id="@+id/etDireccionServidor" | |
80 | + android:layout_width="wrap_content" | |
81 | + android:layout_height="wrap_content" | |
82 | + android:clickable="true" | |
83 | + android:ems="10" | |
84 | + android:focusable="true" | |
85 | + android:hint="192.168.100.100" | |
86 | + android:inputType="phone" | |
87 | + android:lines="1" | |
88 | + android:textSize="@dimen/SubTitulos10" | |
89 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvDirServer" | |
90 | + app:layout_constraintStart_toEndOf="@+id/tvDirServer" /> | |
91 | + | |
92 | + | |
93 | + <EditText | |
94 | + android:id="@+id/etPuerto" | |
95 | + android:layout_width="wrap_content" | |
96 | + android:layout_height="wrap_content" | |
97 | + android:clickable="true" | |
98 | + android:ems="10" | |
99 | + android:focusable="true" | |
100 | + android:hint="Puerto" | |
101 | + android:inputType="number" | |
102 | + android:lines="1" | |
103 | + android:textSize="@dimen/SubTitulos10" | |
104 | + app:layout_constraintBaseline_toBaselineOf="@+id/etDireccionServidor" | |
105 | + app:layout_constraintStart_toEndOf="@+id/etDireccionServidor" | |
106 | + android:autofillHints="" /> | |
107 | + | |
108 | + | |
109 | + <androidx.recyclerview.widget.RecyclerView | |
110 | + android:id="@+id/rvServidores" | |
111 | + android:layout_width="match_parent" | |
112 | + android:layout_height="0dp" | |
113 | + android:layout_marginTop="10dp" | |
114 | + android:background="@android:color/darker_gray" | |
115 | + app:layout_constraintBottom_toTopOf="@+id/btnGuardarServidores" | |
116 | + app:layout_constraintEnd_toEndOf="parent" | |
117 | + app:layout_constraintStart_toStartOf="parent" | |
118 | + app:layout_constraintTop_toBottomOf="@+id/etPuerto" | |
119 | + app:layout_goneMarginEnd="10dp" | |
120 | + tools:listitem="@layout/item_servidores" /> | |
121 | + | |
122 | + <Button | |
123 | + android:id="@+id/btnGuardarServidores" | |
124 | + android:layout_width="0dp" | |
125 | + android:layout_height="wrap_content" | |
126 | + android:layout_marginTop="10dp" | |
127 | + android:layout_marginEnd="10dp" | |
128 | + android:layout_marginBottom="10dp" | |
129 | + android:background="@drawable/boton_borde_redondeado" | |
130 | + android:padding="10dp" | |
131 | + android:text="@string/btnGuardarServidores" | |
132 | + android:textColor="@android:color/white" | |
133 | + android:textSize="@dimen/SubTitulos10" | |
134 | + app:layout_constraintBottom_toBottomOf="parent" | |
135 | + app:layout_constraintEnd_toEndOf="parent" | |
136 | + app:layout_constraintStart_toStartOf="parent" | |
137 | + app:layout_constraintTop_toBottomOf="@+id/rvServidores" /> | |
138 | + | |
139 | +</androidx.constraintlayout.widget.ConstraintLayout> |
app/src/main/res/layout-xlarge/ingresar_cantidad.xml
... | ... | @@ -0,0 +1,93 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.cardview.widget.CardView | |
3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
4 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
5 | + xmlns:tools="http://schemas.android.com/tools" | |
6 | + android:layout_width="match_parent" | |
7 | + android:layout_height="wrap_content" | |
8 | + app:cardCornerRadius="10dp" | |
9 | + app:cardElevation="5dp" | |
10 | + | |
11 | + tools:ignore="PrivateResource"> | |
12 | + <!-- android:background="@drawable/md_transparent"--> | |
13 | + | |
14 | + <androidx.constraintlayout.widget.ConstraintLayout | |
15 | + android:layout_width="match_parent" | |
16 | + android:layout_height="match_parent"> | |
17 | + | |
18 | + <LinearLayout | |
19 | + android:id="@+id/barraSuperior" | |
20 | + android:layout_width="0dp" | |
21 | + android:layout_height="wrap_content" | |
22 | + android:background="@color/colorPrimaryDark" | |
23 | + android:orientation="horizontal" | |
24 | + app:layout_constraintLeft_toLeftOf="parent" | |
25 | + app:layout_constraintRight_toRightOf="parent" | |
26 | + app:layout_constraintTop_toTopOf="parent" | |
27 | + app:layout_constraintTop_toBottomOf="@+id/lySegundo"> | |
28 | + | |
29 | + <androidx.appcompat.widget.AppCompatTextView | |
30 | + android:id="@+id/tvTitulo" | |
31 | + android:layout_width="0dp" | |
32 | + android:layout_height="wrap_content" | |
33 | + android:layout_margin="10dp" | |
34 | + android:layout_marginStart="5dp" | |
35 | + android:layout_marginTop="10dp" | |
36 | + android:layout_weight="1" | |
37 | + android:text="@string/adv" | |
38 | + android:textAlignment="center" | |
39 | + android:textColor="@android:color/white" | |
40 | + android:textSize="25sp" /> | |
41 | + </LinearLayout> | |
42 | + | |
43 | + | |
44 | + <LinearLayout | |
45 | + android:id="@+id/lySegundo" | |
46 | + android:layout_width="match_parent" | |
47 | + android:layout_height="wrap_content" | |
48 | + android:orientation="vertical" | |
49 | + android:padding="12dp" | |
50 | + app:layout_constraintLeft_toLeftOf="parent" | |
51 | + app:layout_constraintRight_toRightOf="parent" | |
52 | + app:layout_constraintTop_toBottomOf="@id/barraSuperior"> | |
53 | + | |
54 | + | |
55 | + <EditText | |
56 | + android:id="@+id/etCantidad" | |
57 | + android:layout_width="match_parent" | |
58 | + android:layout_height="wrap_content" | |
59 | + android:clickable="true" | |
60 | + android:ems="10" | |
61 | + android:focusable="true" | |
62 | + android:gravity="center" | |
63 | + android:inputType="numberDecimal" | |
64 | + android:maxLength="8" | |
65 | + android:text="" | |
66 | + android:hint="Ingrese Cantidad" | |
67 | + android:textSize="20sp" /> | |
68 | + | |
69 | + | |
70 | + <androidx.appcompat.widget.AppCompatButton | |
71 | + android:id="@+id/btnAceptar" | |
72 | + android:layout_width="match_parent" | |
73 | + android:layout_height="wrap_content" | |
74 | + android:layout_margin="10dp" | |
75 | + android:layout_marginBottom="20dp" | |
76 | + android:clickable="true" | |
77 | + android:focusable="true" | |
78 | + android:textColor="@android:color/white" | |
79 | + android:padding="10dp" | |
80 | + android:background="@drawable/boton_borde_redondeado" | |
81 | + android:text="@string/btnConfirmar" | |
82 | + android:textAlignment="center" | |
83 | + android:textSize="25sp" | |
84 | + android:textStyle="bold" | |
85 | + app:cardBackgroundColor="@android:color/darker_gray" | |
86 | + app:cardUseCompatPadding="true" /> | |
87 | + | |
88 | + | |
89 | + </LinearLayout> | |
90 | + | |
91 | + | |
92 | + </androidx.constraintlayout.widget.ConstraintLayout> | |
93 | +</androidx.cardview.widget.CardView> | |
0 | 94 | \ No newline at end of file |
app/src/main/res/layout-xlarge/item.xml
... | ... | @@ -0,0 +1,171 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="wrap_content" | |
7 | + android:layout_margin="5dp" | |
8 | + app:cardCornerRadius="15dp" | |
9 | + app:cardElevation="10dp" | |
10 | + app:contentPadding="5dp" | |
11 | + app:cardPreventCornerOverlap="false"> | |
12 | + | |
13 | + <androidx.constraintlayout.widget.ConstraintLayout | |
14 | + android:layout_width="match_parent" | |
15 | + android:layout_height="wrap_content"> | |
16 | + | |
17 | + <TextView | |
18 | + android:id="@+id/tvDescripcion" | |
19 | + android:layout_width="0dp" | |
20 | + android:layout_height="wrap_content" | |
21 | + android:layout_marginStart="3dp" | |
22 | + android:maxLines="2" | |
23 | + android:text="abcdefghijklmnñopqrstuvwxyz0123456789abcdefghijklmnñopqrstuvwxyz" | |
24 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
25 | + android:textSize="@dimen/SubTitulos10" | |
26 | + android:textStyle="bold" | |
27 | + app:layout_constraintStart_toStartOf="parent" | |
28 | + app:layout_constraintTop_toTopOf="parent" /> | |
29 | + | |
30 | +<!-- <TextView--> | |
31 | +<!-- android:id="@+id/textView2"--> | |
32 | +<!-- android:layout_width="wrap_content"--> | |
33 | +<!-- android:layout_height="wrap_content"--> | |
34 | +<!-- android:layout_marginStart="5dp"--> | |
35 | +<!-- android:text="Código:"--> | |
36 | +<!-- android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large"--> | |
37 | +<!-- android:textSize="14sp"--> | |
38 | +<!-- app:layout_constraintEnd_toStartOf="@+id/tvSector"--> | |
39 | +<!-- app:layout_constraintHorizontal_bias="0.01"--> | |
40 | +<!-- app:layout_constraintHorizontal_chainStyle="packed"--> | |
41 | +<!-- app:layout_constraintStart_toStartOf="parent"--> | |
42 | +<!-- app:layout_constraintTop_toTopOf="parent" />--> | |
43 | + | |
44 | + | |
45 | +<!-- <TextView--> | |
46 | +<!-- android:id="@+id/tvSector"--> | |
47 | +<!-- android:layout_width="wrap_content"--> | |
48 | +<!-- android:layout_height="match_parent"--> | |
49 | +<!-- android:layout_marginStart="8dp"--> | |
50 | +<!-- android:text="9999"--> | |
51 | +<!-- android:textAppearance="@style/TextAppearance.AppCompat.Large"--> | |
52 | +<!-- android:textColorHint="@android:color/black"--> | |
53 | +<!-- android:textSize="18sp"--> | |
54 | +<!-- android:textStyle="bold"--> | |
55 | +<!-- app:layout_constraintHorizontal_chainStyle="packed"--> | |
56 | +<!-- app:layout_constraintBaseline_toBaselineOf="@+id/textView2"--> | |
57 | +<!-- app:layout_constraintEnd_toStartOf="@+id/tvCodigo"--> | |
58 | +<!-- app:layout_constraintStart_toEndOf="@+id/textView2" />--> | |
59 | + | |
60 | + | |
61 | +<!-- <TextView--> | |
62 | +<!-- android:id="@+id/tvCodigo"--> | |
63 | +<!-- android:layout_width="wrap_content"--> | |
64 | +<!-- android:layout_height="match_parent"--> | |
65 | +<!-- android:text="99999999"--> | |
66 | +<!-- android:layout_marginStart="8dp"--> | |
67 | +<!-- app:layout_constraintHorizontal_chainStyle="packed"--> | |
68 | +<!-- android:textAppearance="@style/TextAppearance.AppCompat.Large"--> | |
69 | +<!-- android:textColorHint="@android:color/black"--> | |
70 | +<!-- android:textSize="18sp"--> | |
71 | +<!-- android:textStyle="bold"--> | |
72 | +<!-- app:layout_constraintBaseline_toBaselineOf="@+id/tvSector"--> | |
73 | +<!-- app:layout_constraintEnd_toStartOf="@+id/textView5"--> | |
74 | +<!-- app:layout_constraintStart_toEndOf="@+id/tvSector" />--> | |
75 | + | |
76 | + <TextView | |
77 | + android:id="@+id/textView5" | |
78 | + android:layout_width="wrap_content" | |
79 | + android:layout_height="wrap_content" | |
80 | + android:text="Cantidad:" | |
81 | + android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" | |
82 | + android:textSize="@dimen/textView510" | |
83 | + android:layout_marginStart="5dp" | |
84 | + android:layout_marginTop="10dp" | |
85 | + app:layout_constraintStart_toStartOf="parent" | |
86 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
87 | + | |
88 | + <TextView | |
89 | + android:id="@+id/tvCantidad" | |
90 | + android:layout_width="wrap_content" | |
91 | + android:layout_height="match_parent" | |
92 | + android:layout_marginTop="5dp" | |
93 | + android:text="12345.12" | |
94 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
95 | + android:textSize="@dimen/SubTitulos10" | |
96 | + android:textStyle="bold" | |
97 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView5" | |
98 | + | |
99 | + app:layout_constraintStart_toEndOf="@id/textView5" /> | |
100 | + | |
101 | + <ImageView | |
102 | + android:id="@+id/ivPen" | |
103 | + android:layout_width="@dimen/iconosMedia10" | |
104 | + android:layout_height="@dimen/iconosMedia10" | |
105 | + android:layout_marginStart="3dp" | |
106 | + android:src="@drawable/pen" | |
107 | + android:visibility="visible" | |
108 | + app:layout_constraintStart_toEndOf="@+id/tvCantidad" | |
109 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
110 | + | |
111 | + <ImageView | |
112 | + android:id="@+id/ivDots" | |
113 | + android:layout_width="@dimen/iconosMedia10" | |
114 | + android:layout_height="@dimen/iconosMedia10" | |
115 | + android:layout_marginEnd="3dp" | |
116 | + android:src="@drawable/more" | |
117 | + android:visibility="visible" | |
118 | + app:layout_constraintEnd_toEndOf="parent" | |
119 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
120 | + | |
121 | +<!-- <TextView--> | |
122 | +<!-- android:id="@+id/textView85"--> | |
123 | +<!-- android:layout_width="wrap_content"--> | |
124 | +<!-- android:layout_height="wrap_content"--> | |
125 | +<!-- android:layout_marginStart="5dp"--> | |
126 | +<!-- android:layout_marginTop="8dp"--> | |
127 | +<!-- android:text="Desc:"--> | |
128 | +<!-- android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large"--> | |
129 | +<!-- android:textSize="14sp"--> | |
130 | +<!-- app:layout_constraintEnd_toStartOf="@+id/tvDescripcion"--> | |
131 | +<!-- app:layout_constraintHorizontal_bias="0.0"--> | |
132 | +<!-- app:layout_constraintHorizontal_chainStyle="packed"--> | |
133 | +<!-- app:layout_constraintStart_toStartOf="parent"--> | |
134 | +<!-- app:layout_constraintTop_toBottomOf="@id/tvCodigo" />--> | |
135 | + | |
136 | + | |
137 | +<!-- <TextView--> | |
138 | +<!-- android:id="@+id/tvCodigoBarras"--> | |
139 | +<!-- android:layout_width="match_parent"--> | |
140 | +<!-- android:layout_height="wrap_content"--> | |
141 | +<!-- android:layout_marginStart="3dp"--> | |
142 | +<!-- android:layout_marginTop="8dp"--> | |
143 | +<!-- android:maxLines="2"--> | |
144 | +<!-- android:text=""--> | |
145 | +<!-- android:textAppearance="@style/TextAppearance.AppCompat.Large"--> | |
146 | +<!-- android:textSize="14sp"--> | |
147 | +<!-- android:visibility="gone"--> | |
148 | +<!-- android:textStyle="bold"--> | |
149 | +<!-- app:layout_constraintBaseline_toBaselineOf="@+id/textView85"--> | |
150 | +<!-- app:layout_constraintEnd_toEndOf="parent"--> | |
151 | +<!-- app:layout_constraintStart_toEndOf="@+id/textView85"--> | |
152 | +<!-- app:layout_constraintTop_toBottomOf="@+id/tvCodigo" />--> | |
153 | +<!-- <TextView--> | |
154 | +<!-- android:id="@+id/tvCodigoOrigen"--> | |
155 | +<!-- android:layout_width="match_parent"--> | |
156 | +<!-- android:layout_height="wrap_content"--> | |
157 | +<!-- android:layout_marginStart="3dp"--> | |
158 | +<!-- android:layout_marginTop="8dp"--> | |
159 | +<!-- android:maxLines="2"--> | |
160 | +<!-- android:text=""--> | |
161 | +<!-- android:textAppearance="@style/TextAppearance.AppCompat.Large"--> | |
162 | +<!-- android:textSize="14sp"--> | |
163 | +<!-- android:visibility="gone"--> | |
164 | +<!-- android:textStyle="bold"--> | |
165 | +<!-- app:layout_constraintBaseline_toBaselineOf="@+id/textView85"--> | |
166 | +<!-- app:layout_constraintEnd_toEndOf="parent"--> | |
167 | +<!-- app:layout_constraintStart_toEndOf="@+id/textView85"--> | |
168 | +<!-- app:layout_constraintTop_toBottomOf="@+id/tvCodigo" />--> | |
169 | + </androidx.constraintlayout.widget.ConstraintLayout> | |
170 | + | |
171 | +</androidx.cardview.widget.CardView> | |
0 | 172 | \ No newline at end of file |
app/src/main/res/layout-xlarge/item_codigo_origen.xml
... | ... | @@ -0,0 +1,100 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + android:layout_width="match_parent" | |
5 | + android:layout_height="wrap_content" | |
6 | + android:layout_margin="5dp" | |
7 | + app:cardCornerRadius="15dp" | |
8 | + app:cardElevation="10dp" | |
9 | + app:cardPreventCornerOverlap="false" | |
10 | + app:contentPadding="5dp"> | |
11 | + | |
12 | + <androidx.constraintlayout.widget.ConstraintLayout | |
13 | + android:layout_width="match_parent" | |
14 | + android:layout_height="wrap_content"> | |
15 | + | |
16 | + <TextView | |
17 | + android:id="@+id/tvDescripcion" | |
18 | + android:layout_width="0dp" | |
19 | + android:layout_height="wrap_content" | |
20 | + android:layout_marginStart="5dp" | |
21 | + android:maxLines="2" | |
22 | + android:text="abcdefghijklmnñopqrstuvwxyz0123456789abcdefghijklmnñopqrstuvwxyz" | |
23 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
24 | + android:textSize="@dimen/SubTitulos10" | |
25 | + android:textStyle="bold" | |
26 | + app:layout_constraintEnd_toEndOf="parent" | |
27 | + app:layout_constraintStart_toStartOf="parent" | |
28 | + app:layout_constraintTop_toTopOf="parent" /> | |
29 | + | |
30 | + <TextView | |
31 | + android:id="@+id/textView2" | |
32 | + android:layout_width="wrap_content" | |
33 | + android:layout_height="wrap_content" | |
34 | + android:layout_marginStart="5dp" | |
35 | + android:layout_marginTop="10dp" | |
36 | + android:text="Código DEBO:" | |
37 | + android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" | |
38 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
39 | + app:layout_constraintStart_toStartOf="parent" | |
40 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
41 | + | |
42 | + | |
43 | + <TextView | |
44 | + android:id="@+id/tvSector" | |
45 | + android:layout_width="wrap_content" | |
46 | + android:layout_height="match_parent" | |
47 | + android:layout_marginStart="5dp" | |
48 | + android:layout_marginTop="10dp" | |
49 | + android:text="9999" | |
50 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
51 | + android:textColorHint="@android:color/black" | |
52 | + android:textSize="@dimen/SubTitulos10" | |
53 | + android:textStyle="bold" | |
54 | + app:layout_constraintStart_toEndOf="@+id/textView2" | |
55 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
56 | + | |
57 | + <TextView | |
58 | + android:id="@+id/tvCodigo" | |
59 | + android:layout_width="wrap_content" | |
60 | + android:layout_height="match_parent" | |
61 | + android:text="99999999" | |
62 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
63 | + android:textColorHint="@android:color/black" | |
64 | + android:textSize="@dimen/SubTitulos10" | |
65 | + android:textStyle="bold" | |
66 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvSector" | |
67 | + app:layout_constraintHorizontal_chainStyle="packed" | |
68 | + app:layout_constraintStart_toEndOf="@+id/tvSector" /> | |
69 | + | |
70 | + | |
71 | + <TextView | |
72 | + android:id="@+id/tvCantidad" | |
73 | + android:layout_width="wrap_content" | |
74 | + android:layout_height="match_parent" | |
75 | + android:layout_marginStart="10dp" | |
76 | + android:text="Código Origen:" | |
77 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
78 | + android:textSize="@dimen/textCantidadDesc10" | |
79 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvCodigo" | |
80 | + app:layout_constraintStart_toEndOf="@+id/tvCodigo" /> | |
81 | + | |
82 | + <TextView | |
83 | + android:id="@+id/tvCodigoOrigen" | |
84 | + android:layout_width="wrap_content" | |
85 | + android:layout_height="match_parent" | |
86 | + android:layout_marginStart="5dp" | |
87 | + android:layout_marginTop="10dp" | |
88 | + android:maxLines="2" | |
89 | + android:text="987654" | |
90 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
91 | + android:textSize="@dimen/SubTitulos10" | |
92 | + android:textStyle="bold" | |
93 | + android:visibility="visible" | |
94 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvCantidad" | |
95 | + app:layout_constraintStart_toEndOf="@+id/tvCantidad" /> | |
96 | + | |
97 | + | |
98 | + </androidx.constraintlayout.widget.ConstraintLayout> | |
99 | + | |
100 | +</androidx.cardview.widget.CardView> | |
0 | 101 | \ No newline at end of file |
app/src/main/res/layout-xlarge/item_descripcion.xml
... | ... | @@ -0,0 +1,142 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + android:layout_width="match_parent" | |
5 | + android:layout_height="wrap_content" | |
6 | + android:layout_margin="5dp" | |
7 | + app:cardCornerRadius="15dp" | |
8 | + app:cardElevation="10dp" | |
9 | + app:cardPreventCornerOverlap="false" | |
10 | + app:contentPadding="5dp"> | |
11 | + | |
12 | + <androidx.constraintlayout.widget.ConstraintLayout | |
13 | + android:layout_width="match_parent" | |
14 | + android:layout_height="wrap_content"> | |
15 | + | |
16 | + <TextView | |
17 | + android:id="@+id/tvDescripcion" | |
18 | + android:layout_width="0dp" | |
19 | + android:layout_height="wrap_content" | |
20 | + android:layout_marginStart="5dp" | |
21 | + android:maxLines="2" | |
22 | + android:text="abcdefghijklmnñopqrstuvwxyz0123456789abcdefghijklmnñopqrstuvwxyz" | |
23 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
24 | + android:textSize="@dimen/SubTitulos10" | |
25 | + android:textStyle="bold" | |
26 | + app:layout_constraintEnd_toEndOf="parent" | |
27 | + app:layout_constraintStart_toStartOf="parent" | |
28 | + app:layout_constraintTop_toTopOf="parent" /> | |
29 | + | |
30 | + <TextView | |
31 | + android:id="@+id/textView2" | |
32 | + android:layout_width="wrap_content" | |
33 | + android:layout_height="wrap_content" | |
34 | + android:layout_marginStart="5dp" | |
35 | + android:text="Código DEBO:" | |
36 | + android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" | |
37 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
38 | + app:layout_constraintHorizontal_chainStyle="packed" | |
39 | + app:layout_constraintStart_toStartOf="parent" | |
40 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
41 | + | |
42 | + | |
43 | + <TextView | |
44 | + android:id="@+id/tvSector" | |
45 | + android:layout_width="wrap_content" | |
46 | + android:layout_height="match_parent" | |
47 | + android:text="9999" | |
48 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
49 | + android:textColorHint="@android:color/black" | |
50 | + android:textSize="@dimen/SubTitulos10" | |
51 | + android:textStyle="bold" | |
52 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView2" | |
53 | + app:layout_constraintHorizontal_chainStyle="packed" | |
54 | + app:layout_constraintStart_toEndOf="@+id/textView2" | |
55 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
56 | + | |
57 | + <TextView | |
58 | + android:id="@+id/tvCodigo" | |
59 | + android:layout_width="wrap_content" | |
60 | + android:layout_height="match_parent" | |
61 | + android:layout_marginStart="2dp" | |
62 | + android:text="99999999" | |
63 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
64 | + android:textColorHint="@android:color/black" | |
65 | + android:textSize="@dimen/SubTitulos10" | |
66 | + android:textStyle="bold" | |
67 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvSector" | |
68 | + app:layout_constraintHorizontal_chainStyle="packed" | |
69 | + app:layout_constraintStart_toEndOf="@+id/tvSector" | |
70 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
71 | + | |
72 | + <TextView | |
73 | + android:id="@+id/textView3" | |
74 | + android:layout_width="wrap_content" | |
75 | + android:layout_height="wrap_content" | |
76 | + android:layout_marginStart="5dp" | |
77 | + android:text="Código barras:" | |
78 | + android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" | |
79 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
80 | + app:layout_constraintHorizontal_chainStyle="packed" | |
81 | + app:layout_constraintStart_toEndOf="@+id/tvCodigo" | |
82 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
83 | + | |
84 | + <TextView | |
85 | + android:id="@+id/tvCodigoBarras" | |
86 | + android:layout_width="wrap_content" | |
87 | + android:layout_height="wrap_content" | |
88 | + android:layout_marginStart="3dp" | |
89 | + android:maxLines="2" | |
90 | + android:text="1234567890123456" | |
91 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
92 | + android:textSize="@dimen/SubTitulos10" | |
93 | + android:textStyle="bold" | |
94 | + android:visibility="visible" | |
95 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView3" | |
96 | + app:layout_constraintStart_toEndOf="@+id/textView3" | |
97 | + app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
98 | + <!-- <TextView--> | |
99 | + <!-- android:id="@+id/textView5"--> | |
100 | + <!-- android:layout_width="wrap_content"--> | |
101 | + <!-- android:layout_height="wrap_content"--> | |
102 | + <!-- android:layout_marginStart="8dp"--> | |
103 | + <!-- android:text="Cantidad:"--> | |
104 | + <!-- android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large"--> | |
105 | + <!-- android:textSize="14sp"--> | |
106 | + <!-- android:visibility="gone"--> | |
107 | + <!-- app:layout_constraintTop_toTopOf="parent"--> | |
108 | + <!-- app:layout_constraintEnd_toStartOf="@+id/tvCodigoBarras"--> | |
109 | + <!-- app:layout_constraintStart_toEndOf="@+id/tvCodigo" />--> | |
110 | + | |
111 | + <!-- <TextView--> | |
112 | + <!-- android:id="@+id/tvCantidad"--> | |
113 | + <!-- android:layout_width="wrap_content"--> | |
114 | + <!-- android:layout_height="match_parent"--> | |
115 | + <!-- android:layout_marginStart="8dp"--> | |
116 | + <!-- android:text="Código Barras:"--> | |
117 | + <!-- android:textAppearance="@style/TextAppearance.AppCompat.Large"--> | |
118 | + <!-- android:textSize="14sp"--> | |
119 | + <!-- android:textStyle="bold"--> | |
120 | + <!-- android:visibility="visible"--> | |
121 | + <!-- app:layout_constraintEnd_toStartOf="@id/tvCodigoBarras"--> | |
122 | + <!-- app:layout_constraintStart_toEndOf="@id/textView5"--> | |
123 | + <!-- app:layout_constraintTop_toTopOf="parent" />--> | |
124 | + | |
125 | + | |
126 | + <!-- <ImageView--> | |
127 | + <!-- android:id="@+id/ivHolder"--> | |
128 | + <!-- android:layout_width="30dp"--> | |
129 | + <!-- android:layout_height="30dp"--> | |
130 | + <!-- android:visibility="gone"--> | |
131 | + <!-- android:src="@drawable/more"--> | |
132 | + <!-- app:layout_constraintBottom_toTopOf="@+id/tvDescripcion"--> | |
133 | + <!-- app:layout_constraintEnd_toEndOf="parent"--> | |
134 | + <!-- app:layout_constraintHorizontal_bias="0.968"--> | |
135 | + <!-- app:layout_constraintStart_toEndOf="@+id/tvCodigoBarras"--> | |
136 | + <!-- app:layout_constraintTop_toTopOf="parent"--> | |
137 | + <!-- app:layout_constraintVertical_bias="0.0" />--> | |
138 | + | |
139 | + | |
140 | + </androidx.constraintlayout.widget.ConstraintLayout> | |
141 | + | |
142 | +</androidx.cardview.widget.CardView> | |
0 | 143 | \ No newline at end of file |
app/src/main/res/layout-xlarge/item_principal.xml
... | ... | @@ -0,0 +1,112 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="wrap_content" | |
7 | + android:layout_margin="5dp" | |
8 | + app:cardCornerRadius="15dp" | |
9 | + app:cardElevation="10dp" | |
10 | + app:cardPreventCornerOverlap="false"> | |
11 | + | |
12 | + <androidx.constraintlayout.widget.ConstraintLayout | |
13 | + android:layout_width="match_parent" | |
14 | + android:layout_height="wrap_content" | |
15 | + android:layout_gravity="center_horizontal|center_vertical" | |
16 | + android:orientation="vertical"> | |
17 | + | |
18 | + <TextView | |
19 | + android:id="@+id/tvPrincipalinventario" | |
20 | + android:layout_width="@dimen/icon_dim10" | |
21 | + android:layout_height="@dimen/icon_dim10" | |
22 | + android:layout_margin="10dp" | |
23 | + android:background="@drawable/boton_redondo2" | |
24 | + android:gravity="center" | |
25 | + android:lines="2" | |
26 | + android:textColor="@android:color/black" | |
27 | + android:textSize="@dimen/TitulosMedios" | |
28 | + android:textStyle="bold" | |
29 | + app:layout_constraintBottom_toTopOf="@+id/ivFondo" | |
30 | + app:layout_constraintStart_toStartOf="parent" | |
31 | + app:layout_constraintTop_toTopOf="parent" | |
32 | + tools:text="99" /> | |
33 | + | |
34 | + <TextView | |
35 | + android:id="@+id/textView6" | |
36 | + android:layout_width="wrap_content" | |
37 | + android:layout_height="wrap_content" | |
38 | + android:layout_marginTop="5dp" | |
39 | + android:text="Fecha Inicio" | |
40 | + android:textSize="@dimen/textView510" | |
41 | + android:textStyle="bold" | |
42 | + app:layout_constraintEnd_toEndOf="parent" | |
43 | + app:layout_constraintHorizontal_bias="0.217" | |
44 | + app:layout_constraintStart_toEndOf="@id/tvPrincipalinventario" | |
45 | + app:layout_constraintTop_toTopOf="parent" /> | |
46 | + | |
47 | + <TextView | |
48 | + android:id="@+id/tvFecha" | |
49 | + android:layout_width="wrap_content" | |
50 | + android:layout_height="wrap_content" | |
51 | + android:layout_marginStart="5dp" | |
52 | + android:text="01/01/2020 12:20:20" | |
53 | + android:textSize="@dimen/textView510" | |
54 | + android:textStyle="bold" | |
55 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView6" | |
56 | + app:layout_constraintEnd_toEndOf="parent" | |
57 | + app:layout_constraintHorizontal_bias="0.0" | |
58 | + app:layout_constraintStart_toEndOf="@id/textView6" /> | |
59 | + | |
60 | + <TextView | |
61 | + android:id="@+id/textView7" | |
62 | + android:layout_width="wrap_content" | |
63 | + android:layout_height="wrap_content" | |
64 | + android:layout_marginTop="4dp" | |
65 | + android:text="Art. Contados" | |
66 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
67 | + android:textStyle="bold" | |
68 | + app:layout_constraintEnd_toEndOf="parent" | |
69 | + app:layout_constraintHorizontal_bias="0.23" | |
70 | + app:layout_constraintStart_toEndOf="@+id/tvPrincipalinventario" | |
71 | + app:layout_constraintTop_toBottomOf="@id/textView6" /> | |
72 | + | |
73 | + <TextView | |
74 | + android:id="@+id/tvCantContada" | |
75 | + android:layout_width="wrap_content" | |
76 | + android:layout_height="wrap_content" | |
77 | + android:layout_marginTop="4dp" | |
78 | + android:layout_marginStart="5dp" | |
79 | + android:text="002" | |
80 | + android:textSize="@dimen/nav_header_vertical_spacing10" | |
81 | + android:textStyle="bold" | |
82 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView7" | |
83 | + app:layout_constraintStart_toEndOf="@+id/textView7" | |
84 | + app:layout_constraintTop_toBottomOf="@+id/tvFecha" /> | |
85 | + | |
86 | + <TextView | |
87 | + android:id="@+id/tvDescription" | |
88 | + android:layout_width="wrap_content" | |
89 | + android:layout_height="wrap_content" | |
90 | + android:text="prueba" | |
91 | + android:textSize="@dimen/textView510" | |
92 | + app:layout_constraintBottom_toTopOf="@id/ivFondo" | |
93 | + app:layout_constraintEnd_toEndOf="parent" | |
94 | + app:layout_constraintHorizontal_bias="0.489" | |
95 | + app:layout_constraintStart_toEndOf="@id/tvPrincipalinventario" | |
96 | + app:layout_constraintTop_toBottomOf="@+id/tvFecha" | |
97 | + app:layout_constraintVertical_bias="1.0" /> | |
98 | + | |
99 | + | |
100 | + <androidx.appcompat.widget.AppCompatImageView | |
101 | + android:id="@+id/ivFondo" | |
102 | + android:layout_width="0dp" | |
103 | + android:layout_height="10dp" | |
104 | + android:background="@android:drawable/progress_horizontal" | |
105 | + android:elevation="10dp" | |
106 | + app:layout_constraintBottom_toBottomOf="parent" | |
107 | + app:layout_constraintCircleRadius="5dp" | |
108 | + app:layout_constraintEnd_toEndOf="parent" | |
109 | + app:layout_constraintStart_toStartOf="parent" | |
110 | + tools:srcCompat="@android:drawable/progress_horizontal" /> | |
111 | + </androidx.constraintlayout.widget.ConstraintLayout> | |
112 | +</androidx.cardview.widget.CardView> |
app/src/main/res/layout-xlarge/item_servidores.xml
... | ... | @@ -0,0 +1,98 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + xmlns:tools="http://schemas.android.com/tools" | |
5 | + android:layout_width="match_parent" | |
6 | + android:layout_height="wrap_content" | |
7 | + android:layout_margin="5dp" | |
8 | + app:cardCornerRadius="15dp" | |
9 | + app:cardElevation="10dp" | |
10 | + app:contentPadding="5dp" | |
11 | + app:cardPreventCornerOverlap="false"> | |
12 | + | |
13 | + <androidx.constraintlayout.widget.ConstraintLayout | |
14 | + android:layout_width="match_parent" | |
15 | + android:layout_height="wrap_content"> | |
16 | + | |
17 | + <TextView | |
18 | + android:id="@+id/textView2" | |
19 | + android:layout_width="wrap_content" | |
20 | + android:layout_height="wrap_content" | |
21 | + android:layout_marginStart="5dp" | |
22 | + android:text="Descripción:" | |
23 | + android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" | |
24 | + android:textSize="20sp" | |
25 | + app:layout_constraintEnd_toStartOf="@+id/tvCodigo" | |
26 | + app:layout_constraintHorizontal_bias="0.01" | |
27 | + app:layout_constraintHorizontal_chainStyle="packed" | |
28 | + app:layout_constraintStart_toStartOf="parent" | |
29 | + app:layout_constraintTop_toTopOf="parent" /> | |
30 | + | |
31 | + <TextView | |
32 | + android:id="@+id/tvDescServidor" | |
33 | + android:layout_width="0dp" | |
34 | + android:layout_height="match_parent" | |
35 | + android:layout_marginStart="8dp" | |
36 | + android:text="Laboratorio Foca 1" | |
37 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
38 | + android:textColorHint="@android:color/black" | |
39 | + android:textSize="25sp" | |
40 | + android:textStyle="bold" | |
41 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView2" | |
42 | + app:layout_constraintEnd_toEndOf="parent" | |
43 | + app:layout_constraintStart_toEndOf="@+id/textView2" /> | |
44 | + | |
45 | + <TextView | |
46 | + android:id="@+id/textView85" | |
47 | + android:layout_width="wrap_content" | |
48 | + android:layout_height="wrap_content" | |
49 | + android:layout_marginStart="5dp" | |
50 | + android:layout_marginTop="8dp" | |
51 | + android:text="Dirección:" | |
52 | + android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" | |
53 | + android:textSize="20sp" | |
54 | + app:layout_constraintStart_toStartOf="parent" | |
55 | + app:layout_constraintTop_toBottomOf="@id/tvDescServidor" /> | |
56 | + | |
57 | + <TextView | |
58 | + android:id="@+id/tvDireccionServidor" | |
59 | + android:layout_width="wrap_content" | |
60 | + android:layout_height="wrap_content" | |
61 | + android:layout_marginStart="5dp" | |
62 | + android:text="http://192.168.0.205" | |
63 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
64 | + android:textColorHint="@android:color/black" | |
65 | + android:textSize="25sp" | |
66 | + android:textStyle="bold" | |
67 | + app:layout_constraintBaseline_toBaselineOf="@+id/textView85" | |
68 | + app:layout_constraintStart_toEndOf="@+id/textView85" /> | |
69 | + | |
70 | + <TextView | |
71 | + android:id="@+id/textView86" | |
72 | + android:layout_width="wrap_content" | |
73 | + android:layout_height="wrap_content" | |
74 | + android:layout_marginTop="8dp" | |
75 | + android:layout_marginStart="15dp" | |
76 | + android:text="Puerto:" | |
77 | + android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" | |
78 | + android:textSize="20sp" | |
79 | + app:layout_constraintHorizontal_chainStyle="packed" | |
80 | + app:layout_constraintStart_toEndOf="@+id/tvDireccionServidor" | |
81 | + app:layout_constraintTop_toBottomOf="@id/tvDescServidor" /> | |
82 | + | |
83 | + <TextView | |
84 | + android:id="@+id/tvPuertoServidor" | |
85 | + android:layout_width="wrap_content" | |
86 | + android:layout_height="wrap_content" | |
87 | + android:layout_marginTop="8dp" | |
88 | + android:layout_marginStart="5dp" | |
89 | + android:text="" | |
90 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
91 | + android:textColorHint="@android:color/black" | |
92 | + android:textSize="25sp" | |
93 | + android:textStyle="bold" | |
94 | + app:layout_constraintStart_toEndOf="@+id/textView86" | |
95 | + app:layout_constraintTop_toBottomOf="@+id/tvDescServidor" /> | |
96 | + </androidx.constraintlayout.widget.ConstraintLayout> | |
97 | + | |
98 | +</androidx.cardview.widget.CardView> | |
0 | 99 | \ No newline at end of file |
app/src/main/res/layout-xlarge/item_spinner.xml
... | ... | @@ -0,0 +1,13 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<LinearLayout | |
3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
4 | + android:layout_width="match_parent" | |
5 | + android:layout_height="match_parent"> | |
6 | + | |
7 | + <TextView | |
8 | + android:layout_width="wrap_content" | |
9 | + android:layout_height="wrap_content" | |
10 | + android:textSize="40sp" | |
11 | + android:textStyle="bold" | |
12 | + android:id="@+id/tvServidorDesc"/> | |
13 | +</LinearLayout> |
app/src/main/res/layout-xlarge/login_dialog.xml
... | ... | @@ -0,0 +1,199 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + android:layout_width="match_parent" | |
5 | + android:layout_height="wrap_content" | |
6 | + android:orientation="vertical" | |
7 | + android:padding="10dp"> | |
8 | + | |
9 | + <LinearLayout | |
10 | + android:id="@+id/barraSuperior" | |
11 | + android:layout_width="0dp" | |
12 | + android:layout_height="wrap_content" | |
13 | + android:background="@color/colorPrimaryDark" | |
14 | + android:orientation="horizontal" | |
15 | + app:layout_constraintEnd_toEndOf="parent" | |
16 | + app:layout_constraintStart_toStartOf="parent" | |
17 | + app:layout_constraintTop_toTopOf="parent"> | |
18 | + | |
19 | + <androidx.appcompat.widget.AppCompatTextView | |
20 | + android:id="@+id/tvTitulo2" | |
21 | + android:layout_width="0dp" | |
22 | + android:layout_height="wrap_content" | |
23 | + android:layout_margin="10dp" | |
24 | + android:layout_marginStart="5dp" | |
25 | + android:layout_marginTop="10dp" | |
26 | + android:layout_weight="1" | |
27 | + android:text="@string/adv" | |
28 | + android:background="@drawable/boton_borde_redondeado" | |
29 | + android:textAlignment="center" | |
30 | + android:textColor="@android:color/white" | |
31 | + android:textSize="25sp" /> | |
32 | + </LinearLayout> | |
33 | + | |
34 | + <TextView | |
35 | + android:id="@+id/dialogNameEt" | |
36 | + android:layout_width="wrap_content" | |
37 | + android:layout_height="wrap_content" | |
38 | + android:layout_margin="5dp" | |
39 | + android:layout_marginTop="4dp" | |
40 | + android:text="Conteo actual :" | |
41 | + android:textSize="25sp" | |
42 | + app:layout_constraintEnd_toStartOf="@id/tvCantInicial" | |
43 | + app:layout_constraintHorizontal_bias="0.0" | |
44 | + app:layout_constraintHorizontal_chainStyle="packed" | |
45 | + app:layout_constraintStart_toStartOf="parent" | |
46 | + app:layout_constraintTop_toBottomOf="@id/barraSuperior" /> | |
47 | + | |
48 | + <TextView | |
49 | + android:id="@+id/tvCantInicial" | |
50 | + android:layout_width="wrap_content" | |
51 | + android:layout_height="wrap_content" | |
52 | + android:layout_margin="5dp" | |
53 | + android:text="" | |
54 | + android:textSize="20sp" | |
55 | + app:layout_constraintBaseline_toBaselineOf="@+id/dialogNameEt" | |
56 | + app:layout_constraintEnd_toEndOf="parent" | |
57 | + app:layout_constraintHorizontal_chainStyle="packed" | |
58 | + app:layout_constraintStart_toEndOf="@id/dialogNameEt" /> | |
59 | + | |
60 | + <TextView | |
61 | + android:id="@+id/tvgenerico" | |
62 | + android:layout_width="wrap_content" | |
63 | + android:layout_height="wrap_content" | |
64 | + android:layout_margin="5dp" | |
65 | + android:text="Nueva cantidad:" | |
66 | + android:textStyle="bold" | |
67 | + android:textSize="25sp" | |
68 | + app:layout_constraintStart_toStartOf="parent" | |
69 | + app:layout_constraintTop_toBottomOf="@+id/tvCantInicial" /> | |
70 | + | |
71 | + <EditText | |
72 | + android:id="@+id/tvNuevaCantidad" | |
73 | + android:layout_width="0dp" | |
74 | + android:layout_height="wrap_content" | |
75 | + android:autofillHints="" | |
76 | + android:hint="" | |
77 | + android:textSize="20sp" | |
78 | + android:focusable="true" | |
79 | + android:clickable="true" | |
80 | + android:inputType="numberDecimal" | |
81 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvgenerico" | |
82 | + app:layout_constraintEnd_toEndOf="parent" | |
83 | + app:layout_constraintStart_toEndOf="@id/tvgenerico" /> | |
84 | + | |
85 | + <TextView | |
86 | + android:id="@+id/tvgenerico2" | |
87 | + android:layout_width="wrap_content" | |
88 | + android:layout_height="wrap_content" | |
89 | + android:layout_margin="5dp" | |
90 | + android:gravity="center" | |
91 | + android:text="@string/tvSeleccion" | |
92 | + android:textSize="20sp" | |
93 | + android:visibility="gone" | |
94 | + app:layout_constraintStart_toStartOf="parent" | |
95 | + app:layout_constraintTop_toBottomOf="@+id/tvgenerico" /> | |
96 | + | |
97 | + <RadioGroup | |
98 | + android:id="@+id/rgFechaHora" | |
99 | + android:layout_width="wrap_content" | |
100 | + android:layout_height="wrap_content" | |
101 | + android:gravity="start" | |
102 | + android:orientation="horizontal" | |
103 | + app:layout_constraintEnd_toEndOf="parent" | |
104 | + app:layout_constraintHorizontal_bias="0.0" | |
105 | + app:layout_constraintStart_toStartOf="parent" | |
106 | + app:layout_constraintTop_toBottomOf="@+id/tvgenerico2"> | |
107 | + | |
108 | + <RadioButton | |
109 | + android:id="@+id/rbSumar" | |
110 | + android:layout_width="wrap_content" | |
111 | + android:layout_height="wrap_content" | |
112 | + android:layout_margin="12dp" | |
113 | + android:checked="true" | |
114 | + android:text="@string/rbSumar" | |
115 | + android:textSize="@dimen/activity_vertical_margin10" /> | |
116 | + | |
117 | + <RadioButton | |
118 | + android:id="@+id/rbMdodificar" | |
119 | + android:layout_width="wrap_content" | |
120 | + android:layout_height="wrap_content" | |
121 | + android:layout_margin="12dp" | |
122 | + android:checked="false" | |
123 | + android:text="@string/rbModificar" | |
124 | + android:textSize="@dimen/activity_vertical_margin10" /> | |
125 | + | |
126 | + <RadioButton | |
127 | + android:id="@+id/rbRestar" | |
128 | + android:layout_width="wrap_content" | |
129 | + android:layout_height="wrap_content" | |
130 | + android:layout_margin="12dp" | |
131 | + android:checked="false" | |
132 | + android:text="@string/rbRestar" | |
133 | + android:textSize="@dimen/activity_vertical_margin10" /> | |
134 | + | |
135 | + </RadioGroup> | |
136 | + | |
137 | + <TextView | |
138 | + android:id="@+id/tvgenerico3" | |
139 | + android:layout_width="wrap_content" | |
140 | + android:layout_height="wrap_content" | |
141 | + android:layout_margin="5dp" | |
142 | + android:gravity="center" | |
143 | + android:text="Resultado :" | |
144 | + android:textStyle="bold" | |
145 | + android:textSize="25sp" | |
146 | + app:layout_constraintEnd_toEndOf="parent" | |
147 | + app:layout_constraintHorizontal_bias="0.0" | |
148 | + app:layout_constraintStart_toStartOf="parent" | |
149 | + app:layout_constraintTop_toBottomOf="@+id/rgFechaHora" /> | |
150 | + | |
151 | + <TextView | |
152 | + android:id="@+id/tvResultado" | |
153 | + android:layout_width="wrap_content" | |
154 | + android:layout_height="wrap_content" | |
155 | + android:layout_margin="5dp" | |
156 | + android:gravity="center" | |
157 | + android:text="" | |
158 | + android:textSize="20sp" | |
159 | + app:layout_constraintEnd_toEndOf="parent" | |
160 | + app:layout_constraintHorizontal_bias="0.0" | |
161 | + app:layout_constraintStart_toEndOf="@+id/tvgenerico3" | |
162 | + app:layout_constraintTop_toBottomOf="@+id/rgFechaHora" /> | |
163 | + | |
164 | + <LinearLayout | |
165 | + android:layout_width="match_parent" | |
166 | + android:layout_height="wrap_content" | |
167 | + android:layout_margin="10dp" | |
168 | + android:gravity="center" | |
169 | + android:orientation="horizontal" | |
170 | + app:layout_constraintEnd_toEndOf="parent" | |
171 | + app:layout_constraintStart_toStartOf="parent" | |
172 | + app:layout_constraintTop_toBottomOf="@+id/tvResultado"> | |
173 | + | |
174 | + <Button | |
175 | + android:id="@+id/btnAceptar" | |
176 | + style="@style/Base.Widget.AppCompat.Button.Colored" | |
177 | + android:layout_width="wrap_content" | |
178 | + android:layout_height="wrap_content" | |
179 | + android:layout_margin="5dp" | |
180 | + android:background="@drawable/boton_borde_redondeado" | |
181 | + android:padding="20dp" | |
182 | + android:textSize="25sp" | |
183 | + android:text="@string/btnConfirmar" | |
184 | + android:textColor="@android:color/white" /> | |
185 | + | |
186 | + <Button | |
187 | + android:id="@+id/dialogCancelBtn" | |
188 | + style="@style/Base.Widget.AppCompat.Button.Colored" | |
189 | + android:layout_width="wrap_content" | |
190 | + android:layout_height="wrap_content" | |
191 | + android:layout_margin="5dp" | |
192 | + android:background="@drawable/boton_borde_redondeado" | |
193 | + android:padding="20dp" | |
194 | + android:textSize="25sp" | |
195 | + android:text="@string/btnCancelar" | |
196 | + android:textColor="@android:color/white" /> | |
197 | + </LinearLayout> | |
198 | + | |
199 | +</androidx.constraintlayout.widget.ConstraintLayout> | |
0 | 200 | \ No newline at end of file |
app/src/main/res/layout-xlarge/nav_header_main.xml
... | ... | @@ -0,0 +1,37 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | + android:layout_width="match_parent" | |
5 | + android:layout_height="@dimen/nav_header_height10" | |
6 | + android:background="@drawable/side_nav_bar" | |
7 | + android:gravity="bottom" | |
8 | + android:orientation="vertical" | |
9 | + android:paddingLeft="@dimen/activity_horizontal_margin" | |
10 | + android:paddingTop="@dimen/activity_vertical_margin" | |
11 | + android:paddingRight="@dimen/activity_horizontal_margin" | |
12 | + android:paddingBottom="@dimen/activity_vertical_margin" | |
13 | + android:theme="@style/ThemeOverlay.AppCompat.Dark"> | |
14 | + | |
15 | + <ImageView | |
16 | + android:id="@+id/imageView" | |
17 | + android:layout_width="246dp" | |
18 | + android:layout_height="136dp" | |
19 | + android:contentDescription=" " | |
20 | + android:paddingTop="@dimen/nav_header_vertical_spacing" | |
21 | + app:srcCompat="@drawable/logo" /> | |
22 | + | |
23 | + <TextView | |
24 | + android:layout_width="match_parent" | |
25 | + android:layout_height="wrap_content" | |
26 | + android:paddingTop="@dimen/nav_header_vertical_spacing" | |
27 | + android:textSize="@dimen/SubTitulos10" | |
28 | + android:text="Debo Inventario" | |
29 | + android:textAppearance="@style/TextAppearance.AppCompat.Body1" /> | |
30 | + | |
31 | + <TextView | |
32 | + android:id="@+id/textView1" | |
33 | + android:layout_width="wrap_content" | |
34 | + android:layout_height="wrap_content" | |
35 | + android:text="FocaSoftware SA" | |
36 | + android:textSize="@dimen/SubTitulos10"/> | |
37 | +</LinearLayout> | |
0 | 38 | \ No newline at end of file |
app/src/main/res/layout/activity_splash.xml
... | ... | @@ -38,12 +38,7 @@ |
38 | 38 | app:layout_constraintBottom_toTopOf="@id/textView4" |
39 | 39 | app:layout_constraintEnd_toEndOf="parent" |
40 | 40 | app:layout_constraintStart_toStartOf="parent" |
41 | - app:layout_constraintTop_toBottomOf="@+id/textView2" | |
42 | - /> | |
43 | - | |
44 | - | |
45 | - | |
46 | - | |
41 | + app:layout_constraintTop_toBottomOf="@+id/textView2" /> | |
47 | 42 | |
48 | 43 | <androidx.appcompat.widget.AppCompatTextView |
49 | 44 | android:id="@+id/textView4" |
app/src/main/res/layout/content_main.xml
... | ... | @@ -18,15 +18,4 @@ |
18 | 18 | app:layout_constraintTop_toTopOf="parent" |
19 | 19 | app:navGraph="@navigation/mobile_navigation" /> |
20 | 20 | |
21 | -<!-- <fragment--> | |
22 | -<!-- android:id="@+id/fragmentoSecundario"--> | |
23 | -<!-- android:name="androidx.navigation.fragment.NavHostFragment"--> | |
24 | -<!-- android:layout_width="289dp"--> | |
25 | -<!-- android:layout_height="335dp"--> | |
26 | -<!-- app:layout_constraintBottom_toBottomOf="parent"--> | |
27 | -<!-- app:layout_constraintHorizontal_bias="0.497"--> | |
28 | -<!-- app:layout_constraintLeft_toLeftOf="parent"--> | |
29 | -<!-- app:layout_constraintRight_toRightOf="parent"--> | |
30 | -<!-- app:layout_constraintTop_toTopOf="parent"--> | |
31 | -<!-- app:layout_constraintVertical_bias="0.597" />--> | |
32 | 21 | </androidx.constraintlayout.widget.ConstraintLayout> |
33 | 22 | \ No newline at end of file |
app/src/main/res/layout/fragment_descripcion.xml
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | android:text="Deslizar a la izquierda para seleccionar" |
30 | 30 | android:textAppearance="@style/TextAppearance.AppCompat.Large" |
31 | 31 | android:textColor="@color/colorPrimaryDark" |
32 | - android:textSize="16dp" | |
32 | + android:textSize="16sp" | |
33 | 33 | android:textStyle="bold" |
34 | 34 | |
35 | 35 | app:layout_constraintBottom_toTopOf="@id/guideline4" |
app/src/main/res/layout/fragment_detalle_art.xml
... | ... | @@ -48,7 +48,7 @@ |
48 | 48 | |
49 | 49 | android:text="coaca" |
50 | 50 | android:textAppearance="@style/TextAppearance.AppCompat.Large" |
51 | - android:textSize="30sp" | |
51 | + android:textSize="25sp" | |
52 | 52 | android:textStyle="bold" |
53 | 53 | app:layout_constraintEnd_toEndOf="parent" |
54 | 54 | app:layout_constraintStart_toStartOf="parent" |
app/src/main/res/layout/fragment_main.xml
... | ... | @@ -95,7 +95,8 @@ |
95 | 95 | app:layout_constraintEnd_toEndOf="parent" |
96 | 96 | app:layout_constraintStart_toStartOf="parent" |
97 | 97 | app:layout_constraintTop_toBottomOf="@id/ivSort19" |
98 | - tools:listitem="@layout/item_principal" /> | |
98 | + tools:listitem="@layout/item_principal" | |
99 | + app:layout_constraintBottom_toTopOf="@+id/guideline6"/> | |
99 | 100 | |
100 | 101 | |
101 | 102 | <androidx.appcompat.widget.AppCompatTextView |
app/src/main/res/layout/ingresar_cantidad.xml
... | ... | @@ -78,7 +78,7 @@ |
78 | 78 | android:textColor="@android:color/white" |
79 | 79 | android:padding="10dp" |
80 | 80 | android:background="@drawable/boton_borde_redondeado" |
81 | - android:text="@string/btnOk" | |
81 | + android:text="@string/btnConfirmar" | |
82 | 82 | android:textAlignment="center" |
83 | 83 | android:textSize="20sp" |
84 | 84 | android:textStyle="bold" |
app/src/main/res/layout/item_codigo_origen.xml
... | ... | @@ -27,41 +27,16 @@ |
27 | 27 | app:layout_constraintStart_toStartOf="parent" |
28 | 28 | app:layout_constraintTop_toTopOf="parent" /> |
29 | 29 | |
30 | - | |
31 | - <TextView | |
32 | - android:id="@+id/tvCantidad" | |
33 | - android:layout_width="wrap_content" | |
34 | - android:layout_height="match_parent" | |
35 | - android:layout_marginStart="5dp" | |
36 | - android:text="Código Origen:" | |
37 | - android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
38 | - android:textSize="14sp" | |
39 | - app:layout_constraintStart_toStartOf="parent" | |
40 | - app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
41 | - | |
42 | - <TextView | |
43 | - android:id="@+id/tvCodigoOrigen" | |
44 | - android:layout_width="wrap_content" | |
45 | - android:layout_height="match_parent" | |
46 | - android:maxLines="2" | |
47 | - android:text="987654" | |
48 | - android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
49 | - android:textSize="14sp" | |
50 | - android:textStyle="bold" | |
51 | - android:visibility="visible" | |
52 | - app:layout_constraintStart_toEndOf="@+id/tvCantidad" | |
53 | - app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> | |
54 | - | |
55 | - | |
56 | 30 | <TextView |
57 | 31 | android:id="@+id/textView2" |
58 | 32 | android:layout_width="wrap_content" |
59 | 33 | android:layout_height="wrap_content" |
60 | 34 | android:layout_marginStart="5dp" |
35 | + android:layout_marginTop="10dp" | |
61 | 36 | android:text="Código DEBO:" |
62 | 37 | android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large" |
63 | 38 | android:textSize="14sp" |
64 | - app:layout_constraintStart_toEndOf="@+id/tvCodigoOrigen" | |
39 | + app:layout_constraintStart_toStartOf="parent" | |
65 | 40 | app:layout_constraintTop_toBottomOf="@+id/tvDescripcion" /> |
66 | 41 | |
67 | 42 | |
... | ... | @@ -69,6 +44,8 @@ |
69 | 44 | android:id="@+id/tvSector" |
70 | 45 | android:layout_width="wrap_content" |
71 | 46 | android:layout_height="match_parent" |
47 | + android:layout_marginStart="5dp" | |
48 | + android:layout_marginTop="10dp" | |
72 | 49 | android:text="9999" |
73 | 50 | android:textAppearance="@style/TextAppearance.AppCompat.Large" |
74 | 51 | android:textColorHint="@android:color/black" |
... | ... | @@ -81,42 +58,41 @@ |
81 | 58 | android:id="@+id/tvCodigo" |
82 | 59 | android:layout_width="wrap_content" |
83 | 60 | android:layout_height="match_parent" |
84 | - android:layout_marginStart="2dp" | |
85 | 61 | android:text="99999999" |
86 | 62 | android:textAppearance="@style/TextAppearance.AppCompat.Large" |
87 | 63 | android:textColorHint="@android:color/black" |
88 | 64 | android:textSize="14sp" |
89 | 65 | android:textStyle="bold" |
66 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvSector" | |
90 | 67 | app:layout_constraintHorizontal_chainStyle="packed" |
91 | - app:layout_constraintStart_toEndOf="@+id/tvSector" | |
92 | - app:layout_constraintTop_toTopOf="@+id/textView2" /> | |
68 | + app:layout_constraintStart_toEndOf="@+id/tvSector" /> | |
93 | 69 | |
94 | - <!-- <TextView--> | |
95 | - <!-- android:id="@+id/textView5"--> | |
96 | - <!-- android:layout_width="wrap_content"--> | |
97 | - <!-- android:layout_height="wrap_content"--> | |
98 | - <!-- android:layout_marginStart="8dp"--> | |
99 | - <!-- android:text="Cantidad:"--> | |
100 | - <!-- android:textAppearance="@style/TextAppearance.AppCompat.Widget.PopupMenu.Large"--> | |
101 | - <!-- android:textSize="14sp"--> | |
102 | - <!-- android:visibility="gone"--> | |
103 | - <!-- app:layout_constraintTop_toTopOf="parent"--> | |
104 | - <!-- app:layout_constraintEnd_toStartOf="@+id/tvCodigoBarras"--> | |
105 | - <!-- app:layout_constraintStart_toEndOf="@+id/tvCodigo" />--> | |
106 | 70 | |
107 | - <!-- <ImageView--> | |
108 | - <!-- android:id="@+id/ivHolder"--> | |
109 | - <!-- android:layout_width="30dp"--> | |
110 | - <!-- android:layout_height="30dp"--> | |
111 | - <!-- android:visibility="gone"--> | |
112 | - <!-- android:src="@drawable/more"--> | |
113 | - <!-- app:layout_constraintBottom_toTopOf="@+id/tvDescripcion"--> | |
114 | - <!-- app:layout_constraintEnd_toEndOf="parent"--> | |
115 | - <!-- app:layout_constraintHorizontal_bias="0.968"--> | |
116 | - <!-- app:layout_constraintStart_toEndOf="@+id/tvCodigoBarras"--> | |
117 | - <!-- app:layout_constraintTop_toTopOf="parent"--> | |
118 | - <!-- app:layout_constraintVertical_bias="0.0" />--> | |
71 | + <TextView | |
72 | + android:id="@+id/tvCantidad" | |
73 | + android:layout_width="wrap_content" | |
74 | + android:layout_height="match_parent" | |
75 | + android:layout_marginStart="10dp" | |
76 | + android:text="Código Origen:" | |
77 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
78 | + android:textSize="14sp" | |
79 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvCodigo" | |
80 | + app:layout_constraintStart_toEndOf="@+id/tvCodigo" /> | |
119 | 81 | |
82 | + <TextView | |
83 | + android:id="@+id/tvCodigoOrigen" | |
84 | + android:layout_width="wrap_content" | |
85 | + android:layout_height="match_parent" | |
86 | + android:layout_marginStart="5dp" | |
87 | + android:layout_marginTop="10dp" | |
88 | + android:maxLines="2" | |
89 | + android:text="987654" | |
90 | + android:textAppearance="@style/TextAppearance.AppCompat.Large" | |
91 | + android:textSize="14sp" | |
92 | + android:textStyle="bold" | |
93 | + android:visibility="visible" | |
94 | + app:layout_constraintBaseline_toBaselineOf="@+id/tvCantidad" | |
95 | + app:layout_constraintStart_toEndOf="@+id/tvCantidad" /> | |
120 | 96 | |
121 | 97 | </androidx.constraintlayout.widget.ConstraintLayout> |
122 | 98 |
app/src/main/res/layout/login_dialog.xml
... | ... | @@ -178,7 +178,7 @@ |
178 | 178 | android:layout_margin="5dp" |
179 | 179 | android:background="@drawable/boton_borde_redondeado" |
180 | 180 | android:padding="20dp" |
181 | - android:text="@string/btnOk" | |
181 | + android:text="@string/btnConfirmar" | |
182 | 182 | android:textColor="@android:color/white" /> |
183 | 183 | |
184 | 184 | <Button |
app/src/main/res/menu/activity_main_drawer.xml
app/src/main/res/values/dimens.xml
... | ... | @@ -35,4 +35,30 @@ |
35 | 35 | <dimen name="text_size2">16sp</dimen> |
36 | 36 | <dimen name="list_item_spacing">16dp</dimen> |
37 | 37 | <dimen name="list_item_spacing_half">8dp</dimen> |
38 | + | |
39 | + //TODO: DIMENSIONES DE 10 PULGADAS | |
40 | + | |
41 | + //FRAGMENT MAIN | |
42 | + <dimen name="icon_dim10">90dp</dimen> | |
43 | + <dimen name="SubTitulos10">25sp</dimen> | |
44 | + <dimen name="VentasDeposito10">30sp</dimen> | |
45 | + | |
46 | + //TOOL BAR | |
47 | + <dimen name="activity_horizontal_margin10">26dp</dimen> | |
48 | + <dimen name="activity_vertical_margin10">26dp</dimen> | |
49 | + <dimen name="nav_header_vertical_spacing10">20dp</dimen> | |
50 | + <dimen name="nav_header_height10">276dp</dimen> | |
51 | + <dimen name="fab_margin10">26dp</dimen> | |
52 | + | |
53 | + <dimen name="md_message_textsize10">30sp</dimen> | |
54 | + | |
55 | + | |
56 | + //INVENTARIO | |
57 | + <dimen name="boton10">120dp</dimen> | |
58 | + <dimen name="textCantidadDesc10">26sp</dimen> | |
59 | + <dimen name="textCantidad10">30sp</dimen> | |
60 | + <dimen name="iconos">60dp</dimen> | |
61 | + <dimen name="iconosMedia10">40dp</dimen> | |
62 | + <dimen name="tvServerConectado">35sp</dimen> | |
63 | + <dimen name="textView510">23sp</dimen> | |
38 | 64 | </resources> |
39 | 65 | \ No newline at end of file |
app/src/main/res/values/strings.xml
... | ... | @@ -41,7 +41,7 @@ |
41 | 41 | <string name="btnExportarInv">Exportar Inventario</string> |
42 | 42 | <string name="btnBorrarInv">Borrar Inventario</string> |
43 | 43 | <string name="ibBusDesc">Busqueda por Descripción</string> |
44 | - <string name="ibBusCB">Busqueda por C. Barras</string> | |
44 | + <string name="ibBusCB">Busqueda por Código Barras</string> | |
45 | 45 | <string name="ibBusCO">Busqueda por Código de Origen</string> |
46 | 46 | <string name="switch_1">+ 1</string> |
47 | 47 | |
... | ... | @@ -100,6 +100,7 @@ |
100 | 100 | <!-- Dialog--> |
101 | 101 | <string name="sTitulo">Producto Buscado</string> |
102 | 102 | <string name="btnOk">Aceptar</string> |
103 | + <string name="btnConfirmar">Confirmar</string> | |
103 | 104 | <string name="btnCancelar">Cancelar</string> |
104 | 105 | <string name="sMensaje">¡No se encontro el producto ingresado!</string> |
105 | 106 | <string name="sMensajeEncontrado">¡Ingrese nueva cantidad!</string> |