android - 在使用layout_above 布局前,要保证参照物元素的id存在。(有上下的解析顺序)
访问量: 1852
例如: (引用其他id 前,要确保该id存在)
<Button
android:id="@+id/to_do_btn"
...
/>
<ListView
...
android:layout_above="@id/to_do_btn"
>
</ListView>
访问量: 1852
例如: (引用其他id 前,要确保该id存在)
<Button
android:id="@+id/to_do_btn"
...
/>
<ListView
...
android:layout_above="@id/to_do_btn"
>
</ListView>