diff --git a/src/android/customCamera/res/layout/activity_camera_view.xml b/src/android/customCamera/res/layout/activity_camera_view.xml
index 4241124..5a41113 100644
--- a/src/android/customCamera/res/layout/activity_camera_view.xml
+++ b/src/android/customCamera/res/layout/activity_camera_view.xml
@@ -9,7 +9,6 @@
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
-
-
-
+ android:layout_height="match_parent" >
+
+
+
+
-
-
-
-
diff --git a/src/android/customCamera/res/values/strings.xml b/src/android/customCamera/res/values/strings.xml
index fb8296f..b9fad09 100644
--- a/src/android/customCamera/res/values/strings.xml
+++ b/src/android/customCamera/res/values/strings.xml
@@ -6,11 +6,12 @@
Settings
CameraActivityNative
Start Custom Camera
- Capture
TODO
sss
Miniature
Photo
Ceci est le bouton permettant d\'afficher une miniature
Il s\'agit de l\'image de fond de l\'appareil photo
+ Accepter Photo
+ Refuser Photo
diff --git a/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java b/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java
index 7d47843..aafee45 100644
--- a/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java
+++ b/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java
@@ -7,8 +7,6 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
-import android.util.Log;
-
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
@@ -29,6 +27,7 @@ import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
+import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
@@ -320,6 +319,7 @@ public class CameraActivity extends Activity {
*/
public void onPictureTaken(final byte[] data, Camera camera) {
// Show buttons to accept or decline the picture.
+
final LinearLayout keepPhoto = (LinearLayout) findViewById(R.id.keepPhoto);
keepPhoto.setVisibility(View.VISIBLE);
Button accept = (Button)findViewById(R.id.accept);
@@ -329,6 +329,13 @@ public class CameraActivity extends Activity {
final Button photo = (Button)findViewById(R.id.capture);
photo.setVisibility(View.INVISIBLE);
+ // Put button miniature at the top of the page
+ Button miniature = (Button)findViewById(R.id.miniature);
+ LayoutParams params = (RelativeLayout.LayoutParams)miniature.getLayoutParams();
+ ((RelativeLayout.LayoutParams) params).addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, 0);
+ ((RelativeLayout.LayoutParams) params).addRule(RelativeLayout.ALIGN_PARENT_TOP, RelativeLayout.TRUE);
+ miniature.setLayoutParams(params);
+
// Stop link between view and camera to start the preview picture.
mCamera.stopPreview();