我有一个垂直方向的LinearLayout内的按钮。不知道为什么按钮不显示?按钮没有出现在我的线性布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical">
<com.commonsware.cwac.tlv.TouchListView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tlv="http://schemas.android.com/apk/res/org.stocktwits.activity"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:drawSelectorOnTop="false"
tlv:normal_height="64dip"
tlv:grabber="@+id/icon"
tlv:remove_mode="slideRight"
android:layout_height="wrap_content"/>
<Button android:text="Button" android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</LinearLayout>
如果您取出(暂时)TouchListView,会出现吗? – 2011-05-16 17:52:36
这是android:id =“@ android:id/list”是否正确?我认为正确的是android:id =“@ + id/list” – evilone 2011-05-16 17:55:34
它出现在我拿出TouchListView的时候。或者,TouchListView也会出现,布局中没有按钮。 – 2011-05-16 19:21:11