ListView in Preference

I've created a custon preference screen for my Android application (Honeycomb), that contains a ListView.

public class XXXPreferences extends Preference
{
    @Override
    protected View onCreateView(ViewGroup parent)
    {
          ListView...
    }
}

Everyting is shown as expected, but the ListView is not scrolling. It seems that it is because the Preference class has a build in ScrollView and the ListView does not supported to be embedded in a ScrollView.

So I would like to know if it is possible to remove the ScollView of the Preference class or if there is another trick to make things work !?

Thanks in advance for your response :) Cheers

Answers


If the preference class has a scrollview, you shouldn't need your ListView. Just use a vertical LinearLayout and add your layouts to that as needed.


Need Your Help

Multi-column Floated Divs Row Issue

jquery css

I need a primarily css or js way to have div floats on a different row drop into the excess height, bad description, I know. Here is a example: http://jsfiddle.net/aPwtR/1/

MIPS Input Taking

windows mips pcspim

How to take input in main function in mips?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.