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
ImageLoader imageLoader = AppController.getInstance().getImageLoader(); | |
ArticleUserModel userModel = articleModel.getUser(); | |
// NetworkImageView viewHolder.userIconImageView | |
viewHolder.userIconImageView.setImageUrl(userModel.getProfileImageURL(), imageLoader); |
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
/** | |
private static final int USER_ICON_IMAGE_WIDTH = 50; | |
private static final int USER_ICON_IMAGE_HEIGHT = 50; | |
*/ | |
ImageLoader.ImageContainer imageContainer = (ImageLoader.ImageContainer)viewHolder.userIconImageView.getTag(); | |
// タグ内にImageContainerがあったら処理中ということで、処理をキャンセルする | |
if (imageContainer != null) { | |
imageContainer.cancelRequest(); |
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
/** | |
private static final int APP_CACHE_MAX_SIZE = 8 * 1024 * 1024; | |
*/ | |
this.webView.getSettings().setAppCacheEnabled(true); | |
// this.webView.getSettings().setAppCacheMaxSize(APP_CACHE_MAX_SIZE); | |
this.webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); |
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
// ${PROJECT_ROOT}/${APP}/build.gradle | |
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 20 | |
buildToolsVersion "20.0.0" | |
defaultConfig { | |
applicationId "xyz.ryochin.qittaro" |
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
// modlues/volley/build.gradle | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.12.+' | |
} | |
} |
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
// tableViewにPullToRefreshを追加します。 | |
// actionHandler:^(void()) | |
// pull to refreshされた時にする処理です。 | |
// backgroundColor:UIColor | |
// pull to refresh時に見える背景の色です。 | |
// HeightShowed:CGFloat | |
// なにもしていない状態(普通の状態)の時に上から見えるpullToRefreshViewnの高さです。 |
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
#import "RESideMenu.h" | |
@interface KSGRootViewController : RESideMenu<RESideMenuDelegate> | |
@end |
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
<menu xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
tools:context=".MainActivity" > | |
<item android:id="@+id/action_settings" | |
android:title="@string/action_settings" | |
android:orderInCategory="100" | |
app:showAsAction="never" /> | |
<item android:id="@+id/progress" | |
android:title="@string/action_progress" |