upush_notification.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:background="#ffffff"
  5. android:layout_height="64dp">
  6. <RelativeLayout
  7. android:id="@+id/upush_notification1"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:layout_marginBottom="10dp"
  11. android:layout_marginTop="10dp">
  12. <ImageView
  13. android:id="@+id/notification_large_icon1"
  14. android:layout_width="48dp"
  15. android:layout_height="48dp"
  16. android:scaleType="fitXY" />
  17. <TextView
  18. android:id="@+id/notification_title"
  19. android:layout_width="fill_parent"
  20. android:layout_height="wrap_content"
  21. android:layout_marginLeft="10dp"
  22. android:layout_marginTop="3dp"
  23. android:layout_toRightOf="@+id/notification_large_icon1"
  24. android:maxLines="1"
  25. android:text="Title"
  26. android:textColor="#000000"
  27. android:textSize="16sp" />
  28. <TextView
  29. android:id="@+id/notification_text"
  30. android:layout_width="fill_parent"
  31. android:layout_height="wrap_content"
  32. android:layout_below="@+id/notification_title"
  33. android:layout_marginLeft="10dp"
  34. android:layout_marginTop="3dp"
  35. android:layout_toRightOf="@+id/notification_large_icon1"
  36. android:ellipsize="marquee"
  37. android:focusable="true"
  38. android:focusableInTouchMode="true"
  39. android:marqueeRepeatLimit="marquee_forever"
  40. android:scrollHorizontally="false"
  41. android:fadingEdge="horizontal"
  42. android:singleLine="true"
  43. android:text="Message"
  44. android:textColor="#000000" />
  45. <requestFocus />
  46. </RelativeLayout>
  47. <RelativeLayout
  48. android:id="@+id/upush_notification2"
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent"
  51. android:visibility="gone">
  52. <ImageView
  53. android:id="@+id/notification_large_icon2"
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent"
  56. android:scaleType="fitXY" />
  57. </RelativeLayout>
  58. </RelativeLayout>