전체 폭을 커버하지 않는, 여기에 따를사용자 정의 알림 레이아웃 내가 노 티피 케이션의 사용자 지정 레이아웃을 만들려고하고
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layoutnotification"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="3dp"
android:background="@color/btn_bg_blue">
<ImageView android:id="@+id/image"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_height= "50dp"
android:layout_width= "50dp"
/>
<TextView android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/image"
style="@style/NotificationTitle" />
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/image"
android:layout_below="@id/title"
style="@style/NotificationText" />
</RelativeLayout>
현재 알림이 나타납니다 내 레이아웃 파일이지만, 문제는 알림 레이아웃입니다 비록 내가 푸른 색이 전체 너비를 커버하고 싶다면 layout_width to fill_parent
을 설정해도 전체 너비 (오른쪽)를 커버하지 않습니다.
에뮬레이터 또는 사용자 지정 ROM에서이 동작이 발생합니까? – waqaslam
나는 에뮬레이터와 HTC 휴대 전화에서도 시도했는데, 위의 방법으로 에뮬레이터에서 나온 것입니다. – Hunt
혹시 알아 냈습니까? 나는 똑같은 문제를 겪고있다. – Dan