Closed Nawanop-AMNB closed 2 years ago
Addition Detail: I do workaround by custom TextAppearance style workaround ref: https://stackoverflow.com/questions/41727729/fatal-exception-java-lang-unsupportedoperationexception-failed-to-resolve-attr
styles.xml
<style name="BottomSheetTextView" parent="@android:style/TextAppearance">
<item name="android:textColorLink">@color/primary_color</item>
<item name="android:textColorHighlight">@color/primary_color</item>
<item name="android:textColorHint">@color/secondary_color</item>
</style>
some_inflated_layout.xml
<!-- add theme with workaround style -->
<TextView
android:id="@+id/aboutName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="About"
android:textColor="@color/white"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:theme="@style/BottomSheetTextView"
/>
Steel here
vin., 1 iul. 2022, 23:09 Nawanop-AMNB @.***> a scris:
Addition Detail: I do workaround by custom TextAppearance style workaround ref: https://stackoverflow.com/questions/41727729/fatal-exception-java-lang-unsupportedoperationexception-failed-to-resolve-attr
styles.xml
<style name="BottomSheetTextView" ***@***.***:style/TextAppearance"> <item ***@***.***/primary_color</item> <item ***@***.***/primary_color</item> <item ***@***.***/secondary_color</item> </style>
some_inflated_layout.xml
<TextView android:id="@+id/aboutName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="About" ***@***.***/white" android:textSize="24sp" android:textStyle="bold" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" ***@***.***/BottomSheetTextView" />
— Reply to this email directly, view it on GitHub https://github.com/maxkeppeler/sheets/issues/115#issuecomment-1172715130, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATJ6BRVX6WNOXOAIMEOFNW3VR5NBTANCNFSM52NXPMWQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I can not replicate this issue with the steps. It shows the added TextView in custom sheet sample without an issue. What did you mean with "inflate as guide but with ViewBinding style"?
Describe the bug Error tell that it cannot inflate textview
Library Version: 2.2.8
To Reproduce Steps to reproduce the behavior:
Expected behavior able to inflate textview in custom sheet
Affected Device(s):
Additional context here is error log