3
ViewStub를 통해 사용자 정의 속성을 대상 레이아웃의 루트 요소로 전달할 수 있습니까? 그래서 같이 :ViewStub with 사용자 정의 View 레이아웃의 속성보기
<ViewStub
android:layout="@layout/custom_view"
app:customAttr="12345"
/>
custom_view.xml는 경우 다음의 AttributeSet에 :
<blah.CustomView ...>
...
</blah.CustomView>
내가 그렇게하려고
이 CustomView.java는 "customAttr 응용 프로그램을"하지 않습니다.내가 직접있는 CustomView를 사용
는 ViewStub<blah.Custom app:customAttr="12345"/>
없이 속성은 확인 속성 세트로 가져옵니다.
하지만 더 이상 게으르지 않습니다.
모든 솔루션?
고마워요, 유리.