RoboGuice-Sherlock

RoboGuice classes extending ActionBarSherlock classes

License

License

Categories

Categories

GUI User Interface Guice Application Layer Libs Dependency Injection
GroupId

GroupId

com.github.rtyley
ArtifactId

ArtifactId

roboguice-sherlock
Last Version

Last Version

1.5
Release Date

Release Date

Type

Type

jar
Description

Description

RoboGuice-Sherlock
RoboGuice classes extending ActionBarSherlock classes
Project URL

Project URL

https://github.com/rtyley/roboguice-sherlock
Source Code Management

Source Code Management

https://github.com/rtyley/roboguice-sherlock

Download roboguice-sherlock

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.rtyley/roboguice-sherlock/ -->
<dependency>
    <groupId>com.github.rtyley</groupId>
    <artifactId>roboguice-sherlock</artifactId>
    <version>1.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.rtyley/roboguice-sherlock/
implementation 'com.github.rtyley:roboguice-sherlock:1.5'
// https://jarcasting.com/artifacts/com.github.rtyley/roboguice-sherlock/
implementation ("com.github.rtyley:roboguice-sherlock:1.5")
'com.github.rtyley:roboguice-sherlock:jar:1.5'
<dependency org="com.github.rtyley" name="roboguice-sherlock" rev="1.5">
  <artifact name="roboguice-sherlock" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.rtyley', module='roboguice-sherlock', version='1.5')
)
libraryDependencies += "com.github.rtyley" % "roboguice-sherlock" % "1.5"
[com.github.rtyley/roboguice-sherlock "1.5"]

Dependencies

compile (1)

Group / Artifact Type Version
org.roboguice : roboguice jar 2.0

provided (2)

Group / Artifact Type Version
com.google.android : android jar 4.0.1.2
com.actionbarsherlock : actionbarsherlock jar 4.2.0

test (2)

Group / Artifact Type Version
com.pivotallabs : robolectric jar 1.1
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

roboguice-sherlock Build Status

RoboGuice classes for use with ActionBarSherlock

Both RoboGuice and ActionBarSherlock require custom base classes for Activities and Fragments, and as Java doesn't permit diamond-inheritance, or the traits of Scala, this project provides custom RoboGuice classes that extend the corresponding ones from ActionBarSherlock.

JakeWharton provided the first example of how to do this with a RoboSherlockActivity: it's a simple drudge process of taking the source for the RoboGuice class and changing the activity/fragment named in the extends declaration to the corresponding ActionBarSherlock class - there are no further complications I've encountered so far.

All classes in this project have the same name as the RoboGuice ones, with 'Sherlock' inserted after the 'Robo', ie Robo**Sherlock**ListFragment. The package is also changed to com.github.rtyley.android.sherlock.roboguice.**.

Download releases from Maven:

http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.rtyley%22%20AND%20a%3A%22roboguice-sherlock%22

Used in...

The open-source Gaug.es web analytics app by GitHub.

Versions

Version
1.5
1.4
1.3
1.2
1.1
1.0