Список всего для админа начало
This commit is contained in:
parent
59d6519f56
commit
122ef2efce
@ -36,6 +36,10 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
||||||
|
implementation("androidx.legacy:legacy-support-v4:1.0.0")
|
||||||
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.8.7")
|
||||||
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7")
|
||||||
|
implementation("androidx.fragment:fragment-ktx:1.5.6")
|
||||||
defaultLibrary()
|
defaultLibrary()
|
||||||
|
|
||||||
implementation(Dependencies.AndroidX.activity)
|
implementation(Dependencies.AndroidX.activity)
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
package ru.myitschool.work.ui.entrylast
|
||||||
|
|
||||||
|
import androidx.fragment.app.viewModels
|
||||||
|
import android.os.Bundle
|
||||||
|
import androidx.fragment.app.Fragment
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import ru.myitschool.work.R
|
||||||
|
import ru.myitschool.work.databinding.FragmentEntryListBinding
|
||||||
|
import ru.myitschool.work.databinding.FragmentLoginBinding
|
||||||
|
import ru.myitschool.work.ui.login.LoginViewModel
|
||||||
|
|
||||||
|
class EntryListFragment : Fragment(R.layout.fragment_entry_list) {
|
||||||
|
|
||||||
|
private var _binding: FragmentEntryListBinding? = null
|
||||||
|
private val binding: FragmentEntryListBinding get() = _binding!!
|
||||||
|
|
||||||
|
private val viewModel: LoginViewModel by viewModels()
|
||||||
|
|
||||||
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
_binding = FragmentEntryListBinding.bind(view)
|
||||||
|
|
||||||
|
}
|
||||||
|
private fun subscribe(){
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun initCallback(){
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onDestroyView() {
|
||||||
|
_binding = null
|
||||||
|
super.onDestroyView()
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package ru.myitschool.work.ui.entrylast
|
||||||
|
|
||||||
|
import androidx.lifecycle.ViewModel
|
||||||
|
|
||||||
|
class EntryListViewModel : ViewModel() {
|
||||||
|
// TODO: Implement the ViewModel
|
||||||
|
}
|
13
app/src/main/res/layout/fragment_entry_list.xml
Normal file
13
app/src/main/res/layout/fragment_entry_list.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
tools:context=".ui.entrylast.EntryListFragment">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:text="Hello" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
@ -4,4 +4,5 @@ plugins {
|
|||||||
kotlinJvm version Version.Kotlin.language apply false
|
kotlinJvm version Version.Kotlin.language apply false
|
||||||
kotlinAnnotationProcessor version Version.Kotlin.language apply false
|
kotlinAnnotationProcessor version Version.Kotlin.language apply false
|
||||||
id("com.google.dagger.hilt.android") version "2.51.1" apply false
|
id("com.google.dagger.hilt.android") version "2.51.1" apply false
|
||||||
|
id("org.jetbrains.kotlin.android") version "1.9.24" apply false
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user