0
안드로이드 스튜디오 3.0데이터 바인딩 : 특성은
classpath 'com.android.tools.build:gradle:3.0.1'
내가 데이터 바인딩을 사용하려면
dataBinding {
enabled = true
}
을 설정 Androld 네임 스페이스 접두사가 없습니다. 여기
내 XML 레이아웃 :
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<data>
<variable
name="offer" type="com.myproject.customer.Offer" />
</data>
</android.support.constraint.ConstraintLayout>
하지만 얻을 오류 :
Attribute is missing the Android namespace prefix