FAQ Database Discussion Community


How to get file from clicked item?

android,listitem,audiotrack
Hi i'm still trying to make my wavPlayer. My apps has listitem that contain wav file. When I click a file, it should be played but it didn't. I've tried some way on OnListItemClick() to make it work (I marked it with double slash), but it still error. Most of...

OnItemClickLisener does not work

android,listview,button,onitemclicklistener,listitem
i am trying to make list view with clickable items, and every list_item must consist 2 clickable buttons. But if i add buttons to item layout, iten click listener stops to work... here is my item_layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="5dp" android:gravity="center"> <RelativeLayout...

Angular Directives and ng-repeat for Lists; Doesn't Inherit Parent Class

css,angularjs,angularjs-directive,angularjs-ng-repeat,listitem
I'm trying to wrap a standard list item format in an Angular directive, and then use it with ng-repeat inside various list types. The problem is, the directive seems to lose the class of the parent, so the list doesn't render the way it should. Here's an example: <ul class="nav...

Check if Expandable List first item is displaying

android,expandablelistview,visibility,listitem
I am writing an code, where I need to check if first item for Expandable List is visible. For this I checked with AbsListView.OnScrollListener.onScroll(..firstItem, visibleItemCount..) but it's not working exactly if list get expand. Also is there any way to identify if first item completely visible. Any suggestion here!...

SetBackgroundColor affects multiple list items

java,android,listview,arraylist,listitem
I'm developing a kiosk application (where certain applications are available). I made a listview which displays all application installed on the phone. In this list i want the user to select the application that are allowed to be used in the kiosk. If the user selects a row (which displays...

Grabbing selected dropdown list item to add to query string

jquery,drop-down-menu,listitem
Trying to grab the selected item from the dropdown list, and add to the query string for an ajax call. I can't seem to be able to grab the value of the selected item. I'm trying with $("select#areaCode").filter(":selected").val(), but can't grab the item. $("#phone").validate({ errorPlacement: function (error, element) { error.insertAfter($(element).parent('div'));...

removing RecyclerView items

android,recyclerview,listitem,recycler-adapter
I have a RecyclerView which is adding items each certain period. When adding objects, if list items are more than (lets say) 500, then the first items will be removed and the new items will be added. If the RecyclerView cannot scroll down any more !recyclerView.canScrollVertically(1); then, after adding new...

Android custom list item in ListView

android,listview,listitem
I tried to make an simple custom ListView listitem to help me understand how this works but it won't work. When I use the commented line in my MainActivity.java, everything works (it uses the built-in layout). But when I try my own layout row_layout instead of the simple_list_item_1 I get...

C# WPF ListBox mouse click is late

c#,wpf,listbox,listitem,mouseclick-event
I am trying to have the text in a TextBlock update with the text from a ListBox item when I left-click that item. My C# code: private void listBox_MouseDown_rem(object sender, MouseButtonEventArgs e) { if (pathListB.SelectedItem != null) { rem_block.Text = pathListB.SelectedValue.ToString(); } } XAML: <ListBox Name="pathListB" PreviewMouseLeftButtonDown="listBox_MouseDown_rem" HorizontalAlignment="Left" Height="246" Margin="10,10,0,0"...

Android invisible ListView item

android,listview,hide,listitem,invisible
I have ListView and I want hide some item, I use view.setVisibility(View.INVISIBLE) and it work well, but when ListView has many items and I scrolling then after several items again are invisible item. Adapter: public void setIndexHidenItem(int index){ indexHidenItem = index; } public View getView(final int index, View view, ViewGroup...