This file contains hidden or 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
public class JsonicUtil { | |
public enum ResponseType { | |
TEST_1(Test1Response.class), ; | |
private Class<? extends JsonResponse> decodeTargetClazz; | |
private ResponseType(Class<? extends JsonResponse> clazz) { | |
this.decodeTargetClazz = clazz; | |
} |
This file contains hidden or 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
public class SelectDateDialogFragment extends DialogFragment { | |
public static DialogFragment newInstance() { | |
Bundle args = new Bundle(); | |
DialogFragment fragment = new SelectDateDialogFragment(); | |
fragment.setArguments(args); | |
return fragment; | |
} |
This file contains hidden or 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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:gravity="center" | |
android:orientation="vertical" | |
android:padding="24dip" > | |
<TextView | |
android:layout_width="wrap_content" |
This file contains hidden or 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
<resources> | |
<style name="CustomTheme" parent="Theme.Sherlock.Light"> | |
<item name="android:actionBarStyle">@style/custom_actionbar_style</item> | |
</style> | |
<style name="custom_actionbar_style" parent="Widget.Sherlock.Light.ActionBar"> | |
<!-- | |
<item name="android:displayOptions">homeAsUp|useLogo|showHome|showTitle</item> | |
--> | |
<item name="android:displayOptions">useLogo|showTitle</item> |
This file contains hidden or 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
public class JSonicTest extends JsonicTestCaseBase { | |
public void testDecodeJson() { | |
for (WebApiType apiType : WebApiType.values()) { | |
String jsonText = createJsonText(apiType); | |
// decode | |
Object o = decodeJson(apiType, jsonText); | |
if (o != null) { | |
} |
This file contains hidden or 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
public interface BackPressedListener { | |
void onBackPressed(); | |
} |
This file contains hidden or 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
public class ConfirmDialogFragment extends DialogFragment { | |
/** | |
* Fragment種別 | |
*/ | |
public enum FragmentType { | |
NONE(-1, ""), | |
/** 画面1 */ | |
SCREEN_1(0, "login"), | |
/** 画面2 */ |
This file contains hidden or 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
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
// ime開かない | |
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); | |
} |
This file contains hidden or 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
public class ProgressDialogFragment extends DialogFragment { | |
public final static String TITLE = "title"; | |
public final static String MESSAGE = "message"; | |
public final static String MAX = "max"; | |
public final static String CANCELABLE = "cancelable"; | |
public static ProgressDialogFragment newInstance() { | |
return new ProgressDialogFragment(); | |
} |
This file contains hidden or 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
package daichan4649.moon; | |
public class MoonUtil { | |
/** | |
* 月齢取得 | |
* @param year 年(1, 2, ..) | |
* @param month 月(1, 2, ..) | |
* @param day 日(1, 2, ..) | |
* @return 月齢 |