아래 작성해야 할보기가 있습니다. 다음 XML을 가지고 있지만 텍스트가 나타나지 않고 높이가 내용을 래핑하는 대신 전체 부모를 채 웁니다. 아래 스크린 샷을 만드는 데 도움을 주시면 감사하겠습니다.안드로이드보기에서 둥근 사각형 안에 텍스트를 어떻게 삽입합니까?
playing.xml
<View
android:background="@drawable/rounded_edges"
android:text="Current Track"
android:textColor="#FFFFFF"
android:id="@+id/current_track"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:editable="false">
</View>
rounded_edges.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#1F1F1F"/>
<corners android:radius="5px"/>
<padding android:left="20dp" android:top="20dp" android:right="20dp" android:bottom="20dp" />
</shape>
예제를 제공 할 수 있습니까? – Bear