{
case "P":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_P;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
break;
case "A":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_A;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
break;
case "S":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_S;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
break;
case "M":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_M;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_DOWN : ICameraFeatureDispatcher.FEATURE_APERTURE_DOWN;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN : ICameraFeatureDispatcher.FEATURE_APERTURE_DOWN;
break;
case "ART":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_ART;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_DOWN;
break;
case "iAuto":
{
case "P":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_P;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
break;
case "A":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_A;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
break;
case "S":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_S;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
break;
case "M":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_M;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_UP : ICameraFeatureDispatcher.FEATURE_APERTURE_UP;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP : ICameraFeatureDispatcher.FEATURE_APERTURE_UP;
break;
case "ART":
preference_action_id = preference_action_id + ICameraFeatureDispatcher.MODE_ART;
- defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_AE_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
+ defaultAction = (isLongClick) ? ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP : ICameraFeatureDispatcher.FEATURE_EXPOSURE_BIAS_UP;
break;
case "iAuto":
import android.util.Log;
import jp.sfjp.gokigen.a01c.IShowInformation;
+import jp.sfjp.gokigen.a01c.R;
import jp.sfjp.gokigen.a01c.olycamerawrapper.property.IOlyCameraProperty;
import jp.sfjp.gokigen.a01c.olycamerawrapper.property.IOlyCameraPropertyProvider;
private final IShowInformation informationObject;
// 表示エリア定義用... : 将来的には preferenceにおいてカスタマイズ可能にするつもり
+ private int shutterButtonId = R.id.btn_6; // シャッターボタンのボタンID
private int takeModeArea = IShowInformation.AREA_1; // 撮影モードの表示エリア指定
private int shutterSpeedArea = IShowInformation.AREA_2; // シャッタースピードの表示エリア指定
private int apertureArea = IShowInformation.AREA_3; // 絞り値の表示エリア指定
@Override
public void updateTakeMode()
{
+ Log.v(TAG, "updateTakeMode()");
+ String propertyValue = propertyProxy.getCameraPropertyValueTitle(propertyProxy.getCameraPropertyValue(IOlyCameraProperty.TAKE_MODE));
+
+ updateButtonIcon(propertyValue); // ボタンアイコンの更新
if (takeModeArea == IShowInformation.AREA_NONE)
{
return;
}
- Log.v(TAG, "updateTakeMode()");
- String propertyValue = propertyProxy.getCameraPropertyValueTitle(propertyProxy.getCameraPropertyValue(IOlyCameraProperty.TAKE_MODE));
if (propertyValue != null)
{
informationObject.setMessage(takeModeArea, Color.WHITE, propertyValue);
}
/**
+ * ボタンのアイコンを更新する
+ *
+ */
+ private void updateButtonIcon(String takeMode)
+ {
+ int btnResId;
+ if (takeMode.equals("Movie"))
+ {
+ btnResId = R.drawable.btn_videocam;
+ }
+ else
+ {
+ btnResId = R.drawable.btn_ic_camera_alt;
+ }
+ if (shutterButtonId != 0)
+ {
+ informationObject.setButtonDrawable(shutterButtonId, btnResId);
+ }
+ }
+
+ /**
* 撮影モードに合わせて、表示内容を変化させる...
*
*/
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:padding="2dp"
+ android:padding="1dp"
app:layout_box="all">
<jp.sfjp.gokigen.a01c.liveview.CameraLiveImageView
<TextView
android:id="@+id/text_1"
android:layout_width="match_parent"
- android:layout_height="16dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/app_name"
android:textColor="@android:color/white"
<TextView
android:id="@+id/text_2"
android:layout_width="match_parent"
- android:layout_height="14dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/text_message_blank"
android:textColor="@android:color/white"
<TextView
android:id="@+id/text_3"
android:layout_width="match_parent"
- android:layout_height="14dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/text_message_blank"
android:textColor="@android:color/white"
<TextView
android:id="@+id/text_4"
android:layout_width="match_parent"
- android:layout_height="14dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/text_message_blank"
android:textColor="@android:color/holo_orange_light"
<TextView
android:id="@+id/text_1"
android:layout_width="match_parent"
- android:layout_height="16dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/app_name"
android:textColor="@android:color/white"
<TextView
android:id="@+id/text_2"
android:layout_width="match_parent"
- android:layout_height="16dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/text_message_blank"
android:textColor="@android:color/white"
<TextView
android:id="@+id/text_3"
android:layout_width="match_parent"
- android:layout_height="16dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/text_message_blank"
android:textColor="@android:color/white"
<TextView
android:id="@+id/text_4"
android:layout_width="match_parent"
- android:layout_height="16dp"
+ android:layout_height="18dp"
android:layout_weight="1"
android:text="@string/text_message_blank"
android:textColor="@android:color/holo_orange_light"