【发布时间】:2017-02-07 08:37:50
【问题描述】:
要求
我想在自定义对话框中显示带有边框和关闭按钮的图像,ImageView 是TouchImageView 用于放大/缩小功能。像这样
https://i.stack.imgur.com/nN1jJ.jpg
我试过了
我尝试了很多方法来设置边框,但没有得到解决方案。
我的代码
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.android.example.view.TouchImageView
android:id="@+id/imageSingleImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/ic_launcher" />
</RelativeLayout>
使用@user2025187 代码我在输出中得到了这个
https://i.stack.imgur.com/Cv6Ph.png
我正在点击这张图片
【问题讨论】:
-
已经对您的图像添加了边框效果。有什么问题?
-
我想要那种类型的对话
标签: android android-layout android-imageview