Version 9.2.1 Modificado fragment
This commit is contained in:
parent
ddb4ab09c4
commit
733489514a
|
@ -5,7 +5,7 @@ import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.inputmethod.EditorInfo
|
import android.view.inputmethod.EditorInfo
|
||||||
import es.verdnatura.R
|
import es.verdnatura.R
|
||||||
import es.verdnatura.databinding.FragmentControladorBinding
|
import es.verdnatura.databinding.FragmentGeneralBlackBinding
|
||||||
import es.verdnatura.domain.ConstAndValues
|
import es.verdnatura.domain.ConstAndValues
|
||||||
import es.verdnatura.presentation.base.BaseFragment
|
import es.verdnatura.presentation.base.BaseFragment
|
||||||
import es.verdnatura.presentation.common.OnCollectionSelectedListener
|
import es.verdnatura.presentation.common.OnCollectionSelectedListener
|
||||||
|
@ -14,13 +14,13 @@ import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
||||||
|
|
||||||
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
||||||
class ShowTicketFragment(var menuOrigin: String) :
|
class ShowTicketFragment(var menuOrigin: String) :
|
||||||
BaseFragment<FragmentControladorBinding, ShowTicketViewModel>(
|
BaseFragment<FragmentGeneralBlackBinding, ShowTicketViewModel>(
|
||||||
ShowTicketViewModel::class
|
ShowTicketViewModel::class
|
||||||
) {
|
) {
|
||||||
|
|
||||||
private var goBack: Boolean = false
|
private var goBack: Boolean = false
|
||||||
private var onCollectionSelectedListener: OnCollectionSelectedListener? = null
|
private var onCollectionSelectedListener: OnCollectionSelectedListener? = null
|
||||||
override fun getLayoutId(): Int = R.layout.fragment_controlador
|
override fun getLayoutId(): Int = R.layout.fragment_general_black
|
||||||
private var type = ""
|
private var type = ""
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class ShowTicketFragment(var menuOrigin: String) :
|
||||||
|
|
||||||
override fun init() {
|
override fun init() {
|
||||||
|
|
||||||
// binding.splashProgress.visibility = View.GONE
|
binding.scanInput.visibility = View.VISIBLE
|
||||||
binding.mainToolbar.toolbarTitle.text = getString(R.string.verticket)
|
binding.mainToolbar.toolbarTitle.text = getString(R.string.verticket)
|
||||||
binding.splashProgress.visibility = View.GONE
|
binding.splashProgress.visibility = View.GONE
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,20 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/verdnatura_black">
|
android:background="@color/verdnatura_black">
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/scan_input"
|
||||||
|
style="@style/ScanLineTextSearch"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:textColorHint="@android:color/white"
|
||||||
|
android:hint="@string/Escaneaetiqueta"
|
||||||
|
android:inputType="textVisiblePassword"
|
||||||
|
android:lines="1"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/main_toolbar"/>
|
||||||
|
|
||||||
' <include
|
' <include
|
||||||
android:id="@+id/main_toolbar"
|
android:id="@+id/main_toolbar"
|
||||||
layout="@layout/toolbar_fragment"
|
layout="@layout/toolbar_fragment"
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
android:layout_width="@dimen/semaforo_next_to_ticket"
|
android:layout_width="@dimen/semaforo_next_to_ticket"
|
||||||
android:layout_height="@dimen/semaforo_next_to_ticket"
|
android:layout_height="@dimen/semaforo_next_to_ticket"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="2dp"
|
android:layout_marginLeft="1dp"
|
||||||
android:background="@drawable/background_and_round_collection_fragment" />
|
android:background="@drawable/background_and_round_collection_fragment" />
|
||||||
|
|
||||||
|
|
||||||
|
@ -116,8 +116,7 @@
|
||||||
android:layout_width="@dimen/semaforo_next_to_ticket"
|
android:layout_width="@dimen/semaforo_next_to_ticket"
|
||||||
android:layout_height="@dimen/semaforo_next_to_ticket"
|
android:layout_height="@dimen/semaforo_next_to_ticket"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="24dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginBottom="1dp"
|
|
||||||
android:background="@drawable/background_and_round_collection_fragment" />
|
android:background="@drawable/background_and_round_collection_fragment" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
@ -125,7 +124,7 @@
|
||||||
android:layout_width="@dimen/semaforo_next_to_ticket"
|
android:layout_width="@dimen/semaforo_next_to_ticket"
|
||||||
android:layout_height="@dimen/semaforo_next_to_ticket"
|
android:layout_height="@dimen/semaforo_next_to_ticket"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="48dp"
|
android:layout_marginLeft="39dp"
|
||||||
android:background="@drawable/background_and_round_collection_fragment" />
|
android:background="@drawable/background_and_round_collection_fragment" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue