오레오 버전에 위젯기능에 Button 을 만들고 Button위에 TextView을 넣어서 badge기능을 만들려하는데 Button 밑으로 TextView가 숨겨지네여..... 어떡해 해야되나여??? 오레오버전만 그러네여.. 그이하에서는 잘되는데...
<RelativeLayout
android:orientation="vertical"
android:background="@null"
android:id="@+id/rlayout2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
>
<Button
android:id="@+id/btn_widget"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="@drawable/selector_text_menu"
android:drawableTop="@drawable/selector_btn_line_widget"
android:background="@null"
android:text="" android:textSize="13dp"
/>
<TextView
android:id="@+id/textview_widget_badge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_count"
android:textColor="#FFFFFF"
android:text="" android:textSize="10dp"
android:textStyle="bold"
android:paddingLeft="3dp" android:paddingRight="3dp"
android:layout_alignParentRight="true"
android:layout_marginRight="25dp"
/>
</RelativeLayout>