I want to use data binding in my android studio project if its available in production. I am searching online and find references to a beta copy which I clearly dont want. But i read here that data binding is apart of api 23 and built into android studio ? how do i use it if this is true ? I cant find it on jcenter, is it something thats built into the IDE ?
I created a minimum sdk project of 21 and I'd like to use databinding. This code in xml wont compile:
<TextView android:text="@{user.name}"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:visibility="@user.isAdmin ? View.VISIBLE : View.GONE}"/>
the exact error is on the visibility line and it says "Missing /"
Does it only work on api 23 ? wouldn't this break on older devices then ?