-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
69 changed files
with
2,645 additions
and
2,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
DroidParts | ||
---------- | ||
is a carefully crafted Android framework that includes: | ||
* *DI* - dependency injection for Views, resources, etc. | ||
* *SQLite* object-relational mapping. | ||
* *JSON* (de)serialization. | ||
* Improved *AsyncTasks* with Exceptions, progress & result reporting. | ||
* Better *logger* (log any object without a tag). | ||
* *RESTClient* for GETting, PUTting, POSTing, DELETing & InputStream-getting, also speaks JSON. | ||
* *ImageAttacher* to asynchronously attach images to ImageViews, cross fade support. | ||
* Numerous *Utils*. | ||
* Support for *Fragments* in cooperation with [ActionBarSherlock][1]. | ||
|
||
Getting Started | ||
--------------- | ||
User Guide is available at http://droidparts.org. | ||
Please check out a couple of sample apps under /sample. | ||
|
||
Contributing | ||
------------ | ||
* Pull Requests are preferred over Issues. | ||
* Please use http://stackoverflow.com/tags/droidparts for questions. | ||
|
||
|
||
DroidParts | ||
---------- | ||
is a carefully crafted Android framework that includes: | ||
* *DI* - dependency injection for Views, resources, etc. | ||
* *SQLite* object-relational mapping. | ||
* *JSON* (de)serialization. | ||
* Improved *AsyncTasks* with Exceptions, progress & result reporting. | ||
* Better *logger* (log any object without a tag). | ||
* *RESTClient* for GETting, PUTting, POSTing, DELETing & InputStream-getting, also speaks JSON. | ||
* *ImageAttacher* to asynchronously attach images to ImageViews, cross fade support. | ||
* Numerous *Utils*. | ||
* Support for *Fragments* in cooperation with [ActionBarSherlock][1]. | ||
|
||
Getting Started | ||
--------------- | ||
User Guide is available at http://droidparts.org. | ||
Please check out a couple of sample apps under /sample. | ||
|
||
Contributing | ||
------------ | ||
* Pull Requests are preferred over Issues. | ||
* Please use http://stackoverflow.com/tags/droidparts for questions. | ||
|
||
|
||
[1]: https://github.com/JakeWharton/ActionBarSherlock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>droidparts-base</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>droidparts-base</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Thu Sep 15 19:02:18 EEST 2011 | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 | ||
#Thu Sep 15 19:02:18 EEST 2011 | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Thu Sep 15 19:02:28 EEST 2011 | ||
eclipse.preferences.version=1 | ||
line.separator=\n | ||
#Thu Sep 15 19:02:28 EEST 2011 | ||
eclipse.preferences.version=1 | ||
line.separator=\n |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project name="droidparts-base"> | ||
<loadproperties srcFile="project.properties" /> | ||
<import file="${sdk.dir}/tools/ant/build.xml" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project name="droidparts-base"> | ||
<loadproperties srcFile="project.properties" /> | ||
<import file="${sdk.dir}/tools/ant/build.xml" /> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
/** | ||
* Copyright 2012 Alex Yanchenko | ||
* | ||
* 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. | ||
*/ | ||
package org.droidparts.activity; | ||
|
||
import org.droidparts.inject.Injectable; | ||
import org.droidparts.inject.Injector; | ||
|
||
import android.os.Bundle; | ||
|
||
public abstract class ListActivity extends android.app.ListActivity implements | ||
Injectable { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
onPreInject(); | ||
Injector.get().inject(this); | ||
} | ||
|
||
@Override | ||
public void onPreInject() { | ||
} | ||
|
||
} | ||
/** | ||
* Copyright 2012 Alex Yanchenko | ||
* | ||
* 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. | ||
*/ | ||
package org.droidparts.activity; | ||
|
||
import org.droidparts.inject.Injectable; | ||
import org.droidparts.inject.Injector; | ||
|
||
import android.os.Bundle; | ||
|
||
public abstract class ListActivity extends android.app.ListActivity implements | ||
Injectable { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
onPreInject(); | ||
Injector.get().inject(this); | ||
} | ||
|
||
@Override | ||
public void onPreInject() { | ||
} | ||
|
||
} |
70 changes: 35 additions & 35 deletions
70
base/src/org/droidparts/adapter/cursor/CursorAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
/** | ||
* Copyright 2012 Alex Yanchenko | ||
* | ||
* 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. | ||
*/ | ||
package org.droidparts.adapter.cursor; | ||
|
||
import org.droidparts.annotation.inject.InjectSystemService; | ||
import org.droidparts.inject.Injector; | ||
|
||
import android.app.Activity; | ||
import android.database.Cursor; | ||
import android.view.LayoutInflater; | ||
|
||
public abstract class CursorAdapter extends android.widget.CursorAdapter { | ||
|
||
@InjectSystemService | ||
protected LayoutInflater layoutInflater; | ||
|
||
public CursorAdapter(Activity activity, Cursor cursor) { | ||
super(activity, cursor); | ||
Injector.get().inject(activity, this); | ||
} | ||
|
||
} | ||
/** | ||
* Copyright 2012 Alex Yanchenko | ||
* | ||
* 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. | ||
*/ | ||
package org.droidparts.adapter.cursor; | ||
|
||
import org.droidparts.annotation.inject.InjectSystemService; | ||
import org.droidparts.inject.Injector; | ||
|
||
import android.app.Activity; | ||
import android.database.Cursor; | ||
import android.view.LayoutInflater; | ||
|
||
public abstract class CursorAdapter extends android.widget.CursorAdapter { | ||
|
||
@InjectSystemService | ||
protected LayoutInflater layoutInflater; | ||
|
||
public CursorAdapter(Activity activity, Cursor cursor) { | ||
super(activity, cursor); | ||
Injector.get().inject(activity, this); | ||
} | ||
|
||
} |
Oops, something went wrong.