listitem

Listview changing size of (reused) views

烂漫一生 提交于 2019-12-12 02:25:06
问题 I am all for reusing views in listview. I always set visibility, contents, witdth etc. of all controls again in getView Unfortunately it seems ListView fails to recalculate height. Picture one shows the initial item showed: Picture two shows how item one is rendered after we scrolled away and back into it The background linearlayout height (the black area) made me think that in picture two, Android is reusing a view that just showed a much heigher item (e.g. the second item). But why does it

Remove ID of item clicked in list view

狂风中的少年 提交于 2019-12-12 02:19:50
问题 | Icon(image) | Title(text) | cross(image) | | | Description(text)| | | | | coupon(image) | Its a list view. Here i want to get id of different items when clicked separately in list view like cross, coupon, icon is clicked then i will get their id... I'm a newbie...Please help me out.... <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:id

android How to send listview item to another activity

ε祈祈猫儿з 提交于 2019-12-11 19:20:17
问题 I am trying to send row item from list view to another activity but maybe I do something wrong. I made one app for food. And I want when the user click to "First Activity" the list item from this listview to be send to "Second Activity" and when the user click to "Add to cart" the listview item go to Cart.class But when I click to "Add to cart" the Activity is send me tо Cart.class but there have nothing. In cart.xml I have listvew. Sorry for my bad english Thanks in advance. First Activity.

Android app - how do I update my ListItem?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 15:21:52
问题 For an Android app...I have a button on an Activity that calls a custom ListActivity. This ListActivity has two lines of text and a checkbox. When invoked, the ListActivity opens up an XML file on the device ( local.xml ) . This XML file contains a list of target XML files on the web. If the file exists on the device, the checkbox on the ListActivity is checked, otherwise it isn't. When the ListItem is pressed, it checks to see if the target file exists on the device-if it does, it displays a

Delphi 2010: group items of a TListview

穿精又带淫゛_ 提交于 2019-12-11 13:52:44
问题 I'm working on a project of mine (for my personal use only) to create something like a " MediaStore " to manage my media files (DVDs & CDs content ) in a MySQL database. (See the next image to preview my application) But the problem is that I wand to group each subFolder in grouped listItems (as the exmpale shown below) ...and I'm not sure if it's possible in delphi or not (using a listview or any other component). So is it possible in delphi to realize this goal? And thanks in advance. 来源:

Displaying Two Views in a single List Row Item in Android

房东的猫 提交于 2019-12-11 10:29:38
问题 There is a need to displaying two views in a single ListView Row . How it is possible in android. Please help me. 回答1: You can use custom layout for your lists , here is example which is using imageview and textview in a single row. Row.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <ImageView android:id="@+id/icon"

Get list item row to wrap instead of show ellipsis

独自空忆成欢 提交于 2019-12-11 09:05:15
问题 I used the code below to get produce a layout that formats an image, a title and a text region in a list item. I would like to get it to look like the Twitter apps layout - in terms of how it gets the tweet to wrap, what am I missing? Platform details: BB OS 5.0+ Code: protected void sublayout(int width, int height) { try { deleteAll(); } catch (Exception ex) { } MyTitleField lblTitle = new MyTitleField(info.title);//extends LabelField LabelField lblDesc = new LabelField(info.description ,

ListItem.Attributes.Add not working

青春壹個敷衍的年華 提交于 2019-12-11 03:14:47
问题 I am trying to add a custom attribute to list item but it is not adding it My code is this ListItem item = new ListItem(teamMemberGroup.Name, teamMemberGroup.ID); item.Attributes.Add("teammembergroup", "true"); ddlTeamGroups.Items.Add(item); ddlTeamGroups1.Items.Add(item); It is only adding option text and value in the Html but no attributes! My dropdown is inside an update panel but I don't think update panel is making something wrong as I am not looking for postback but it is only about the

ASP.NET, VB: checking which items of a CheckBoxList are selected

≯℡__Kan透↙ 提交于 2019-12-10 22:58:12
问题 I know this is an extremely basic question, but I couldn't find how to do this in VB... I have a CheckBoxList where one of the options includes a textbox to fill in your own value. So I need to have that textbox become enabled when its checkbox (a ListItem in the CheckBoxList) is checked. This is the code behind, I'm not sure what to put in my If statement to test if that certain ListItem is checked. Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System

Is it sound to wrap a list item in an anchor?

放肆的年华 提交于 2019-12-10 14:08:24
问题 I have a group of images which each have their own links. I want the images to be in a list ( <ul><li> .. etc) and have each item have a different background-image . Would I run into any issues with something like this? <ul> <a href="#"><li class="1"></li></a> <a href="#"><li class="2"></li></a> <a href="#"><li class="3"></li></a> <a href="#"><li class="4"></li></a> <a href="#"><li class="5"></li></a> <a href="#"><li class="6"></li></a> </ul> 回答1: You would do better to write it like this <ul