How to show an empty view with a RecyclerView?

I am used to put an special view inside the layout file as described in the ListActivity documentation to be displayed when there is no data. This view has the id “android:id/empty”. <TextView android:id=”@android:id/empty” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”@string/no_data” /> I wonder how this can be done with the new RecyclerView? 15 Answers 15

How to add a ListView to a Column in Flutter?

I’m trying to construct a simple login page for my Flutter app. I’ve successfully built the TextFields and log in/Sign in buttons. I want to add a horizontal ListView. When I run the code my elements disappear, if I do it without the ListView, it’s fine again. How can I do this correctly? return new … Read more

ListBox vs. ListView – how to choose for data binding

I’m considering either a ListBox or a ListView for a WPF application. It seems either supports data binding and item templates. My application has a simple list of items that I intend to be able to search/sort/filter based on user input. The data binding demo (http://msdn.microsoft.com/en-us/library/ms771319.aspx) uses a ListBox with a CollectionViewSource. Does anyone have … Read more

How do you dynamically add elements to a ListView on Android?

Can anyone explain or suggest a tutorial to dynamically create a ListView in android? Here are my requirements: I should be able to dynamically add new elements by pressing a button. Should be simple enough to understand (possibly without any performance improvements or convertView, for instance) I know there are quite a few questions on … Read more

List view getListItemXmlAttributes method fails with child publication items

I have created a JS class to populate SG/Folder list view data, when items are modified. (As per Jaime’s approach) Everything works great when I operate on items in the publication they’re created in. Ex: I open a component or page and the custom locked by column immediately updates and shows my user name. However, … Read more

How do I remove lines between ListViews on Android?

I’m using two ListViews like this: <ListView android:id=”@+id/ListView” android:text=”@string/Website” android:layout_height=”30px” android:layout_width=”150px” android:scrollbars=”none” android:transcriptMode=”normal”/> <ListView android:id=”@+id/ListView1″ android:text=”@string/Website” android:layout_height=”30px” android:layout_width=”150px” android:scrollbars=”none” android:transcriptMode=”normal”/> There is one blank line between the two ListViews. How do I remove it? 13 Answers 13