Output: error: resource style/TextAppearance.Compat.Notification.Info (aka package_name:style/TextAppearance.Compat.Notification.Info) not found

前提是你 提交于 2019-11-29 13:34:53

I think you should try adding style as below in your styles.xml file. For me it worked perfectly, for the similar kind of issue.

<style name="TextAppearance.AppCompat.Notification">
    <item name="android:textSize">12sp</item>
    <item name="android:textColor">?android:attr/textColorWhichYouWant</item>
</style>

Or you can use @style/TextAppearance.AppCompat.Notification with TextView in XML file:

<TextView
    android:id="@+id/tvNotification"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:maxLines="1"
    android:text="Test notification"
    android:textAppearance="@style/TextAppearance.AppCompat.Notification" />

Please check this link, You can create your custom notification layout.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!