幅全体をカバーしていない、ここに従うようカスタム通知レイアウトiはNotificationManagerのカスタムレイアウトを作成しようとしています
<?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