I use the fragment operation to store a list fragment that displays a bunch of products:
public class ProductsListActivity extends SherlockFragmentActivity { @Override public void onCreate(Bundle savedInstanceState) { setTheme(R.style.Sherlock___Theme); super.onCreate(savedInstanceState); setContentView(R.layout.fragment_products_list);
...
<?xml version="1.0" encoding="utf-8"?> <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:name="com.example.fragment.ProductsListFragment" android:id="@+id/list_fragment" android:layout_width="match_parent" android:layout_height="match_parent" />
...
public class ProductsListFragment extends SherlockListFragment { @Override public void onViewCreated(View view, Bundle savedInstanceState) {
I want to enable fast scrolling for a list of products and found another message that describes how to do this for list activity. But how can I activate fast scrolling of a fragment? It would be nice to define this in XML or through code.
android android-listview android-fragments android-listfragment
JJD Sep 06 '13 at 17:57 2013-09-06 17:57
source share