<?xml version="1.0" encoding="utf-8"?>
<ScrollView
    android:animateLayoutChanges="true"
    android:id="@+id/fragment_layout"
    android:visibility="visible"
    android:layout_width="match_parent"
    android:orientation="vertical"
    android:layout_height="match_parent"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <LinearLayout
        android:layout_width="match_parent"
        android:orientation="vertical"
        android:background="@color/greyish"
        android:layout_height="match_parent">

        <androidx.cardview.widget.CardView
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:layout_marginStart="20dp"
            android:layout_marginEnd="20dp"
            android:layout_marginBottom="10dp"
            android:layout_marginTop="10dp">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="horizontal">
                <ImageView
                    android:layout_width="50dp"
                    android:padding="10dp"
                    android:layout_height="match_parent"
                    android:src="@drawable/wallet"
                    android:layout_marginStart="10dp"
                    android:layout_marginLeft="10dp" />

                <TextView
                    android:id="@+id/credits"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:text="---"
                    android:layout_gravity="center"
                    android:layout_marginStart="5dp"
                    android:gravity="center"
                    android:textSize="18dp"
                    android:textStyle="bold"
                    android:layout_marginLeft="5dp" />

            </LinearLayout>

        </androidx.cardview.widget.CardView>

    <com.techstudio.anonymouscall.Views.CustomTextview
        android:visibility="gone"
        android:background="@drawable/backround"
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:gravity="center"
        android:layout_gravity="center"
        android:text="Buy Credits"
        android:textSize="20dp"
        android:textStyle="bold"
        android:textColor="@color/grey_text" />

    <View
        android:visibility="gone"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:background="@color/grey_line" />


        <LinearLayout
            android:id="@+id/purchase_layout"
            android:layout_width="match_parent"
            android:background="@color/white"
            android:orientation="vertical"
            android:layout_marginStart="10dp"
            android:layout_marginEnd="10dp"
            android:layout_height="wrap_content">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/productList_productPackageList"
                android:scrollbars="vertical"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="visible" />
        </LinearLayout>

    <LinearLayout
        android:background="@color/greyish"
        android:layout_width="match_parent"
        android:paddingBottom="10dp"
        android:paddingTop="10dp"
        android:layout_marginStart="7dp"
        android:layout_marginEnd="7dp"
        android:orientation="vertical"
        android:layout_height="wrap_content">

        <com.techstudio.anonymouscall.nativetemplates.TemplateView
            android:id="@+id/native_ad"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:gnt_template_type="@layout/gnt_medium_template_view"/>

    </LinearLayout>

    <androidx.cardview.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:gravity="center"
        android:layout_gravity="center"
        android:text="Earn free Credits"
        android:textSize="20dp"
        android:textStyle="bold"
        android:layout_marginStart="20dp"
        android:layout_marginEnd="20dp"
        android:textColor="@color/grey_text">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="@string/earn_free_credits"
            android:gravity="center"
            android:textSize="18dp"
            android:textStyle="bold"/>

    </androidx.cardview.widget.CardView>

    <LinearLayout
        android:layout_marginBottom="50dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/greyish"
        android:orientation="vertical">

        <RelativeLayout
            android:layout_width="match_parent"
            android:background="@color/white"
            android:padding="10dp"
            android:layout_marginStart="10dp"
            android:layout_marginEnd="10dp"
            android:layout_marginTop="10dp"
            android:layout_height="wrap_content">

            <com.techstudio.anonymouscall.Views.CustomTextview
                android:id="@+id/ads"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/advertisement"
                android:textSize="18dp"/>

            <com.techstudio.anonymouscall.Views.Textview_thin
                android:layout_below="@id/ads"
                android:layout_width="wrap_content"
                android:textColor="@color/grey_line"
                android:layout_height="wrap_content"
                android:text="@string/advertisement_sub_title"
                android:textSize="13dp"/>

            <ImageButton
                android:id="@+id/play_video"
                android:layout_width="50dp"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_play"
                style="@style/RbButton.Inverse"
                android:layout_alignParentEnd="true"
                android:layout_alignParentRight="true" />

        </RelativeLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:layout_marginStart="10dp"
            android:layout_marginEnd="10dp"
            android:background="@color/grey_line" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:background="@color/white"
            android:padding="10dp"
            android:layout_marginStart="10dp"
            android:layout_marginEnd="10dp"
            android:layout_height="wrap_content">

            <com.techstudio.anonymouscall.Views.CustomTextview
                android:id="@+id/refer"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Refer and earn"
                android:textSize="18dp"/>

            <com.techstudio.anonymouscall.Views.Textview_thin
                android:id="@+id/refer_description"
                android:layout_below="@id/refer"
                android:layout_width="wrap_content"
                android:textColor="@color/grey_line"
                android:layout_height="wrap_content"
                android:text="Get 100 points for every friend you invite"
                android:textSize="13dp"/>

            <ImageButton
                android:id="@+id/refer_friend"
                android:layout_width="50dp"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_telegram"
                style="@style/RbButton.Inverse"
                android:layout_alignParentEnd="true"
                android:layout_alignParentRight="true" />

        </RelativeLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:layout_marginStart="10dp"
            android:layout_marginEnd="10dp"
            android:background="@color/grey_line" />

    </LinearLayout>
    </LinearLayout>



</ScrollView>