1
您好我現在用絲帶菜單庫顯示一個滑動菜單在我的應用程序列表視圖走了
https://github.com/darvds/RibbonMenu
,這裏是我的layout.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@drawable/abs__textfield_search_default_holo_dark"
android:drawableRight="@drawable/abs__ic_search"
android:ems="10"
android:gravity="right|center_vertical"
android:textColorHint="#7F462C" >
<requestFocus />
</EditText>
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
<com.darvds.ribbonmenu.RibbonMenuView
android:id="@+id/ribbonMenuView1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
我這裏的問題是,我的列表視圖不見了我的意思是我只能看到功能區菜單和編輯文本,所以任何幫助?
ListView的高度WRAP_CONTENT。你確定你添加了數據嗎? –