| <?xml version="1.0" encoding="utf-8"?> |
| |
| <!-- |
| comment detail displayed from both the notification list and the comment list |
| --> |
| |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@color/grey_light"> |
| |
| <ScrollView |
| android:id="@+id/scroll_view" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_above="@+id/layout_bottom" |
| android:fillViewport="true"> |
| |
| <LinearLayout |
| android:id="@+id/comment_content_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| |
| <RelativeLayout |
| android:id="@+id/comment_content" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingLeft="@dimen/margin_extra_large" |
| android:paddingRight="@dimen/margin_extra_large" |
| android:paddingTop="@dimen/margin_large" |
| android:background="@color/white"> |
| |
| <org.wordpress.android.widgets.WPNetworkImageView |
| android:id="@+id/image_avatar" |
| style="@style/ReaderImageView.Avatar" |
| android:layout_marginRight="@dimen/margin_large" |
| android:layout_marginTop="@dimen/margin_small" /> |
| |
| <org.wordpress.android.widgets.WPTextView |
| android:id="@+id/text_name" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_toLeftOf="@+id/text_date" |
| android:layout_toRightOf="@+id/image_avatar" |
| android:background="?android:selectableItemBackground" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="@color/reader_hyperlink" |
| android:textSize="@dimen/text_sz_extra_large" |
| tools:text="text_name" /> |
| |
| <org.wordpress.android.widgets.WPTextView |
| android:id="@+id/text_post_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignLeft="@+id/text_name" |
| android:layout_below="@+id/text_name" |
| android:layout_toLeftOf="@+id/text_status" |
| android:background="?android:selectableItemBackground" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:paddingBottom="@dimen/margin_extra_small" |
| android:paddingTop="@dimen/margin_extra_small" |
| android:textColor="@color/grey_darken_10" |
| android:textSize="@dimen/text_sz_large" |
| tools:text="text_post_title" /> |
| |
| <org.wordpress.android.widgets.WPTextView |
| android:id="@+id/text_date" |
| style="@style/ReaderTextView.Date" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentRight="true" |
| android:layout_marginLeft="@dimen/margin_small" |
| android:layout_marginTop="@dimen/margin_small" |
| android:maxLines="1" |
| tools:text="date" /> |
| |
| <org.wordpress.android.widgets.WPTextView |
| android:id="@+id/text_status" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentRight="true" |
| android:layout_alignTop="@+id/text_post_title" |
| android:layout_marginLeft="@dimen/margin_small" |
| android:layout_marginTop="@dimen/margin_small" |
| android:textSize="@dimen/text_sz_small" |
| android:visibility="visible" |
| tools:text="STATUS" /> |
| </RelativeLayout> |
| |
| <!-- |
| textIsSelectable is set to false here to avoid |
| https://code.google.com/p/android/issues/detail?id=30961 |
| --> |
| <org.wordpress.android.widgets.WPTextView |
| android:id="@+id/text_content" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="@dimen/margin_large" |
| android:paddingBottom="@dimen/margin_large" |
| android:paddingLeft="@dimen/margin_extra_large" |
| android:paddingRight="@dimen/margin_extra_large" |
| android:textColor="@color/grey_dark" |
| android:textColorLink="@color/reader_hyperlink" |
| android:background="@color/white" |
| android:textIsSelectable="false" |
| android:textSize="@dimen/text_sz_large" |
| app:wpFontFamily="merriweather" |
| tools:text="text_content" /> |
| |
| <View android:layout_width="match_parent" |
| android:layout_height="1dp" |
| android:background="@drawable/notifications_list_divider_full_width" /> |
| </LinearLayout> |
| </ScrollView> |
| |
| <LinearLayout |
| android:id="@+id/layout_bottom" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:orientation="vertical"> |
| |
| <include |
| android:id="@+id/layout_comment_box" |
| layout="@layout/reader_include_comment_box" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" /> |
| </LinearLayout> |
| |
| <ProgressBar |
| android:id="@+id/progress_loading" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerInParent="true" |
| android:visibility="gone" /> |
| |
| </RelativeLayout> |