i am wondering that how i can save the whole view(horizontally and vertically scrollable) as image or pdf? is there a way of doing same...? my layout(below) contains a table which i wanna save ! i have searched google but i was not able to figure out the way for doing that
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DetailedAttendance"
android:background="@drawable/animation_back_grad1"
android:padding="5dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="50dp">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical" >
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:fadeScrollbars="false">
<TableLayout
android:id="@+id/detailedAttendanceTable"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</HorizontalScrollView>
</ScrollView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/exitApp1"
android:layout_weight=".5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/reg_button_back"
android:text="Exit"
android:textColor="#F3677C" />
<Button
android:id="@+id/back"
android:layout_weight=".5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/reg_button_back"
android:text="Back"
android:textColor="#F3677C" />
</LinearLayout>
</RelativeLayout>
any little help will be appereciated ! thanks :)