<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@color/post_bg">

    <com.google.android.gms.ads.AdView
        xmlns:ads="http://schemas.android.com/apk/res-auto"
        android:id="@+id/adView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@color/post_image_background"
        ads:adSize="SMART_BANNER"
        ads:adUnitId="@string/unit_id" />

    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@+id/adView">

        <ImageView
            android:id="@+id/image"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:scaleType="fitXY"
            android:adjustViewBounds="true"/>

        <ScrollView
            android:id="@+id/scroll"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:clipToPadding="false"
            android:paddingTop="175dp">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <android.support.v7.widget.CardView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@color/white"
                    app:cardElevation="@dimen/spacing_medium"
                    app:cardCornerRadius="3dp"
                    app:cardUseCompatPadding="true"
                    app:cardBackgroundColor="@color/white">

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="fill_parent"
                        android:layout_marginLeft="@dimen/spacing_large"
                        android:layout_marginRight="@dimen/spacing_large"
                        android:orientation="vertical">

                        <TextView
                            android:id="@+id/title"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="@dimen/spacing_large"
                            android:textAppearance="@style/TextAppearance.AppCompat.Headline" />

                        <LinearLayout
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="@dimen/spacing_medium"
                            android:layout_marginRight="@dimen/spacing_large"
                            android:paddingBottom="@dimen/post_single_name_margin">

                            <com.android.volley.toolbox.NetworkImageView
                                android:id="@+id/profilePic"
                                android:layout_width="@dimen/post_item_profile_pic_small"
                                android:layout_height="@dimen/post_item_profile_pic_small"
                                android:scaleType="fitCenter"></com.android.volley.toolbox.NetworkImageView>

                            <LinearLayout
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:orientation="vertical"
                                android:paddingLeft="@dimen/post_item_profile_info_padd"
                                android:paddingRight="@dimen/post_item_profile_info_padd">


                                <TextView
                                    android:id="@+id/post_author"
                                    android:layout_width="fill_parent"
                                    android:layout_height="wrap_content"
                                    android:textSize="@dimen/post_single_author_size"
                                    android:textStyle="bold" />

                                <TextView
                                    android:id="@+id/timestamp"
                                    android:layout_width="fill_parent"
                                    android:layout_height="wrap_content"
                                    android:textColor="@color/timestamp"
                                    android:textSize="@dimen/post_item_timestamp" />
                            </LinearLayout>
                        </LinearLayout>

                        <WebView
                            android:id="@+id/descriptionHTML"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:visibility="gone"></WebView>

                        <TextView
                            android:id="@+id/description"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:textAppearance="@style/TextAppearance.AppCompat.Body1" />

                        <Button
                            android:id="@+id/btnViewWeb"
                            android:layout_width="fill_parent"
                            android:layout_height="32dp"
                            android:layout_marginBottom="@dimen/spacing_medium"
                            android:layout_marginTop="@dimen/post_single_padding"
                            android:paddingTop="1dp"
                            android:paddingBottom="1dp"
                            android:textSize="13sp"
                            android:background="@drawable/btn_bordered"
                            android:text="@string/read_this_article"
                            android:textAllCaps="true"
                            android:textColor="@color/black"
                            android:visibility="gone" />
                        <View
                            android:id="@+id/Divider"
                            android:layout_width="fill_parent"
                            android:layout_height="1dp"
                            android:background="@android:color/darker_gray"/>

                        <Button
                            android:id="@+id/btnViewComments"
                            android:layout_width="fill_parent"
                            android:layout_height="32dp"
                            android:layout_marginBottom="@dimen/post_single_padding"
                            android:layout_marginTop="@dimen/spacing_medium"
                            android:paddingTop="1dp"
                            android:paddingBottom="1dp"
                            android:textSize="13sp"
                            android:background="@drawable/btn_bordered"
                            android:textAllCaps="true"
                            android:textColor="@color/black"
                            android:visibility="visible" />

                    </LinearLayout>

                </android.support.v7.widget.CardView>

                <ImageButton
                    android:id="@+id/fab"
                    style="@style/FabStyle"
                    android:layout_gravity="top|end"
                    android:layout_marginRight="@dimen/spacing_xlarge" />

            </FrameLayout>

        </ScrollView>

        <include
            android:id="@+id/toolbar"
            layout="@layout/toolbar" />

    </FrameLayout>

</RelativeLayout><!-- From: file:/D:/releases/BG-V2.2/BlogPress/app/src/main/res/layout/activity_post_view.xml -->