我的Android XML的布局看起来像这样如何创建Android的XML-布局的通透查看
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:gravity="center"
android:background="?android:colorBackground"
android:layout_width="match_parent"
android:layout_height="match_parent">
<SomeView
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@android:color/transparent"/>
</LinearLayout>
我需要的是一个“透视”在我的背景的LinearLayout孔的大小我的小观点。像下面的图片:
这可能吗?怎么样?
请考虑标记答案和/或提高答案。 – EJoshuaS
@Marcel你有没有找到解决方案? –
不,我不这么认为 – Marcel