Please find xml for reference.I have 2 imageview in one relative layout. I want bitmap of relativelayout. Right now i am able to get bitmap using below code
But not getting both imageview image just getting only one image bitmap
Kindly request any suitable solution for that.
<FrameLayout
android:id="@+id/linImageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/linRecyclerAndAdsView">
<RelativeLayout
android:id="@+id/relImageView"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView xmlns:wsv="http://schemas.android.com/apk/res-auto"
android:id="@+id/iv_stickerview"
android:scaleType="fitXY"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true" />
<FrameLayout
android:id="@+id/vg_canvas"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ImageView
android:id="@+id/fetchimage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:src="@drawable/profile" />
</FrameLayout>
</RelativeLayout>
</FrameLayout>
this is my java code thats how i pass the bitmap.
relativeLayout.setDrawingCacheEnabled(true);
relativeLayout.buildDrawingCache();
bitmap = relativeLayout.getDrawingCache();
imagePath = Other.saveImage(bitmap);
Intent newIntent = new Intent(ActivityApp.this, com.aviary.android.feather.sdk.FeatherActivity.class);
newIntent.setData(Uri.parse(imagePath));
newIntent.putExtra(Constants.EXTRA_IN_API_KEY_SECRET, "-------------");
startActivityForResult(newIntent, 1);