modify demo app

This commit is contained in:
Nereo 2015-04-16 13:34:06 +08:00
parent 15230b0d13
commit 45d1ec1fc8
5 changed files with 45 additions and 14 deletions

View File

@ -19,7 +19,11 @@
</intent-filter>
</activity>
<activity android:name="me.nereo.multi_image_selector.MultiImageSelectorActivity" />
<activity
android:configChanges="orientation|screenSize"
android:name="me.nereo.multi_image_selector.MultiImageSelectorActivity" />
<activity android:name=".GestureImageActivity" />
</application>

View File

@ -84,6 +84,14 @@ public class MainActivity extends ActionBarActivity {
}
});
/* findViewById(R.id.button2).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(MainActivity.this, GestureImageActivity.class);
startActivity(intent);
}
});*/
}
@Override

View File

@ -10,7 +10,7 @@
<TextView
android:focusableInTouchMode="true"
android:focusable="true"
android:text="选择模式:"
android:text="@string/select_mode"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="@android:color/black"
@ -26,19 +26,19 @@
<RadioButton
android:id="@+id/single"
android:text="单选"
android:text="@string/mode_single"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<RadioButton
android:id="@+id/multi"
android:text="多选"
android:text="@string/mode_multi"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RadioGroup>
<TextView
android:text="最大选择数量:"
android:text="@string/max_select_amount"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="@android:color/black"
@ -47,14 +47,14 @@
<EditText
android:id="@+id/request_num"
android:hint="默认数量为9"
android:hint="@string/hint_default_amount"
android:enabled="false"
android:inputType="number"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:text="是否显示Camera"
android:text="@string/enable_camera"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="@android:color/black"
@ -70,12 +70,12 @@
<RadioButton
android:id="@+id/show"
android:text=""
android:text="@string/enable"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<RadioButton
android:id="@+id/no_show"
android:text=""
android:text="@string/disable"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
@ -84,7 +84,7 @@
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="图片选择"
android:text="@string/go_select"
android:id="@+id/button"/>
<ScrollView

View File

@ -1,6 +1,16 @@
<resources>
<string name="app_name">MultiImageSelector</string>
<string name="app_name">多图选择</string>
<string name="action_settings">设置</string>
<string name="select_mode">选择模式</string>
<string name="mode_single">单选</string>
<string name="mode_multi">多选</string>
<string name="max_select_amount">最大选择数量</string>
<string name="hint_default_amount">默认数量为9</string>
<string name="enable_camera">是否启用照相机</string>
<string name="enable"></string>
<string name="disable"></string>
<string name="go_select">图片选择</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
</resources>

View File

@ -1,6 +1,15 @@
<resources>
<string name="app_name">MultiImageSelector</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="select_mode">Select Mode</string>
<string name="mode_single">Single-Choice</string>
<string name="mode_multi">Multi-Choice</string>
<string name="max_select_amount">Max Selected Amount</string>
<string name="hint_default_amount">default amount is 9</string>
<string name="enable_camera">Enable Camera</string>
<string name="enable">Enable</string>
<string name="disable">Disable</string>
<string name="go_select">Select</string>
</resources>