listview

    0熱度

    4回答

    我在寫一個應用程序,以顯示在ListView聯繫人號碼,但它給重複的聯繫人條目我想只顯示一個聯繫人單獨 private void getContactList() { ContentResolver cr = getContentResolver(); Cursor cur = cr.query(ContactsContract.CommonDataKinds.Phone.CO

    -1熱度

    2回答

    BaseAdapter裏面滾動視圖的工作裏面沒有滾動型機器人 使用的工作:基礎適配器 請分享關於如何工作的內部滾動型滾動型中列表

    -1熱度

    1回答

    是否可以使用CoordinatorLayout和ListView? 我試圖不工作 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.co

    0熱度

    1回答

    圖像正確加載到列表視圖,但每當我點擊listview並更改SelectedItem,圖像消失。我可以看到這些元素並對它們做所有事情,但它們是一排簡單的行,而圖像本身並不在行中。 這是爲ListView <ListView Name="testLB" ItemsSource="{Binding Images}" SelectedItem="{Binding SelectedImage}" Horiz

    0熱度

    1回答

    @Override public View getView(final int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub Holder holder=new Holder(); View rowView; rowView = infl

    0熱度

    1回答

    我有我的主要活動佈局內的ListView控件。在ListView中的每個項目上,我都有一個用於查看詳細信息(打開新活動)和查看地圖(打開外部谷歌地圖應用程序)的按鈕。我遇到的問題是我希望用戶能夠點擊ListView項目本身(而不是按鈕),以便可以更新地圖(位於ListView上方的片段內)。出於某種原因,當我點擊ListView項目時,我的ListView.itemclick事件不會執行。我需要添

    0熱度

    1回答

    我建立了一個列表視圖,顯示動態按鈕與數據庫中表的名稱。當一個人點擊按鈕時,應該抓住按鈕的文本,然後將其傳遞給下一個活動,該活動將填充與數據庫表相對應的信息並在屏幕頂​​部顯示該文本。當我點擊按鈕時,我寫的代碼不斷崩潰。還有什麼我需要打電話或者這個代碼不能用按鈕工作嗎? public class UserArea extends AppCompatActivity { SectionListAd

    0熱度

    1回答

    return RedirectToAction("ActionName", new { lst = finalData }); [HttpGet] Public ActionResult AcionName(IGrouping<string, ModelName> lst) { return View("ActionName", lst); } 我使用此代碼將列表重定向到另一

    2熱度

    1回答

    我做了一個ContextMenu爲ListView,並且一切工作完美。但是,我無法弄清楚如何將所選項目發送到其他活動? 我看了很多教程,但沒有找到解決方案。 每個項目表示兩個字段(兩個字符串(產品,價格)用JSON字符串解析。 listViewProduse.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); listViewProdu

    -1熱度

    1回答

    我有一個ListView <ListView android:id="@+id/group" android:layout_width="264dp" android:layout_height="match_parent" android:layout_alignParentLeft="true" android:layout_alignPare