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
<ScrollView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" > | |
<GridLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:columnCount="3" | |
android:padding="8dip" | |
android:useDefaultMargins="true" > |
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
public interface SelectModeDialogListener { | |
void onModeTypeSelected(ModeType selectedMode, int id); | |
} | |
public static DialogFragment newInstance(int id) { | |
Bundle args = new Bundle(); | |
args.putInt("id", id); | |
DialogFragment fragment = new SelectModeDialogFragment(); | |
fragment.setArguments(args); | |
return fragment; |
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
public static boolean isExistLocationInfo(String filePath) { | |
if (TextUtils.isEmpty(filePath)) { | |
return false; | |
} | |
try { | |
ExifInterface exifIf = new ExifInterface(filePath); | |
float[] output = new float[2]; | |
exifIf.getLatLong(output); | |
// GPS(0, 0) は取得失敗とみなす | |
if (output[0] == 0 && output[1] == 0) { |
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
<activity | |
android:name=".XxxActivity" | |
android:theme="@style/Custom" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="daichan4649.gps" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="15" | |
android:targetSdkVersion="17" /> |
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
<application | |
android:name="daichan4649.actionbartest.TestApplication" | |
android:icon="@drawable/ic_launcher" | |
android:label="@string/app_name" | |
android:theme="@style/AppTheme" > | |
<activity | |
android:name="daichan4649.actionbartest.MainActivity" | |
android:label="@string/app_name" > | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> |
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
package daichan4649.moon; | |
public class MoonUtil { | |
/** | |
* 月齢取得 | |
* @param year 年(1, 2, ..) | |
* @param month 月(1, 2, ..) | |
* @param day 日(1, 2, ..) | |
* @return 月齢 |
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
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 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 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 */ |