Вы можете использовать FrameLayout.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ImageView
android:id="@+id/image1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/image1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
Или используйте
Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(Color.BLACK);
canvas.drawBitmap(yourBitmap, 0, 0, paint) ; //Draw bitmap
canvas.drawCircle(50, 50, 10, paint); //Draw Circle
imageView.setImageBitmap(bitmap);
ИЛИ Вы можете использовать эту библиотеку 'https://github.com/codepath/android_guides/wiki/Basic-Painting-with-Views'
привет Ахмада. Я думаю, что ты не достиг моей цели. Я хочу добавить изображение динамически. – majid
и ahmad могу ли я нарисовать эту форму точно там, где пользователь прикасается к ней, как к краске? – majid
Вы можете использовать эту библиотеку 'https://github.com/codepath/android_guides/wiki/Basic-Painting-with-Views' –