Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 11584f8

Browse files
authored
Formatting
1 parent 03566ff commit 11584f8

File tree

1 file changed

+86
-84
lines changed

1 file changed

+86
-84
lines changed

index.html

+86-84
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
3+
<head>
44
<meta charset="utf-8">
55
<title>AndroidAnnotations</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -12,48 +12,56 @@
1212
<link href="css/custom.css" rel="stylesheet">
1313

1414
<link rel="shortcut icon" href="favicon.ico">
15-
</head>
15+
</head>
1616

17-
<body>
18-
19-
<a href="https://github.com/androidannotations/androidannotations"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 1000000;" src="img/forkme_right_green.png" alt="Fork me on GitHub"></a>
17+
<body>
2018

21-
<div id="menu" class="navbar navbar-fixed-top">
22-
<div class="navbar-inner">
19+
<a href="https://github.com/androidannotations/androidannotations"><img
20+
style="position: absolute; top: 0; right: 0; border: 0; z-index: 1000000;" src="img/forkme_right_green.png"
21+
alt="Fork me on GitHub"></a>
22+
23+
<div id="menu" class="navbar navbar-fixed-top">
24+
<div class="navbar-inner">
2325
<div class="container">
24-
<a class="brand" href="#">AndroidAnnotations</a>
25-
<ul class="nav">
26-
<li><a href="https://github.com/androidannotations/androidannotations/wiki">Documentation</a></li>
27-
<li><a href="http://twitter.com/AndAnnotations">Twitter</a></li>
28-
<li><a href="http://plus.google.com/106206799999983258245">Google +</a></li>
29-
</ul>
26+
<a class="brand" href="#">AndroidAnnotations</a>
27+
<ul class="nav">
28+
<li><a href="https://github.com/androidannotations/androidannotations/wiki">Documentation</a></li>
29+
<li><a href="http://twitter.com/AndAnnotations">Twitter</a></li>
30+
<li><a href="http://plus.google.com/106206799999983258245">Google +</a></li>
31+
</ul>
32+
</div>
33+
</div>
34+
</div>
35+
36+
<div class="container">
37+
38+
<div class="content">
39+
40+
<div class="hero-unit">
41+
<h1>Code Diet</h1>
42+
<p><strong>AndroidAnnotations</strong> is an Open Source framework that <strong>speeds up</strong> Android
43+
development. It takes care of the <strong>plumbing</strong>, and lets you concentrate on what's really
44+
important. By <strong>simplifying</strong> your code, it facilitates its <strong>maintenance</strong>.
45+
</p>
46+
<p><a href="https://github.com/androidannotations/androidannotations"><img src="img/logo.png"
47+
alt="AndroidAnnotations"></a></p>
48+
<p><a class="btn btn-primary btn-large"
49+
href="https://github.com/androidannotations/androidannotations/wiki">Documentation &raquo;</a></p>
50+
</div>
51+
52+
<div class="headline">
53+
<h1>Fast Android Development. Easy maintainance.</h1>
54+
<p class="headline-byline">Here is a simple example of how your code can dramatically shrink, and become
55+
much easier to understand</p>
3056
</div>
31-
</div>
32-
</div>
33-
34-
<div class="container">
35-
36-
<div class="content">
37-
38-
<div class="hero-unit">
39-
<h1>Code Diet</h1>
40-
<p><strong>AndroidAnnotations</strong> is an Open Source framework that <strong>speeds up</strong> Android development. It takes care of the <strong>plumbing</strong>, and lets you concentrate on what's really important. By <strong>simplifying</strong> your code, it facilitates its <strong>maintenance</strong>.</p>
41-
<p><a href="https://github.com/androidannotations/androidannotations"><img src="img/logo.png" alt="AndroidAnnotations"></a></p>
42-
<p><a class="btn btn-primary btn-large" href="https://github.com/androidannotations/androidannotations/wiki">Documentation &raquo;</a></p>
43-
</div>
44-
45-
<div class="headline">
46-
<h1>Fast Android Development. Easy maintainance.</h1>
47-
<p class="headline-byline">Here is a simple example of how your code can dramatically shrink, and become much easier to understand</p>
48-
</div>
49-
50-
<div class="row">
51-
<div class="span6">
52-
<h1>Before</h1>
53-
<hr/>
54-
<pre class="prettyprint linenums">
57+
58+
<div class="row">
59+
<div class="span6">
60+
<h1>Before</h1>
61+
<hr/>
62+
<pre class="prettyprint linenums">
5563
public class BookmarksToClipboardActivity extends Activity {
56-
64+
5765
BookmarkAdapter adapter;
5866

5967
ListView bookmarkList;
@@ -121,11 +129,11 @@ <h1>Before</h1>
121129

122130
task.execute(search.getText().toString(), application.getUserId());
123131
}
124-
132+
125133
private static final String BOOKMARK_URL = //
126134
"http://www.bookmarks.com/bookmarks/{userId}?search={search}";
127-
128-
135+
136+
129137
class UpdateBookmarksTask extends AsyncTask&lt;String, Void, Bookmarks&gt; {
130138

131139
@Override
@@ -151,7 +159,7 @@ <h1>Before</h1>
151159
adapter.updateBookmarks(result);
152160
bookmarkList.startAnimation(fadeIn);
153161
}
154-
162+
155163
}
156164

157165
void bookmarkListItemClicked(Bookmark selectedBookmark) {
@@ -160,33 +168,33 @@ <h1>Before</h1>
160168

161169
}
162170
</pre>
163-
</div>
164-
<div class="span6">
165-
<h1>After</h1>
166-
<hr/>
167-
<pre class="prettyprint linenums">
171+
</div>
172+
<div class="span6">
173+
<h1>After</h1>
174+
<hr/>
175+
<pre class="prettyprint linenums">
168176
@Fullscreen
169177
@EActivity(R.layout.bookmarks)
170178
@WindowFeature(Window.FEATURE_NO_TITLE)
171179
public class BookmarksToClipboardActivity extends Activity {
172-
180+
173181
BookmarkAdapter adapter;
174-
182+
175183
@ViewById
176184
ListView bookmarkList;
177185

178186
@ViewById
179187
EditText search;
180-
188+
181189
@App
182190
BookmarkApplication application;
183-
191+
184192
@RestService
185193
BookmarkClient restClient;
186194

187195
@AnimationRes
188196
Animation fadeIn;
189-
197+
190198
@SystemService
191199
ClipboardManager clipboardManager;
192200

@@ -195,12 +203,12 @@ <h1>After</h1>
195203
adapter = new BookmarkAdapter(this);
196204
bookmarkList.setAdapter(adapter);
197205
}
198-
206+
199207
@Click({R.id.updateBookmarksButton1, R.id.updateBookmarksButton2})
200208
void updateBookmarksClicked() {
201209
searchAsync(search.getText().toString(), application.getUserId());
202210
}
203-
211+
204212
@Background
205213
void searchAsync(String searchString, String userId) {
206214
Bookmarks bookmarks = restClient.getBookmarks(searchString, userId);
@@ -212,52 +220,46 @@ <h1>After</h1>
212220
adapter.updateBookmarks(bookmarks);
213221
bookmarkList.startAnimation(fadeIn);
214222
}
215-
223+
216224
@ItemClick
217225
void bookmarkListItemClicked(Bookmark selectedBookmark) {
218226
clipboardManager.setText(selectedBookmark.getUrl());
219227
}
220228

221229
}
222230
</pre>
223-
<pre class="prettyprint linenums">
231+
<pre class="prettyprint linenums">
224232
@Rest("http://www.bookmarks.com")
225233
public interface BookmarkClient {
226-
234+
227235
@Get("/bookmarks/{userId}?search={search}")
228236
Bookmarks getBookmarks(@Path String search, @Path String userId);
229237

230238
}
231239
</pre>
232-
</div>
233-
</div>
234-
235-
</div> <!-- /content -->
236-
</div> <!-- /container -->
237-
238-
<footer>
239-
<p><span class="quote">"The ratio of time spent reading [code] versus writing is well over 10 to 1 [...] [therefore] making it easy to read makes it easier to write."</span> - <span class="author">Robert C. Martin</span></p>
240-
<div>
241-
<span>Hosted by <a href="https://pages.github.com/">Github Pages</a> - <a href="https://help.github.com/articles/github-privacy-statement/">Privacy</a></span>
242-
</div>
243-
</footer>
244-
245-
<!-- Placed at the end of the document so the pages load faster -->
246-
<script src="js/jquery.js"></script>
247-
<script src="js/prettify.js"></script>
248-
<script src="js/bootstrap.min.js"></script>
249-
250-
<script type="text/javascript">
251-
prettyPrint()
252-
</script>
253-
254-
</body>
255-
</html>
256-
257-
258-
240+
</div>
241+
</div>
259242

243+
</div> <!-- /content -->
244+
</div> <!-- /container -->
260245

246+
<footer>
247+
<p><span class="quote">"The ratio of time spent reading [code] versus writing is well over 10 to 1 [...] [therefore] making it easy to read makes it easier to write."</span>
248+
- <span class="author">Robert C. Martin</span></p>
249+
<div>
250+
<span>Hosted by <a href="https://pages.github.com/">Github Pages</a> - <a
251+
href="https://help.github.com/articles/github-privacy-statement/">Privacy</a></span>
252+
</div>
253+
</footer>
261254

255+
<!-- Placed at the end of the document so the pages load faster -->
256+
<script src="js/jquery.js"></script>
257+
<script src="js/prettify.js"></script>
258+
<script src="js/bootstrap.min.js"></script>
262259

260+
<script type="text/javascript">
261+
prettyPrint()
262+
</script>
263263

264+
</body>
265+
</html>

0 commit comments

Comments
 (0)