06/23/2022, 3:11 AM
ViewGroup.addview() is working but child view is not showing I develop an android app. I want to add TextView(s) to a LinearLayout dynamically. No error occurred but TextView is not showing. I thought sleep_records_container' height might be 0dp and I tried to set 300dp but nothing showed in this container. How do I solve this problem? Below Fragment is aim to show sleep records in one month. SleepRecordFragment.kt class SleepRecordFragment: Fragment() { @SuppressLint("SimpleDateFormat") override fun onCreateView( inflater:...