parent
a52ee71e35
commit
2c8a575a3b
@ -0,0 +1,8 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<shape |
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
|
android:shape="rectangle"> |
||||||
|
|
||||||
|
<solid android:color="@color/color_background_dark" /> |
||||||
|
|
||||||
|
</shape> |
@ -1,39 +1,47 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
android:orientation="vertical" |
android:orientation="vertical" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
|
android:paddingLeft="16dp" |
||||||
|
android:paddingRight="16dp" |
||||||
android:layout_height="wrap_content"> |
android:layout_height="wrap_content"> |
||||||
|
|
||||||
<RelativeLayout |
<RelativeLayout |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
android:id="@+id/notification_top_bar"> |
android:id="@+id/notification_top_bar"> |
||||||
|
|
||||||
<ImageView |
<ImageView |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:id="@+id/notification_icon" |
android:id="@+id/notification_icon" |
||||||
android:paddingTop="@dimen/notification_icon_vertical_padding" |
android:paddingRight="10dp" |
||||||
android:paddingBottom="@dimen/notification_icon_vertical_padding" |
android:paddingLeft="24dp" |
||||||
android:paddingLeft="@dimen/notification_icon_left_padding" |
app:srcCompat="@drawable/ic_repeat_24dp" |
||||||
android:paddingRight="@dimen/status_avatar_padding" |
android:tint="?attr/colorAccent" /> |
||||||
android:tint="?attr/notification_icon_tint" /> |
|
||||||
|
|
||||||
<TextView |
<TextView |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:id="@+id/notification_text" |
android:id="@+id/notification_text" |
||||||
|
android:textColor="?android:textColorSecondary" |
||||||
android:layout_centerVertical="true" |
android:layout_centerVertical="true" |
||||||
|
android:maxLines="1" |
||||||
|
android:ellipsize="end" |
||||||
|
android:text="Someone favourited your status" |
||||||
android:layout_toRightOf="@id/notification_icon" /> |
android:layout_toRightOf="@id/notification_icon" /> |
||||||
|
|
||||||
</RelativeLayout> |
</RelativeLayout> |
||||||
|
|
||||||
<TextView |
<TextView |
||||||
android:layout_width="wrap_content" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:id="@+id/notification_content" |
android:id="@+id/notification_content" |
||||||
android:paddingLeft="@dimen/notification_avatar_column_width" |
android:paddingLeft="58dp" |
||||||
android:textColor="?attr/notification_content" |
android:text="Example status here" |
||||||
android:paddingBottom="8dp" /> |
android:textColor="?android:textColorTertiary" |
||||||
|
android:paddingBottom="10dp" /> |
||||||
|
|
||||||
</LinearLayout> |
</LinearLayout> |
Loading…
Reference in new issue