Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <FrameLayout
- android:id="@+id/framelayout"
- android:layout_marginTop="30dip"
- android:layout_height="fill_parent"
- android:layout_width="fill_parent">
- <ImageView
- android:id="@+id/ImageView01"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"/>
- <TextView android:id="@+id/text_view"
- android:layout_marginTop="30dip"
- android:layout_width="wrap_content"
- android:maxLines="20"
- android:scrollbars="vertical"
- android:layout_height="wrap_content"/>
- </FrameLayout>
- FrameLayout view = (FrameLayout)findViewById(R.id.framelayout);
- view.setDrawingCacheEnabled(true);
- view.buildDrawingCache();
- Bitmap bm = view.getDrawingCache();
- FrameLayout view = (FrameLayout)findViewById(R.id.framelayout);
- Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(),
- Bitmap.Config.ARGB_8888);
- Canvas canvas = new Canvas(bitmap);
- view.draw(canvas);
- mView.setDrawingCacheEnabled(true);
- mView.getDrawingCache();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement