diff options
Diffstat (limited to 'WordPress/src/main/res/layout/note_block_header.xml')
-rw-r--r-- | WordPress/src/main/res/layout/note_block_header.xml | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/note_block_header.xml b/WordPress/src/main/res/layout/note_block_header.xml new file mode 100644 index 000000000..f41bc5b7e --- /dev/null +++ b/WordPress/src/main/res/layout/note_block_header.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/white"> + + <LinearLayout + android:id="@+id/header_root_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?android:selectableItemBackground" + android:clickable="true" + android:orientation="horizontal" + android:gravity="center_vertical" + android:paddingBottom="@dimen/margin_medium" + android:paddingLeft="@dimen/margin_extra_large" + android:paddingRight="@dimen/margin_extra_large" + android:paddingTop="@dimen/comment_avatar_margin_top"> + + <org.wordpress.android.widgets.WPNetworkImageView + android:id="@+id/header_avatar" + android:layout_width="@dimen/avatar_sz_small" + android:layout_height="@dimen/avatar_sz_small" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/notifications_adjusted_font_margin" + android:layout_marginStart="@dimen/notifications_adjusted_font_margin" + android:orientation="vertical"> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/header_user" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:includeFontPadding="false" + android:singleLine="true" + android:textColor="@color/grey_dark" + android:textSize="@dimen/text_sz_large" + tools:text="Bob Ross" /> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/header_snippet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:includeFontPadding="false" + android:singleLine="true" + android:textColor="@color/blue_medium" + android:textSize="@dimen/text_sz_large" + tools:text="www.bobross.com" /> + + </LinearLayout> + </LinearLayout> + </LinearLayout> + <!-- Two footer views, one is used specifically for comments --> + <LinearLayout + android:id="@+id/header_footer" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <View + android:layout_width="fill_parent" + android:layout_height="1dp" + android:background="@drawable/notifications_list_divider_full_width" /> + + <View + android:layout_width="match_parent" + android:layout_height="@dimen/margin_medium" /> + + <View + android:layout_width="fill_parent" + android:layout_height="1dp" + android:background="@drawable/notifications_list_divider_full_width" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/header_footer_comment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/white" + android:orientation="vertical" + android:visibility="gone"> + + <View + android:layout_width="fill_parent" + android:layout_height="1dp" + android:layout_marginLeft="@dimen/margin_extra_large" + android:layout_marginRight="@dimen/margin_extra_large" + android:background="@color/grey_lighten_30" /> + </LinearLayout> +</LinearLayout>
\ No newline at end of file |