|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + android:id="@+id/jad_root_view" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="64dp" |
| 6 | + android:orientation="horizontal" |
| 7 | + android:padding="10dp"> |
| 8 | + |
| 9 | + <ImageView |
| 10 | + android:id="@+id/jad_icon" |
| 11 | + android:layout_width="44dp" |
| 12 | + android:layout_height="44dp" |
| 13 | + android:layout_gravity="center" |
| 14 | + android:layout_marginRight="18dp" |
| 15 | + android:layout_marginEnd="18dp" |
| 16 | + android:background="#0A9789" |
| 17 | + android:duplicateParentState="false" |
| 18 | + android:scaleType="center" /> |
| 19 | + |
| 20 | + <RelativeLayout |
| 21 | + android:layout_width="wrap_content" |
| 22 | + android:layout_height="wrap_content" |
| 23 | + android:layout_weight="1"> |
| 24 | + |
| 25 | + <TextView |
| 26 | + android:id="@+id/jad_desc" |
| 27 | + android:layout_width="fill_parent" |
| 28 | + android:layout_height="wrap_content" |
| 29 | + android:ellipsize="end" |
| 30 | + android:singleLine="true" |
| 31 | + android:textColor="#000000" |
| 32 | + android:textSize="14sp"/> |
| 33 | + |
| 34 | + <LinearLayout |
| 35 | + android:id="@+id/jad_download_success" |
| 36 | + android:layout_width="match_parent" |
| 37 | + android:layout_height="wrap_content" |
| 38 | + android:layout_below="@+id/jad_desc" |
| 39 | + android:orientation="horizontal" |
| 40 | + android:visibility="gone"> |
| 41 | + <TextView |
| 42 | + android:id="@+id/download_success_size" |
| 43 | + android:layout_width="wrap_content" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:layout_marginRight="12dp" |
| 46 | + android:layout_marginEnd="12dp" |
| 47 | + android:ellipsize="end" |
| 48 | + android:gravity="start|center" |
| 49 | + android:singleLine="true" |
| 50 | + android:textColor="#000000" |
| 51 | + android:textSize="12sp"/> |
| 52 | + <TextView |
| 53 | + android:id="@+id/jad_download_success_status" |
| 54 | + android:layout_width="wrap_content" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:ellipsize="end" |
| 57 | + android:gravity="start|center" |
| 58 | + android:singleLine="true" |
| 59 | + android:textColor="#000000" |
| 60 | + android:textSize="11sp"/> |
| 61 | + </LinearLayout> |
| 62 | + |
| 63 | + <LinearLayout |
| 64 | + android:id="@+id/jad_download_text" |
| 65 | + android:layout_width="match_parent" |
| 66 | + android:layout_height="wrap_content" |
| 67 | + android:layout_below="@+id/jad_desc" |
| 68 | + android:orientation="horizontal" |
| 69 | + android:visibility="visible"> |
| 70 | + |
| 71 | + <TextView |
| 72 | + android:id="@+id/jad_download_size" |
| 73 | + android:layout_width="0dp" |
| 74 | + android:layout_height="wrap_content" |
| 75 | + android:layout_weight="3" |
| 76 | + android:ellipsize="end" |
| 77 | + android:gravity="start|center" |
| 78 | + android:maxLines="1" |
| 79 | + android:textColor="#000000" |
| 80 | + android:textSize="11sp"/> |
| 81 | + |
| 82 | + <TextView |
| 83 | + android:id="@+id/jad_download_status" |
| 84 | + android:layout_width="0dp" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + android:layout_weight="2" |
| 87 | + android:ellipsize="end" |
| 88 | + android:gravity="end|center" |
| 89 | + android:singleLine="true" |
| 90 | + android:textColor="#000000" |
| 91 | + android:textSize="11sp"/> |
| 92 | + </LinearLayout> |
| 93 | + </RelativeLayout> |
| 94 | + |
| 95 | + <TextView |
| 96 | + android:id="@+id/jad_action" |
| 97 | + android:layout_width="55dp" |
| 98 | + android:layout_height="30dp" |
| 99 | + android:layout_gravity="end|center" |
| 100 | + android:layout_marginLeft="18dp" |
| 101 | + android:layout_marginStart="18dp" |
| 102 | + android:layout_weight="0" |
| 103 | + android:gravity="center" |
| 104 | + android:background="@drawable/jpush_btn_bg_green_playable" |
| 105 | + android:textColor="#FFFFFF" |
| 106 | + android:textSize="12sp"/> |
| 107 | +</LinearLayout> |
0 commit comments