IllegalArgumentException: width and height must be > 0 while loading Bitmap from View

后端 未结 5 1715
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 22:17

I\'m trying to draw on an ImageViewTouch, a library which enables pinch zooming. I\'m able to draw over the image using Canvas, but when I zoom the image, the drawing disapp

5条回答
  •  庸人自扰
    2020-11-27 22:37

    In my case, I forgot to set orientation to vertical for parent LinearLayout and the default value of horizontal has been set, so I set it and my problem gone...

    android:orientation="vertical"
    

提交回复
热议问题