Version 9.2.1 Modificado fragment

This commit is contained in:
Sergio De la torre 2022-10-06 08:23:57 +02:00
parent ddb4ab09c4
commit 733489514a
3 changed files with 21 additions and 8 deletions

View File

@ -5,7 +5,7 @@ import android.os.Bundle
import android.view.View
import android.view.inputmethod.EditorInfo
import es.verdnatura.R
import es.verdnatura.databinding.FragmentControladorBinding
import es.verdnatura.databinding.FragmentGeneralBlackBinding
import es.verdnatura.domain.ConstAndValues
import es.verdnatura.presentation.base.BaseFragment
import es.verdnatura.presentation.common.OnCollectionSelectedListener
@ -14,13 +14,13 @@ import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
class ShowTicketFragment(var menuOrigin: String) :
BaseFragment<FragmentControladorBinding, ShowTicketViewModel>(
BaseFragment<FragmentGeneralBlackBinding, ShowTicketViewModel>(
ShowTicketViewModel::class
) {
private var goBack: Boolean = false
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 = ""
@ -35,7 +35,7 @@ class ShowTicketFragment(var menuOrigin: String) :
override fun init() {
// binding.splashProgress.visibility = View.GONE
binding.scanInput.visibility = View.VISIBLE
binding.mainToolbar.toolbarTitle.text = getString(R.string.verticket)
binding.splashProgress.visibility = View.GONE

View File

@ -9,6 +9,20 @@
android:layout_height="match_parent"
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
android:id="@+id/main_toolbar"
layout="@layout/toolbar_fragment"

View File

@ -107,7 +107,7 @@
android:layout_width="@dimen/semaforo_next_to_ticket"
android:layout_height="@dimen/semaforo_next_to_ticket"
android:layout_centerVertical="true"
android:layout_marginLeft="2dp"
android:layout_marginLeft="1dp"
android:background="@drawable/background_and_round_collection_fragment" />
@ -116,8 +116,7 @@
android:layout_width="@dimen/semaforo_next_to_ticket"
android:layout_height="@dimen/semaforo_next_to_ticket"
android:layout_centerVertical="true"
android:layout_marginLeft="24dp"
android:layout_marginBottom="1dp"
android:layout_marginLeft="20dp"
android:background="@drawable/background_and_round_collection_fragment" />
<View
@ -125,7 +124,7 @@
android:layout_width="@dimen/semaforo_next_to_ticket"
android:layout_height="@dimen/semaforo_next_to_ticket"
android:layout_centerVertical="true"
android:layout_marginLeft="48dp"
android:layout_marginLeft="39dp"
android:background="@drawable/background_and_round_collection_fragment" />
</RelativeLayout>