Adding style and form for creating attestation
This commit is contained in:
@ -15,6 +15,8 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
val navController = findNavController(R.id.nav_host_fragment)
|
||||
|
||||
navController
|
||||
actionBar?.hide()
|
||||
navView.setupWithNavController(navController)
|
||||
navView.setBackgroundColor(resources.getColor(R.color.itemBackground, theme))
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.TextView
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.lifecycle.Observer
|
||||
import androidx.lifecycle.ViewModelProviders
|
||||
@ -22,9 +21,7 @@ class AddFragment : Fragment() {
|
||||
homeViewModel =
|
||||
ViewModelProviders.of(this).get(AddViewModel::class.java)
|
||||
val root = inflater.inflate(R.layout.fragment_add_attestation, container, false)
|
||||
val textView: TextView = root.findViewById(R.id.text_home)
|
||||
homeViewModel.text.observe(viewLifecycleOwner, Observer {
|
||||
textView.text = it
|
||||
})
|
||||
return root
|
||||
}
|
||||
|
Reference in New Issue
Block a user