사용자가 이렇게 attrs.xml 에 선언하고
<attr name="defalut_color" format="reference" />
Color.xml에서 이렇게 정의되어있습니다.
<color name="defalut_color_day">#FF3C3C3C</color>
<color name="defalut_color_night">#ffffff</color>
해당 referenece를 include 되어진 layout 내부에서 사용하려고하면 해당 layout 이 화면에 생성될때 죽습니다. 이유가 뭘까요??
<FrameLayout
android:id="@+id/Option_FL_ToggleField"
android:layout_width="640dp"
android:layout_height="109dp"
android:visibility="visible">
<include
layout="@layout/sub_option_toggleitem">
</include>
layout 내부에서는 이렇게 쓰고 있습니다. (include 하지 않고 사용하면 잘 동작합니다)
android:layout_marginStart="48dp"
android:text="Discription Text"
android:textColor="?attr/defalut_color"