Cześć, chcę wyświetlić fragment
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#43E7E7"
tools:context=".views.home.HomeFragment">
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
problem jest tak, że wyświetla się on tylko w jakiś 60% ekranu. 60% fragmentu ma zmieniony kolor tła na #092323 a reszta fragmentu jest biała. Co może być nie tak w tym kodzie? ?
class HomeFragment : Fragment() {
private lateinit var binding: FragmentHomeBinding
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
binding = FragmentHomeBinding.inflate(inflater)
return binding.root
}
}