突然不知道什么心态,说要做这个,网上找了半天没找到合适的,就自己做了一个。 先上效果图:
图片资源我写死储存在了raw中,有需要可以自己写获取bitmap。
界面layout:
<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="com.admin.myapplication.MainActivity">
<com.admin.myapplication.ScreenShotView
android:id="@+id/screenShotView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="30dp"
android:background="#000000">
<TextView
android:layout_width="match_parent"
android:layout_height="20dp"
android:la