-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
372 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 | ||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||
org.eclipse.jdt.core.compiler.compliance=1.6 | ||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||
org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.6 |
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<lint> | ||
<issue id="CommitPrefEdits"> | ||
<ignore path="src/com/joken/survey2015/PropatyActivity.java" /> | ||
</issue> | ||
</lint> |
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
tools:context="com.joken.survey2015.PropatyActivity" > | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentTop="true" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/textView1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/hello_propaty" | ||
android:layout_marginBottom="20dp" | ||
android:textAppearance="?android:attr/textAppearanceLarge" /> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" > | ||
|
||
<TextView | ||
android:id="@+id/textView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/day_prop" /> | ||
|
||
<Spinner | ||
android:id="@+id/day_spinner" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" > | ||
|
||
<TextView | ||
android:id="@+id/textView3" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/id_prop" /> | ||
|
||
<EditText | ||
android:id="@+id/id_edit" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:ems="10" | ||
android:inputType="number" > | ||
|
||
<requestFocus /> | ||
</EditText> | ||
|
||
<Button | ||
android:id="@+id/id_enter_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/prop_enter" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" > | ||
|
||
<TextView | ||
android:id="@+id/textView4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/questcount_prop" /> | ||
|
||
<EditText | ||
android:id="@+id/questcount_edit" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:ems="10" | ||
android:inputType="number" /> | ||
|
||
<Button | ||
android:id="@+id/questcount_enter_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/prop_enter" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</RelativeLayout> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
tools:context="com.joken.survey2015.PropatyActivity" > | ||
|
||
<item | ||
android:id="@+id/action_settings" | ||
android:orderInCategory="100" | ||
android:showAsAction="never" | ||
android:title="@string/action_settings"/> | ||
|
||
</menu> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="app_name">恋人探しアンケート2015</string> | ||
<string name="action_settings">Settings</string> | ||
<string name="name">おなまえ</string> | ||
<string name="mysex">じぶんの性別</string> | ||
<string name="myage">じぶんの年齢</string> | ||
<string name="tgtsex">あいての性別</string> | ||
<string name="tgtage">あいての年齢(最小~最大)</string> | ||
<string name="from">~</string> | ||
<string name="summary">全くそう思わない(星1)~とてもそう思う(星5)の5段階で回答してください</string> | ||
<string name="dialog_ok">いいよ</string> | ||
<string name="dialog_no">Noooooo!</string> | ||
<string name="action_settings">Settings</string> | ||
<string name="name">おなまえ</string> | ||
<string name="mysex">じぶんの性別</string> | ||
<string name="myage">じぶんの年齢</string> | ||
<string name="tgtsex">あいての性別</string> | ||
<string name="tgtage">あいての年齢(最小~最大)</string> | ||
<string name="from">~</string> | ||
<string name="summary">全くそう思わない(星1)~とてもそう思う(星5)の5段階で回答してください</string> | ||
<string name="dialog_ok">いいよ</string> | ||
<string name="dialog_no">Noooooo!</string> | ||
<string name="dialog_defmsg">これでok?</string> | ||
<string name="exp_success_tit">入力せいこう!</string> | ||
<string name="exp_success_tit">入力せいこう!</string> | ||
<string name="title_activity_propaty">ぷろぱてぃ</string> | ||
<string name="hello_propaty">Preferenceのあたいをいじるよ(関係者がさわってね!!!)</string> | ||
<string name="day_prop">なんにちめ?</string> | ||
<string name="id_prop">SaveされるIDは?</string> | ||
<string name="prop_enter">適用</string> | ||
<string name="questcount_prop">1こうもくのもんだいすうは?</string> | ||
|
||
</resources> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.joken.survey2015; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class CollectionUtils { | ||
|
||
/** | ||
* ArrayListを指定したサイズ毎に分割します。 | ||
* | ||
* @param origin 分割元のArrayList | ||
* @param size ArrayListの分割単位 | ||
* @return サイズ毎に分割されたArrayArrayList。但し、ArrayListがnullまたは空の場合、もしくはsizeが0以下の場合は空のArrayListを返す。 | ||
*/ | ||
public static <T> ArrayList<ArrayList<T>> devide(ArrayList<T> origin, int size) { | ||
if (origin == null || origin.isEmpty() || size <= 0) { | ||
return new ArrayList<ArrayList<T>>(0); | ||
} | ||
|
||
int block = origin.size() / size + (origin.size() % size > 0 ? 1 : 0 ); | ||
|
||
ArrayList<ArrayList<T>> devidedList = new ArrayList<ArrayList<T>>(block); | ||
for (int i = 0; i < block; i ++) { | ||
int start = i * size; | ||
int end = Math.min(start + size, origin.size()); | ||
devidedList.add(new ArrayList<T>(origin.subList(start, end))); | ||
} | ||
return devidedList; | ||
} | ||
} |
Oops, something went wrong.