Skip to content

Commit da934cc

Browse files
committed
Updating code indentation in RoboGuice article.
1 parent 5b9a5bf commit da934cc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

_posts/2012-05-23-roboguice-2.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tags: [roboguice, google, guice, di, ioc, android, framework]
88
Dans le cadre de mon étude des divers frameworks pour le développement java sur Android (voir mes articles précedents : [Tour d'horizon des frameworks pour Android](http://pullrequest.org/2012/02/29/tour-d-horizon-des-frameworks-java-pour-android.html) et [ORMLite pour Android](http://ormlite.com/sqlite_java_android_orm.shtml)), et après avoir introduit ORMLite pour Android dans mon application démo (à voir [ici](https://github.com/johanpoirier/Android-Booking-Demo) sur Github), j'ai ajouté le framework **RoboGuice** dans sa version 2.0. [RoboGuice](http://code.google.com/p/roboguice/) est un framework d'injection de dépendance basé sur le fameux Google Guice 3.0 et adapté pour les besoins d'Android.
99

1010
<p class="center">
11-
<img src="http://roboguice.googlecode.com/files/roboguice.png" border="0" />
11+
<img src="http://roboguice.googlecode.com/files/roboguice.png" border="0" width="220" />
1212
</p>
1313

1414

@@ -175,29 +175,29 @@ La liste complète est disponible [ici](http://code.google.com/p/roboguice/wiki/
175175
// Replaces setContent
176176
@ContentView(R.layout.my_bookings)
177177
public class MyBookings extends RoboActivity {
178-
...
178+
...
179179
}
180180
{% endhighlight %}
181181

182182
### Les widgets
183183

184184
{% highlight java %}
185-
@InjectView(R.id.hotelsButton)
186-
private Button hotelsButton;
185+
@InjectView(R.id.hotelsButton)
186+
private Button hotelsButton;
187187
{% endhighlight %}
188188

189189
### Les ressources
190190

191191
{% highlight java %}
192-
@InjectResource(R.drawable.ic_book_hotel)
193-
private Drawable bookHotelImage;
192+
@InjectResource(R.drawable.ic_book_hotel)
193+
private Drawable bookHotelImage;
194194
{% endhighlight %}
195195

196196
### Les services systèmes d'Android (WifiManager, LocationManager, ...)
197197

198198
{% highlight java %}
199-
@Inject
200-
private LocationManager locationManager;
199+
@Inject
200+
private LocationManager locationManager;
201201
{% endhighlight %}
202202

203203

0 commit comments

Comments
 (0)