[SOLVED] Fragment inflate not intended xml file

Issue I have a problem that EditSleepPressureFactorFragment inflates other xml file fragment_sleep_record.xml. But my intention is to inflate fragment_edit_sleep_pressure.xml. A Spinner having an id "year_spinner" is in fragment_edit_sleep_pressure.xml but binding!!.yearSpinner code occure unsolved refference. And binding!!.startSleepYear code cause no error.

Continue reading

[SOLVED] Set duration for translate animation in xml

Issue I just started learning animations and I was wondering how can I set the duration of an animation (scale, translate, rotate etc..) in the XML file? This is my translate.xml resource file: <?xml version="1.0" encoding="utf-8"?> <translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromXDelta="-1000" android:toXDelta="0">

Continue reading