Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
89d8794f55 | |||
60110e8e68 | |||
97fb903db3 | |||
636b2a22fc | |||
333d9d6227 | |||
44e17c69de | |||
f6d313e8a3 | |||
064a29139f | |||
644ff7ae02 |
@ -15,7 +15,7 @@ class AccessLogAdapter(private val accessLogs: List<AccessLog>) : RecyclerView.A
|
|||||||
val readerId: TextView = itemView.findViewById(R.id.reader_id)
|
val readerId: TextView = itemView.findViewById(R.id.reader_id)
|
||||||
val accessType: TextView = itemView.findViewById(R.id.access_type)
|
val accessType: TextView = itemView.findViewById(R.id.access_type)
|
||||||
}
|
}
|
||||||
|
//.
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AccessLogViewHolder {
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AccessLogViewHolder {
|
||||||
val view = LayoutInflater.from(parent.context).inflate(R.layout.item_access_log, parent, false)
|
val view = LayoutInflater.from(parent.context).inflate(R.layout.item_access_log, parent, false)
|
||||||
return AccessLogViewHolder(view)
|
return AccessLogViewHolder(view)
|
||||||
|
@ -34,7 +34,7 @@ class AdminFragment : Fragment(R.layout.fragment_admin) {
|
|||||||
|
|
||||||
setupUI()
|
setupUI()
|
||||||
}
|
}
|
||||||
|
//.
|
||||||
private fun setupUI() {
|
private fun setupUI() {
|
||||||
binding.viewEmployeeInfo.setOnClickListener {
|
binding.viewEmployeeInfo.setOnClickListener {
|
||||||
val login = binding.employeeLogin.text.toString()
|
val login = binding.employeeLogin.text.toString()
|
||||||
|
@ -22,7 +22,7 @@ class RootActivity : AppCompatActivity() {
|
|||||||
navController.setGraph(R.navigation.nav_graph) // Устанавливаем граф навигации
|
navController.setGraph(R.navigation.nav_graph) // Устанавливаем граф навигации
|
||||||
}
|
}
|
||||||
|
|
||||||
// Настраиваем кнопку "Назад"
|
// Настройка кнопки "Назад"
|
||||||
onBackPressedDispatcher.addCallback(
|
onBackPressedDispatcher.addCallback(
|
||||||
this,
|
this,
|
||||||
object : OnBackPressedCallback(true) {
|
object : OnBackPressedCallback(true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user