2
A
回答
2
这将是一套完整的
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/gohan" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/triangle_shape" />
</FrameLayout>
triangle_shape.xml这将是你
drawable
目录内
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<rotate
android:fromDegrees="-70" // you will have to tweak this a little for adjustment
android:pivotX="100%"
android:pivotY="75%"
android:toDegrees="40">
<shape android:shape="rectangle">
<stroke
android:width="10dp"
android:color="@android:color/transparent" />
<solid android:color="@android:color/holo_blue_bright" />
</shape>
</rotate>
</item>
</layer-list>
相关问题
- 1. alertbox android系统
- 2. 在android系统
- 3. android系统
- 4. 在android系统
- 5. 在android系统
- 6. 让android系统
- 7. 在android系统
- 8. android系统
- 9. android系统
- 10. 在android系统
- 11. android系统
- 12. android系统
- 13. android系统
- 14. android系统
- 15. android系统
- 16. android系统
- 17. android系统
- 18. android系统
- 19. android系统
- 20. android系统xamarin
- 21. NoSuchMethodException android系统
- 22. 在android系统
- 23. android系统
- 24. android系统
- 25. android系统
- 26. 在android系统
- 27. android系统
- 28. android系统
- 29. android系统
- 30. MultiselectListpreference android系统
你需要做你的水平的定制供参考使用此链接https://github.com/siyamed/android-shape-imageview –
和你尝试过什么?无线谷歌或任何东西? – user1140237
是啊,我觉得@AnjaliTripathi是正确的,你可以看到在[机器人功能[根据图蒙ImageViews(https://github.com/siyamed/android-shape-imageview#bitmap-mask-based-imageviews)之一字形-imageview的](https://github.com/siyamed/android-shape-imageview)。所以,你应该做的是提供一个形状和整体的照片,然后你就可以得到你想要的图片。 –