FAQ Database Discussion Community


JavaFX - How to add Item to ListView from different Stage?

java,listview,javafx
How can i add an item to an already existing ListView from a different Stage (Window). Basically i just want to add Text to the ListView from Window 2 to the ListView in Window 1. Thanks in advance. Sorry i forgot this is what i've got so far in my...

How to handle listview event while using new android sliding tabs technique?

java,android,listview,tabs
I tried searching internet but I found all tutorials to be using old tabhost technique. I am using new toolbar and adding tabs under it. I want to display contents fetched from database in listview dynamically when that particular tab is focused. Following is my Activity code: [EDITED] public class...

android notifyDataSetChanged not working if delete item from data item

android,listview,baseadapter,notifydatasetchanged
I am developing an android application in which I am using one base adapter and displaying data in list form.Now what happened If I remove any object from list and if I call notifyDataSetChanged, its not working as expected. I tried this in following manner. @Override protected void onCreate(Bundle savedInstanceState)...

My items listview doesn't show the last item

android,xml,listview
My items ListView doesn't show the last item here is my xml code when I scroll down my list the last item doesn't show in the items. Need help for this problem <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/sky_blue" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent"...

radiogroup.setOnCheckedListener is not working as i expect.(Changing color of radio buttons)

java,android,listview,baseadapter
I'm having a activity which has question and answer section with a question with 4 choices in a radio group. On choosing answer it must change the background of answer to green or red(based on right or wrong). I have a activity which calls a BaseAdapter class which listens the...

Android listview dont refrsh by BroadcastReceiver

android,listview
in my application I'm trying to retreive data from server by service and sending to broadcast after finish receive and save in database. I'm defined simple broadcast in fragment to listen to that to get again data from database and update list view private BroadcastReceiver getContactsList = new BroadcastReceiver() {...

Kendo UI ASP.NET MVC ListView fails when trying to add or edit items

c#,asp.net-mvc,listview,razor,kendo-ui
I'm struggling to set up a ListView which allows me to add new records and to update existing ones. Loading the items for the list works like a charm. Also showing the only relevant information Id and Line works perfectly. Two problems: 1. Adding a new item to the list:...

Add a ListView or RecyclerView to new NavigationView

android,listview,recyclerview,navigationview
I am using the new NavigationView from revision 22.2.0 of the support library by Google. It works perfectly fine to generate a navigation drawer populated using a menu res. I was wondering is it possible to add a ListView or RecyclerView to the navigation drawer so that it can be...

Android onClick checkbox not checked in listview

android,listview,checkbox
I am working on Customized ListView using CheckBox. I tried to check single selection CheckBox when we click in Item of ListView. How can I do it? My XML code <TextView android:id="@+id/addressTXT" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="10dp" android:text="Price" /> <CheckBox android:id="@+id/addressCheckBox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true"...

WPF: get my object after ListView context menu right click instead of item index

wpf,listview,contextmenu
I have ListView contains my object: public ObservableCollection<MyObject> objects { get; set; } This is my Context menu right click event: private void MenuItem_Click(object sender, RoutedEventArgs e) { if (myListView.SelectedIndex == -1) return; int index = myListView.SelectedIndex; } So instead of take this index and find my object in my...

Make clickable item of listview in drawer navigation

android,listview,android-activity
I have used the below code for my navigation drawer which is used and included in several activities by including the layout and create object and calling the function. I want to add functionality to it, when one item clicked, it starts new activity. <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"...

Moving from one ListView to another ListView

android,listview,android-activity,android-listview,listactivity
I am new in android development and create list item here is my code of both classes. I am trying to move from Menu to another activity(Prepaid) which also implemented list view. Problem is it can not move to Prepaid activity. Also my Header is missing from menu class, how...

findViewById returns null when try to find TextView in getView [on hold]

android,android-layout,listview,android-adapter
I don't know but findBtView method cannot fint view and get null all the time. Here are my files: http://pastebin.com/0gJPH8mi

XAF CollectionsEditMode

listview,xaf
When in Application.CollectionsEditMode=Edit mode, nested aggregated child object lists behave as we needed, not saving anything to DB until parent object's save action executes. But when using Application.CollectionsEditMode=View and setting required DetailView.CollectionsEditMode=Edit from platform's model this behaviour changes and when saving a child, master object is saved too, without waiting...

How can create a andorid Layout with two layout with ListView

android,android-layout,listview,button
I can not set properly for the andorid layout! On my code the listview It fills the screen. If I change the layout_height on the listview with a number not good for all resolutions! I use this code: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background"> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/FirstLinearLayout"...

CommandName = Insert in EditTemplate of ASP.NET ListView throws “Insert can only be called on an insert item”

c#,asp.net,listview
I am supporting a web application. In that, there are two tables - TaxCode and TaxRate. TaxCode has 1 to many relationship with TaxRate. The UI has a ListView with LayoutTemplate, ItemTemplate and EditTemplate to show TaxCode. When the users selects a tax code in EditTemplate it shows a CutomGridView...

Adding margins to listview

android,listview,layout
I am following a tutorial and I did not understand why exactly the margins that I applied to a list view contained within a relative layout does not affect the look when I test it on a device. However, if I put everything in a LinearLayout container it looks as...

Loading listview using SharedPreferences throwing OutofMemoryError

android,listview,android-listview,sharedpreferences
I am using edittext and button in mainactivity, onclicking I want to add the text to listview which it does properly. I am also saving it using sharedpreferences,so that when I go back to mainactivity or restart app ,it automatically loads listview,but on clicking button ,I get OutOfMemoryerror at this...

How to add data to listview after dialog which was called by notification?

java,android,listview
My goal is add data to listView, after push on notification shows dialog, if user press Yes, app will show activity with fragment, and again will display new dialog to add new item. But if I press add, I get: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.LoaderManager android.support.v4.app.FragmentActivity.getSupportLoaderManager()' on a...

When putting listview inside a RelativeLayout it always looking for R.id.list

android,android-layout,listview,android-listview
I was trying to put an imageview and a listview inside a relative layout, but i'm always having an error like this Your content must have a ListView whose id attribute is 'android.R.id.list' then i tried just putting ListView as the parent and it works but i want to display...

ListView OnItemClickListener with a new Activity

android,listview,android-activity,onitemclicklistener,sqliteopenhelper
I have the first activity with this code: lvlitems.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { //Toast.makeText(BuscarNota.this, "Clicked"+ id, Toast.LENGTH_SHORT).show(); Intent intent= new Intent(); intent.setClass(BuscarNota.this, Mostrar.class); intent.putExtra("id_nota", id); startActivityForResult(intent, 0); } }); And then I have the second activity with this code: EditText...

Change layout of next item in ListView

android,listview
I'm beginner android developer. I need to change layout of next item in listview by clicking button on current item. I don't understand how to access next item. So, how to change layout of next item? Here is my code: Adapter class public class StepsAdapter extends ArrayAdapter<String> { private static...

How to set background color through SimpleCursorAdapter

android,listview,simplecursoradapter
Here is my code: private void fillData() { Cursor notesCursor = mDbHelper.fetchAllNotes(); startManagingCursor(notesCursor); String[] from = new String[]{NotesDbAdapter.KEY_TITLE, NotesDbAdapter.KEY_COLOR}; int[] to = new int[]{R.id.text1, R.id.text2}; SimpleCursorAdapter notes = new SimpleCursorAdapter( this, R.layout.note_row, notesCursor, from, to); setListAdapter(notes); } Which produces the following ListView: http://i.stack.imgur.com/7W1xa.jpg What I want is to take "R.id.text2"...

Getview in the listview update all the items in the listview

android,listview
I have a listview where I have some textviews and an editText.What I want is that when the text in the editText is changed it should update the corresponding textview in the listview.But the problem is it is updating all the listItems in the listview. My getview code is like...

ListView & onItemClick - When click, open new activity [on hold]

java,android,listview,android-listview,onclicklistener
actually my ListView is here: ListView lv = (ListView) findViewById(android.R.id.list); ArrayAdapter<String> ad = new ArrayAdapter<String>(getApplicationContext(),android.R.layout.simple_list_item_1,ls); lv.setAdapter(ad); What I want is when I click on an item in my ListView it should open a new activity for that item where I can show some description of the item e.g. if the...

Getting particular view from expandable listview

java,android,listview,android-fragments,expandablelistview
In my list view I have an textview in expandable group and I want to open the dialog when textview is clicked to fill the information through edittext and update textview. Problem: how could I get the groupview textview item in my fragment oncreateview() method....

smoothScrollToPositionFromTop not smooth when going to a lower index

android,listview
I need my listview to scroll at a specific position at any time, putting the row at this position at the top of the listview. For this purpose I use smoothScrollToPositionFromTop(int position, int offset, int duration) Now let's say I wand to go from index 6 to 10, it scrolls...

Android Listview database with default value

android,database,string,listview
I fetch data from a database table and I view them in a ListView. Now I would like to add a line to the Listview with a default value, which will have to be always visible, even if the database is empty. How can I do? This is the method...

WPF: Deselect all my Checkbox when one is selected

wpf,listview,checkbox
This is my first ListView row column that contain CheckBox: <GridViewColumn Width="40" > <GridViewColumn.CellTemplate> <DataTemplate> <CheckBox Name="cbSelectInterface" IsThreeState="False" ></CheckBox> </DataTemplate> </GridViewColumn.CellTemplate> </GridViewColumn> How can i add the option to check only one CheckBox in specific Row and what i choose another CheckBox and check this control all other CheckBox become...

Get the position of a button clicked in ListView

java,android,listview,button,onclick
I have a fragment where when an item of the list is clicked, you can determine which position using onListItemClick. Now I have a button on each list item (a delete button) and I want to know which position was clicked when it is pressed. How can I do this?...

Android: problems with CursorAdapter

android,sqlite,listview,android-cursoradapter,populate
first of all thank you all for your answers and sorry for the bad English used, have a controller class to populate a listview and an adapter class that extends CursorAdapter, my problem is that when I setAdapter, my class adapter is not running the Newview method BindView certainly not...

Load More option in ListView Android

android,listview
Android ListView] ListView should display first 10 result and then it should display an option like "LoadMore" when I click on 'LoadMore option ' then listview will display with 10 more result and again the "LoadMore" option should display..How to do. XML <ListView android:id="@+id/subCategory" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="5" android:cacheColorHint="@android:color/transparent" android:divider="#fff" android:dividerHeight="1dp"...

How to change the contents of listview on item click?

android,listview
I have a listview populated using a String array as follows: ArrayAdapter<String> adapter = new ArrayAdapter<String>(getListView().getContext(),android.R.layout.simple_list_item_1,res); getListView().setAdapter(adapter); I want to change the contents of listview using OnItemClickListener....

Adding table header to Listview with DataTemplate in XAML

c#,wpf,xaml,listview,windows-runtime
In my Xaml I'm binding some data from a wcf. I don't know how to add some table headers to the columns. Also the data in the columns is not well aligned, I'm thinking it's because of the ColumnDefinition Width="auto". I want the columns to be aligned like in the...

Can't get the right view in a list by view.getTag()

android,listview,android-listview,view
I have a custom card list view.. the view contains an imageView and three buttons.. What i want to do is when i click on a button i want to set the image of the card that holds that button in imageView object.. What happens is that setSelectedimage() sets the...

Check box for Column listview Wpf

c#,wpf,listview,checkbox
How to create Check box for Column inside Listview. i was able to make checkbox for listview items. but i want to have checkbox for Column itself.like in windows: here is code in XAML <ListView HorizontalAlignment="Left" Grid.Row="1" Width="400"> <ListView.View> <GridView> <GridViewColumn Width="140" Header="Column1 With Checkbox"> <GridViewColumn.CellTemplate> <DataTemplate> <CheckBox Tag="{Binding}" IsThreeState="False"...

How can I get my searchable activity to launch when my search bar widget is clicked, not when I press enter?

android,listview,widget,searchview
I have a searchbar widget on top of a mapview, and what I would like is when I click that widget, a the mapview is replaced by a listview which dynamically changes the displayed items as I enter my query and keep the searchbar widget on top. Then when I...

Access certain element of listview adapter

java,android,listview
I have an Activity with a ListView. This ListView is set with the Class GetAllEntrysListViewAdapter: @Override public View getView(final int position, View convertView, ViewGroup parent) { final ListCell cell; if (convertView == null) { convertView = inflater.inflate(R.layout.get_all_entry_list_view_cell, null); cell = new ListCell(); cell.note = (TextView) convertView.findViewById(R.id.listViewNote); cell.img = (ImageView) convertView.findViewById(R.id.listViewImg);...

I am trying to fetch data from database and place it in a ListView in android

android,sqlite,listview,arraylist,android-arrayadapter
I want to create a quiz app which contains 1 question and 4options for that I created a database from which the questions and options are fetched to 5 textviews using ListView. I surfed many tutorials and using a page from stackoverflow created it using ArrayList and Cursor but i...

Doing a multi-column search for an item in a listView control using c#

c#,linq,listview,search
I am using a multi-column listView control in Visual Studio 2013 and coding with C#. I want to do a search on multiple columns as if I were doing a database SELECT. For example, if the first three columns were NAME, AGE and CITY, I might want to search for...

android listview ArrayAdapter string cannot be cast to HolderView

java,android,listview,android-listview,android-arrayadapter
In my application, listviews with custom arrayadapter crashes when scrolling the listview and the error is: 06-17 09:01:21.319: E/AndroidRuntime(32453): java.lang.ClassCastException: java.lang.String cannot be cast to SlideMenuListArrayAdapter$ViewHolder Note that slideMenuAdapter is my custom adapter, i bind it using arraylist of objects. this is the code of getView() @Override public View getView(int...

ListView Custom Adapter that includes Images from galery

android,listview,android-listview,imageview,custom-adapter
When creating a custom ListView adapter, usually I extend it from Array Adapter<String> but I want to make a ListView containing photos from the Gallery of the phone. I managed to get the Bitmap from the Gallery referring to the picture the user chose and put it in a regular...

Link button Delete from ListView and DB in C#

c#,asp.net,listview
Okay so I have ListView and I am having some issues removing an item from the listview and the database. I am trying to accomplish this using OnItemDeleting. When I run it, it returns as having been successful; however, it was not so I am guessing that I am still...

Android listview filter without pressing search button issue

android,database,listview,filter
I have a ListView which work fine. Now I have put an EditText at the top of my ListView. What I want is that when a enters a letter "A", only the names starting with an "A" should appear in the list . I have try to do this but...

Get the current time when the user comes out of an item in a listview

android,listview
I have a horizontal ListView which contains albums. I want the time when the user opens and closes the album. I am able to get the time when the album is opened , but i don't know how i can get the time when the user comes back to the...

How to call a fragment from a fragment

android,listview,android-fragments
I am making an application. In this application, I have a fragment that contains a listView. When I click on any item it should start a new fragment which displays the item website. My listView fragment code : public class MyFragment extends Fragment { private ListView mListViewASSociation; private ListViewAssociationAdapter mListViewAssociationAdapter;...

Win 8 App Get text from datatemplate listview

listview,text,windows-8
I'm trying to learn how to make datatemplate in listviews in my win 8 app I have the following code in my Xaml code <!-- Vertical scrolling item list --> <ListView x:Name="itemListView" Margin="0,4.714,10,0.429" ItemsSource="{Binding Source={StaticResource itemsViewSource}}" SelectionChanged="itemListView_SelectionChanged" Loaded="itemListView_Loaded" Grid.Row="4" Tapped="itemListView_Tapped_1"> <ListView.ItemTemplate> <DataTemplate> <Grid Height="110" Margin="6"> <Grid.ColumnDefinitions>...

Hide Parent Fragment from the Fragment in the viewPager

android,listview,android-fragments,android-viewpager
I have a Fragment A holds a view pager that display serval nested fragments. B and C are the fragments directly hold by the view pager. And each B and C holds a listView. When click listView item fragment D will show up. The problem is that, I could only...

Floating action button in ViewPager above a listView

android,android-layout,listview
I have a working floating action button inside of a LinearLayout currently. The LinearLayout it is inside of is in one tab of a SlidingTabLayout. I want the floating action button to be on top of the list view inside of the first tab, and also to show inside of...

Why can't ListView be top level view?

android,android-layout,listview
So to create a Fragment which contains a single ListView, I must do <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin"...

how to build a load more
  • function using pure javascript instead of jquery
  • javascript,html,css,listview
    I found this great code in codepen: http://codepen.io/joe-watkins/pen/wBYbgN but i was trying to have the same feature using pure javascript , do anyone know if is that possible, and how could i achive that 😉 thanks a lot var $parent = $("ul"), $items = $parent.find("li"), $loadMoreBtn = $("#load-more-comments"), maxItems =...

    creating listview using a local database has Error copying database android

    android,listview,android-database
    Hi I'm trying to create a ListView that displays the data from a sql file and I always got an error "Error copying database" or i can't open the database here is my DBHelper public class DBHelper extends SQLiteOpenHelper { //The Android's default system path of your application database. @SuppressLint("SdCardPath")...

    Unable to populate ListView from ArrayList

    java,android,json,listview,arraylist
    ChooseCategory.java public class ChooseCategory extends ListActivity { private ListView lv; //ArrayAdapter<FoodStores> arrayAdapter; private ArrayList<FoodStores> storefoodList; private String URL_STORES = "http://10.0.2.2/get_stores.php"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); lv = (ListView)findViewById(R.id.list); storefoodList = new ArrayList<FoodStores>(); new GetFoodStores().execute(); } private class GetFoodStores extends...

    WPF ListView sorting on column click

    c#,.net,wpf,listview
    I have a listview for which the items gets added at run time in form of a grid with single/multiple columns. Now I need to get the sort working. Once the list view has items in it and they click on the column it should sort it on that column....

    Firemonkey ListView item indexes not updating

    delphi,listview,firemonkey
    I'm using a TListView in Firemonkey. On startup, I create 3 list view headers and keep references to them for future use (specifically inserting items below each header). FItemHeader:= LV.Items.Add; FItemHeader.Purpose:= TListItemPurpose.Header; FItemHeader.Text:= 'Items'; FChargeHeader:= LV.Items.Add; FChargeHeader.Purpose:= TListItemPurpose.Header; FChargeHeader.Text:= 'Charges'; FPaymentHeader:= LV.Items.Add; FPaymentHeader.Purpose:= TListItemPurpose.Header; FPaymentHeader.Text:= 'Payments'; Then, I've added a...

    How to add a separator space between rows on custom Xamarin.Forms ViewCell?

    c#,listview,grid,xamarin.forms,custom-cell
    In this question on Xamarin Forums https://forums.xamarin.com/discussion/20517/curved-corners-in-tableview-cells Craig Dunn teaches how to create a cell with frame. I want to Add a space between each cell. At present the cells seems glued, and the ViewCell doesn`t have a space property. Thanks!...

    Change imageview in listview row dynamically

    android,listview,imageview
    I have a listview with custom row which contains textview an ImageView and a button. This is my layout: Now If I add some text and select the color beside add text and click "+" the text and the color selected should be added to the listview. Still here everything...

    Application Crashes when an Activity that Extends ListView is 'Launched'

    java,android,listview,crash,listactivity
    Here is my InfoBookActivity.java package thesleeplesselite.drgreenthumb; import android.app.ListActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class InfoBookActivity extends ListActivity { // -- AUTO-GENERATED CODE -- @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_infobook); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action...

    Android compiles but crashes

    java,android,android-layout,listview,android-intent
    i am trying to develop my first app. It compiles and installs but crashes when I open it. Here is the Code public class MainActivity extends ActionBarActivity implements OnItemClickListener { private ListView listview; private DrawerLayout drawerlayout; private ActionBarDrawerToggle drawerListener; private LinearLayout menu; private myAdapter myadapter; @Override protected void onCreate(Bundle savedInstanceState)...

    Change row color of a ListView with Cursoradapter and bindView

    android,listview,android-listview,android-cursoradapter
    I got some trouble, when I click on my Listview I would like to change the color of the selected row, but a several row change color instead of the one I want. If I click on another row i want that the previous clicked row keep his color. There's...

    ItemsWrapGrid Order in Windows Phone 8.1

    c#,xaml,listview,windows-phone-8.1
    I have the following sample data setup in my XAML: <vm:SoundModel.Animals> <vm:SoundGroup Title="Animals"> <vm:SoundGroup.Items> <vm:SoundData Title="Animal 1" FilePath="Animal1.wav" /> <vm:SoundData Title="Animal 2" FilePath="Animal2.wav" /> <vm:SoundData Title="Animal 3" FilePath="Animal3.wav" /> </vm:SoundGroup.Items> </vm:SoundGroup> </vm:SoundModel.Animals> And in my XAML I have the following: <Page.Resources> <DataTemplate x:Key="SoundTileDataTemplate"> <Grid...

    Prevent double selected in ListView

    android,listview,android-listview
    Hay i had tried to select ListView and change color background of view in selected position to transparent red, but every i tapped or selected an item other item color background also changed too. How to only select and change color background of item i selected ? this is my...

    ObservableCollection not update my UI

    wpf,listview
    This is my Model: public class WiresharkFile : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; virtual public void NotifyPropertyChange(string propertyName) { var handler = PropertyChanged; if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName)); } private string _file; // file path private string _packets; // how many packet in file private string _sentPackets;...

    Refreshing listview duplicates content

    android,listview,android-adapter
    I have a listview which populated with arraylist. However, anytime I use the pull to refresh, the data in the listview gets duplication even though I clear the arraylist before populating. This is my arraylist List<TimeItems> myList = new ArrayList<TimeItems>(); and this is how I am populating the adapter for...

    Getting error for creating and populating ListView

    android,listview
    I am trying to get a list of installed applications on a device and then display their names in a list. But when i run my code it shows Unfortunately,Lister has been stopped. My code in onCreate method is:- PackageManager pm=this.getPackageManager(); List<ApplicationInfo> list=pm.getInstalledApplications(0); ListView lv=(ListView)findViewById(R.id.listView1); ArrayList<String> al=new ArrayList<String>(); for(ApplicationInfo app:list)...

    SwipeDismissListViewTouchListener in ListView and ViewPager

    android,listview,android-viewpager,ontouchlistener
    I have a ViewPager that contains a ListFragment with a TouchListener (SwipeDismissListViewTouchListener). I modified the ViewPager like this: public class CustomViewPager extends ViewPager { public CustomViewPager(Context context, AttributeSet attrs) { super(context, attrs); } private boolean pagingEnabled = true; public void setPagingEnabled(boolean enabled) { pagingEnabled = enabled; } @Override public boolean...

    LinkedHashMap vs ArrayList with Bluetooth Scanning and ListView

    java,listview,arraylist,linkedhashmap
    I have a little bit of a confusion when it comes to what is considered the better implementation. One the one hand, LinkedHashMap provides the following benefits: Prevents duplicate items (I need to be able to prevent a scanned Bluetooth device to not repeatedly enter the list.) Provides easy access...

    Binding string lists into wpf listview returns BindingExpression path error

    c#,wpf,listview,data-binding
    I've two string lists declared as below: Config.cs: public class AgentSkills { public List<string> agentSkillsNameList=new List<string>(); public List<string> agentSkillsLvlList=new List<string>(); } I retrieved the strings from an XML and added them to the lists as below: Config.cs: foreach (XmlNode skillNameNode in skillNameNodeList) { agentSkills.agentSkillsNameList.Add(skillNameNode.Attributes["value"].Value); } foreach (XmlNode skillLevelNode in skillLevelNodeList)...

    How to open WebView through the onListItemClick (using Volley/JSON)?

    android,json,listview,webview
    I made a blog reader using Volley. I created WebView to show articles (open WebView with article) when you push on a List, but I have a problem with using onListItemClick. The problem is: Base on what I learned I should put the "name" of JSONArray, but the problem is,...

    Android Get selected item on click listeners

    android,listview,view,onclicklistener
    Goys I use the following for an on click listener lv.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { TextView textview1 = (TextView) findViewById(R.id.textView1); TextView textview2 = (TextView) findViewById(R.id.Sr2); TextView textview3 = (TextView) findViewById(R.id.Sr3); TextView textview4 = (TextView) findViewById(R.id.Sr4); TextView textview5 = (TextView) findViewById(R.id.Sr5);...

    Android layout design: composite Relative vs fragments

    android,android-layout,listview,android-fragments,android-listfragment
    I want a simple scrollable ListView. I have a custom adapter that makes each row display a picture and some text. Underneath I want a few buttons. I'm looking for a layout like this sample picture: This seems like it should be trivial. I have a single main activity that...

    WPF Listview sort works only one time, and then nothing happen

    c#,wpf,sorting,listview
    I have a ListView in a WPF window, that I am trying to sort by clicking on the columns. To learn how to do this, I followed this link: http://www.wpf-tutorial.com/listview-control/listview-how-to-column-sorting/ I have created the method GridViewColumnHeader_Cick as follow: private void GridViewColumnHeader_Click(object sender, RoutedEventArgs e) { GridViewColumnHeader column = (sender as...

    In c#, how to show specific searched paragraph numbers and docx file name in listview without repeating same file name?

    c#,listview
    I am creating an application in which user search word in docx file and get paragraph number which is contained that word. Almost my application work fine but the problem which I was facing is that I get repeating file name and get each paragraph in new listview row. Lets...

    Xamarin.Forms: GroupHeaderTemplate is not visible, neither are the items but seems to partially render

    c#,android,listview,xamarin,xamarin.forms
    I have a GroupHeaderTemplate in Xamarin.Forms for a ListView element which is not rendering. You can select the headers, and pull up the quick menu. I can successfully render the groups if I use the property of the ListView element GroupDisplayBinding, yet when I specify GroupHeaderTemplate property of ListView nothing...

    ListView doesn't appear in the MainActivty of my app (An image attached)

    java,android,listview
    After I save the note in my Android app, the note (or the ListView) of the note/s doesn't appear in the MainActivity. The MainActivity class of my app is: package com.twitter.i_droidi.mynotes; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.ContextMenu; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import...

    Image showing in Android Studio but not on phone

    android,listview,imageview
    As you can see below this is what Android Studio shows: However, when I run this app on my phone the List View shows with just a blank image (i.e - a space) above it where the "somewhere over the rainbow" should be. The List View is working fine. It...

    Change image.Source in ListView according to boolean

    c#,wpf,xaml,listview,boolean
    I have a listview with 2 columns: "visibility" and "name" of a system. The value of column 1: a button (btn_visibility) with an image (img_visibility). Depending on a boolean (true or false) from an object in code behind the image should change, e.g. SYSTEM.SHOW_IN_LIST = true; img_visibility.Source = new BitmapImage(new...

    Listview getView method not getting called

    android,listview,android-listview,baseadapter,swiperefreshlayout
    This type of question has been asked so many times but none of the solutions on SO are working for me so I am asking again for help. I have a custom ListView which implemented pull-to-refresh and was working fine until I decided to use the new SwipeRefreshLayout and now...

    Colouring for Wearable ListView Items

    java,android,listview,android-listview
    Is there a way to change the text colour of list items on Android Wear? I've only previously seen this before and hence done this for phones but don't think the same code can be used for Wear. Activity code public class MainActivity extends Activity implements WearableListView.ClickListener{ private WearableListView mListView;...

    VB Listview show items vertical

    vb.net,listview
    I have a simple form with 2 labels, 2 textboxes, 1 button and 1 listview. In the textboxes I want to input the names and ages of people. Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim Col1 As String = TextBox1.Text Dim Col2 As...

    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...

    Recieveing Null Pointer Exception when trying to retrieve data from SQL database to listview android

    java,android,database,sqlite,listview
    I keep getting a Null Pointer Exception when i'm trying to get data from my SQLite database and I'm not sure how to fix this. The code: The activity: public class Draft_Budget extends Activity { String[] budget; DBHelper budDb; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.draft_budget); ActionBar actionBar =...

    How to perform synchronized grouping/filtering of ListViews and DataGrids in WPF?

    wpf,listview,collectionviewsource,listcollectionview
    I am trying to create, in my application, the same effect used by the software MusicBee in its music selection interface (screenshot below). There is a lower panel with a DataGrid, and an upper panel with some ListViews displaying grouped rows. When I click, say, "Rock" on the "Genre" list...

    Simpler alternative for accessing master object from nested listview on XAF

    c#,listview,nested,viewcontroller,xaf
    I want to know if there is simple and clear method other than this for accessing master object from a nested listview controller. ((PropertyCollectionSource)((ListView)View).CollectionSource).MasterObject Do I have to write this in everywhere where i need to access master object? I think this is not an elegant way and looks so...

    how can i show image thumbnail of avideo in listview control in vb?

    vb.net,image,listview
    I am writing a simple windows based application show split a video and show the thumbnails in listview . I found this code, but from here I need thumbnails instead of icons Dim strFileSize As String = " " Dim di As New IO.DirectoryInfo(SPath & "\" & FolderName) Dim aryFi...

    Custom selector image with three status in ListView

    android,listview
    I need a custom selector inside a ListView item that is clickable three times. First click show image 1, second click show image 2, third click show image 3, fourth click go back to show image 1 and so on. What is the best way to implement this?...

    ListView Adapter executing onclick methods on multiple rows simultaneously for a single click event

    android,listview,android-listview,android-adapter
    In my app I have a listview in a tab fragment. Each row of listview is a cardview , which has multiple views in it.(Buttons, textviews etc.) I have created a custom adapter class for this listview. This adapter class takes the data from local DB and inserts it in...

    Adding a RadioButton to a itemView adapter within a ListView

    listview,arraylist,radio-button,barcode,selecteditem
    I wonder if anyone can help with this , please? This Code below is ListView adapter to enable a single itemView to which all works well. Iam able to show with this adapter the barcode number and the time of the item that is read by a barcode reader with...

    dynamically inflating views into listView items. odd behaviour

    android,listview,adapter
    So I'm dynamically creating views based on how many I need into a listView item. When the user clicks on a listView item I expand the item to display the inflated view(s) I made. The reason I have to do it this way is because the amount of inflated views...

    Adapter ListView not refreshing from Activity

    android,listview,android-fragments,android-arrayadapter
    I am trying to refresh the contents of my Fragment's ListView ... based on the results I receive in my Activity. What I want - To load contents of 'artistsName' List (present in my Activity) into the ListView of my Fragment What is the problem - Despite calling notifyDataSetChanged() on...

    Android ListView Swipe Right and Left to Accept and Reject

    android,listview,swipe
    I want to develop list view in that i want , when i swipe left to right , in left corner display one accept ( true ) icon ( non clickable - show just color change when swipe left to right ) like following screen shot, when i swipe all...

    How to overlay view in RelativeLayout?

    android,xml,listview
    Here is what I have: Is it possible to somehow lower the button overlay layer, but without change layout. I am using Relative. The problem is that when the button goes to the line location of digits small part of button not visible. Here fragment of .xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:materialdesign="http://schemas.android.com/apk/res-auto"...

    Update the ListView after renaming a ListView item within a Popup Menu in a BaseAdapter in Android

    android,listview,android-listview,android-arrayadapter,popupmenu
    I have a ListView which has a custom Adapter and a PopupMenu giving some options on the list item, including a rename option. After renaming the list item I want to refresh the ListView and display the renamed list item also. Following is my code. DocumentsFragment public class DocumentsFragment extends...

    listview with checkbox get selected row index

    c#,wpf,listview,checkbox
    here is my problem , i have a listview with checkbox , and i want to get the index of the row which is selected i want to get the index of the row to disable this row after validation i try different method CheckBox cbx = sender as CheckBox.tag;...

    Get listview item position after soft keyboard shown

    android,listview,location,on-screen-keyboard
    I have a ListView, it is under action bar and above an EditText. See picture: The list view items have random height according to its content. When click list view item, I need to focus on EditText and open soft keyboard, meanwhile I want the one being clicked to be...

    Android listview arrange alphabetically

    android,listview
    i have a listview .item in listview come from database . the problem is that the item have not arrange in alphabetically order.help me to solve my problem.this is my listview activity code this is the code of datalist activity. public class DataListActivity extends Activity { ListView listView; SQLiteDatabase sqLiteDatabase;...

    EditText in ListView loses content in scroll

    android,listview,android-listview
    I've been digging to find a solution on my problem finding answers but none of them have worked for me. :/ I have a listview with edittext in each list item and when scrolling down and go up again content of the edited edittext has been lost or other edittext...

    Differnce between click event in ListView Android

    android,listview,onclicklistener,onitemselectedlistener
    I am doing a listView on android to display the list of all collection points, each with area and address, then user can click to each item and delete/edit it. ListView is populated by an array adapter with class Collection point. When I try to set the action for user...

    How to get item position in a listview through matching string android

    android,listview
    I have a listview with custom adapter, and I have a edittext for input search. What I want to achieve is to get the item position from a listview that matches with the string from the edittext. All the examples on the web shows how to get the item position...

    WPF: Progress Bar inside ListView is not aligned vertically

    wpf,listview,progress-bar
    I have ListView with simple Progress-Bar: <ListView.Resources> <DataTemplate x:Key="MyDataTemplate"> <Grid Margin="-6"> <ProgressBar Name="prog" Maximum="100" Value="{Binding Progress}" Width="{Binding Path=Width, ElementName=ProgressCell}" Height="16" Margin="0" Background="#FFD3D0D0" Style="{StaticResource CustomProgressBar}" VerticalAlignment="Bottom" HorizontalAlignment="Stretch"/> <TextBlock Text="{Binding Path=Value, ElementName=prog, StringFormat={}{0}%}" VerticalAlignment="Center"...