Samples
Samples
ListView
Language: Oxygene, Platform: Cooper, Category: Android
https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/Cooper/Android/ListView
-
org.me.listviewapp
-
References
- android
- Source Files
-
Other Files
- res\values\strings.android-xml
- res\layout\main.layout-xml
- Properties\AndroidManifest.android-xml
- res\drawable-hdpi\icon.png
- res\drawable-mdpi\icon.png
- res\drawable-ldpi\icon.png
- res\layout\about.layout-xml
- res\layout\listitem_twolines.layout-xml
- res\layout\listview_header.layout-xml
- res\values\arrays.android-xml
- res\xml\listviewactivitypreferences.android-xml
-
References
ListViewActivitySettingsActivity.pas
namespace org.me.listviewapp;
{
This makes a preference screen, automatically mapping shared preferences from the
default shared preferences file onto the widgets as defined in the related XML file.
The single preference represented here, and used by the two ListViewActivities
is 'use_custom_adapter_preference'
}
interface
uses
java.util,
android.app,
android.content,
android.os,
android.preference,
android.view,
android.widget,
android.util
;
type
ListViewActivitySettingsActivity = public class(PreferenceActivity)
protected
method onCreate(savedInstanceState: Bundle); override;
public
const AdapterPreference = 'use_custom_adapter_preference';
end;
implementation
method ListViewActivitySettingsActivity.onCreate(savedInstanceState: Bundle);
begin
inherited;
addPreferencesFromResource(R.xml.listviewactivitypreferences);
end;
end.
