Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.
ListView bookmarkList; EditText search; ... bookmarkList = (ListView) findViewById(R.id.bookmarkList); search = (EditText) findViewById(R.id.search);
@ViewById ListView bookmarkList; @ViewById EditText search;
View updateBookmarksButton1 = findViewById(R.id.updateBookmarksButton1); updateBookmarksButton1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { updateBookmarksClicked(); } });
@Click({R.id.updateBookmarksButton1, R.id.updateBookmarksButton2}) void updateBookmarksClicked() { // Do something }
// Code is hidden in order not to get scared someone
@Rest("http://www.bookmarks.com") public interface BookmarkClient { @Get("/bookmarks/{userId}?search={search}") Bookmarks getBookmarks(String search, String userId); }
Pross
Cons
Pross
Cons
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android' android { compileSdkVersion 17 buildToolsVersion: '17.0.0' }
It's better to show, than talk about it...
Checkout more Open Source apps on XDA
Presentation is available at bit.ly/DevFestTbHack