easyaspi314 / AppCompatFragmentListActivity

ListActivity for the Support Library and AppCompat.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AppCompatFragmentListActivity

ListActivity for the Support Library and AppCompat. This simple library contains two classes: ActionBarListActivity and FragmentListActivity. To use them, just import this library into Eclipse.

###Usage:###

Without AppCompat:

import android.support.v4.app.FragmentListActivity;
...
public class Foo extends FragmentListActivity {

With AppCompat:

import android.support.v7.app.ActionBarListActivity;
...
public class Bar extends ActionBarListActivity {

Note: If you want to use onContentChanged() on this one, replace it with onSupportContentChanged(). This only applies to ActionBarListActivity (and ActionBarActivity).

#####Goes good with other AppCompat/SupportLib extensions, especially android-support-v4-preferencefragment

####Notice:####

All of this code is slightly modified from the Android Open Source Project. I used the following files:

ListActivity.java

 Copyright (C) 2006 The Android Open Source Project

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

list_content.xml

Copyright 2010, The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

ListActivity for the Support Library and AppCompat.

License:Apache License 2.0


Languages

Language:Java 100.0%