AlertDialog.getListView() missing in 1.1r1 sdk

by Max_well » Sat, 11 Apr 2009 13:42:14 GMT


Sponsored Links
 Hello,

Searching for a way to manipulate the list view of AlertDialog, I come
across the AlertDialog source code(1).
To my surprise, there is a getListView() method defined since mid
december 2008(2), but there is no such method in the 1.1r1 doc or in
the provided sdk.

Is there a reason that the method is not present in the sdk ?

Thanks for the answer.
Max_well

- Checked against the current windows 1.1r1 sdk zip (3).

(1) 
 http://android.git.kernel.org/?p=platform/frameworks/base.git ;a=blob;f=core/java/android/app/AlertDialog.java;hb=HEAD
(2)
 http://android.git.kernel.org/?p=platform/frameworks/base.git ;a=history;f=core/java/android/app/AlertDialog.java;h=021dc2e39f210d1e8c39f2380e83fd986ddf4d54;hb=HEAD
(3) 
 http://developer.android.com/sdk/download.html?v=android-sdk-windows-1.1_r1.zip 
--~--~---------~--~----~------------~-------~--~----~



AlertDialog.getListView() missing in 1.1r1 sdk

by Dianne Hackborn » Sat, 11 Apr 2009 19:51:24 GMT


 There are tons of methods in the framework that are not in the SDK,  I can't
speak specifically to this one, but generally that is done because the
method is not something that will be maintained forever.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


AlertDialog.getListView() missing in 1.1r1 sdk

by Dianne Hackborn » Sat, 11 Apr 2009 19:53:04 GMT


 Oh actually look at this -- you are just looking at a method that was added
after 1.1.  It's nothing more than that.







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to share preference across several Activities?

Hello,

I have two activities in two different packages: com.foo.a and com.foo.b. Is
it possible to create an PreferenceActivity (with the exact same XML file)
so that the preference is shared across the two activies?

Thanks

--~--~---------~--~----~------------~-------~--~----~

2. Restricting number of items AutoCompleteTextView displays.

I have an AutoCompleteTextView working correctly. I want to limit the
amount of items which show in the drop down menu which appears (in
order to stop the menu appearing over other screen items). I cannot
find the attribute I have to change for this anywhere. My
AutoCompleteTextView is bound to a custom TextView defined as follows:

<drop.xml>
<?xml version="1.0" encoding="UTF-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@android:id/text1"
        style="android:R.style.Widget_ListView_DropDown"
        android:paddingTop="2dip"
        android:paddingBottom="3dip"
        android:textColor="#000"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                R.layout.drop, CONTACTS);

--~--~---------~--~----~------------~-------~--~----~

3. android background application

4. Please help me in defining the style of my custom widget in my theme.

5. Restricting number of items AutoCompleteTextView displays.

6. Programmatically get resource information

7. Margin-problem with changed layout for titlebar