diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/ic_launcher.png | bin | 0 -> 5115 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_launcher.png | bin | 0 -> 5115 bytes | |||
-rw-r--r-- | res/drawable-nodpi/ic_capture_camera_normal.png | bin | 0 -> 3547 bytes | |||
-rw-r--r-- | res/drawable-nodpi/photos.png | bin | 0 -> 4679 bytes | |||
-rw-r--r-- | res/drawable-nodpi/record_button.png | bin | 0 -> 1558 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_launcher.png | bin | 0 -> 5115 bytes | |||
-rw-r--r-- | res/drawable/circle_background.xml | 18 | ||||
-rw-r--r-- | res/drawable/circle_button.xml | 20 | ||||
-rw-r--r-- | res/drawable/circle_button_blue.xml | 20 | ||||
-rw-r--r-- | res/drawable/focus_square_button.xml | 21 | ||||
-rw-r--r-- | res/drawable/shot_circle.xml | 10 | ||||
-rw-r--r-- | res/layout/activity_main.xml | 232 | ||||
-rw-r--r-- | res/values-sw600dp/dimens.xml | 8 | ||||
-rw-r--r-- | res/values-sw720dp-land/dimens.xml | 9 | ||||
-rw-r--r-- | res/values-v11/styles.xml | 11 | ||||
-rw-r--r-- | res/values-v14/styles.xml | 12 | ||||
-rw-r--r-- | res/values/colors.xml | 11 | ||||
-rw-r--r-- | res/values/dimens.xml | 10 | ||||
-rw-r--r-- | res/values/strings.xml | 16 | ||||
-rw-r--r-- | res/values/styles.xml | 20 |
20 files changed, 418 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..16dfd55 --- /dev/null +++ b/res/drawable-hdpi/ic_launcher.png diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..16dfd55 --- /dev/null +++ b/res/drawable-mdpi/ic_launcher.png diff --git a/res/drawable-nodpi/ic_capture_camera_normal.png b/res/drawable-nodpi/ic_capture_camera_normal.png Binary files differnew file mode 100644 index 0000000..0360396 --- /dev/null +++ b/res/drawable-nodpi/ic_capture_camera_normal.png diff --git a/res/drawable-nodpi/photos.png b/res/drawable-nodpi/photos.png Binary files differnew file mode 100644 index 0000000..26410f7 --- /dev/null +++ b/res/drawable-nodpi/photos.png diff --git a/res/drawable-nodpi/record_button.png b/res/drawable-nodpi/record_button.png Binary files differnew file mode 100644 index 0000000..7817eb4 --- /dev/null +++ b/res/drawable-nodpi/record_button.png diff --git a/res/drawable-xhdpi/ic_launcher.png b/res/drawable-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..16dfd55 --- /dev/null +++ b/res/drawable-xhdpi/ic_launcher.png diff --git a/res/drawable/circle_background.xml b/res/drawable/circle_background.xml new file mode 100644 index 0000000..07f7699 --- /dev/null +++ b/res/drawable/circle_background.xml @@ -0,0 +1,18 @@ +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + <shape android:shape="oval"> + <size android:width="48dp" android:height="48dp"/> + <stroke android:width="0dp" android:color="#FFBBBBBB" /> + <solid android:color="#D05555FF" /> + </shape> + </item> + <item> + <shape android:shape="oval"> + <size android:width="48dp" android:height="48dp"/> + <stroke android:width="0dp" android:color="#FFBBBBBB" /> + <solid android:color="#665555FF" /> <!-- spec is 26000000 --> + </shape> + </item> + + +</selector>
\ No newline at end of file diff --git a/res/drawable/circle_button.xml b/res/drawable/circle_button.xml new file mode 100644 index 0000000..d25a157 --- /dev/null +++ b/res/drawable/circle_button.xml @@ -0,0 +1,20 @@ +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + + <shape android:shape="oval"> + <size android:width="80dp" android:height="80dp"/> + <stroke android:width="0.5dp" android:color="#FFBBBBBB" /> + <solid android:color="#BB888888" /> + </shape> + + </item> + + <item> + <shape android:shape="oval"> + <size android:width="80dp" android:height="80dp"/> + <stroke android:width="0.5dp" android:color="#FFBBBBBB" /> + <solid android:color="#BB444444" /> + </shape> + </item> + +</selector>
\ No newline at end of file diff --git a/res/drawable/circle_button_blue.xml b/res/drawable/circle_button_blue.xml new file mode 100644 index 0000000..f1f6e3f --- /dev/null +++ b/res/drawable/circle_button_blue.xml @@ -0,0 +1,20 @@ +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + + <shape android:shape="oval"> + <size android:width="80dp" android:height="80dp"/> + <stroke android:width="0.5dp" android:color="#FFBBBBBB" /> + <solid android:color="#BB666688" /> + </shape> + + </item> + + <item> + <shape android:shape="oval"> + <size android:width="80dp" android:height="80dp"/> + <stroke android:width="0.5dp" android:color="#FFBBBBBB" /> + <solid android:color="#BB222244" /> + </shape> + </item> + +</selector>
\ No newline at end of file diff --git a/res/drawable/focus_square_button.xml b/res/drawable/focus_square_button.xml new file mode 100644 index 0000000..bed0c57 --- /dev/null +++ b/res/drawable/focus_square_button.xml @@ -0,0 +1,21 @@ +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <!-- pressed state --> + <item android:state_pressed="true"> + <shape android:shape="rectangle"> + <size android:width="80dp" android:height="80dp"/> + <stroke android:width="2dp" android:color="#FFFFFF00"/> + <solid android:color="#00FFFFFF"/> + </shape> + + </item> + + <item> + <shape android:shape="rectangle"> + <size android:width="80dp" android:height="80dp"/> + <stroke android:width="0.5dp" android:color="#FFFFFF00"/> + <solid android:color="#00FFFFFF"/> + </shape> + </item> + +</selector>
\ No newline at end of file diff --git a/res/drawable/shot_circle.xml b/res/drawable/shot_circle.xml new file mode 100644 index 0000000..9fe49e4 --- /dev/null +++ b/res/drawable/shot_circle.xml @@ -0,0 +1,10 @@ +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item> + <shape android:shape="oval"> + <size android:width="70dp" android:height="70dp"/> + <stroke android:width="0.5dp" android:color="#CCFFFFFF" /> + <solid android:color="#66FFFFFF" /> + </shape> + </item> + +</selector>
\ No newline at end of file diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml new file mode 100644 index 0000000..c54786f --- /dev/null +++ b/res/layout/activity_main.xml @@ -0,0 +1,232 @@ +<?xml version="1.0" encoding="utf-8"?> + + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="@color/capture_button_color" + android:orientation="vertical" + android:id="@+id/root_view"> + + <FrameLayout + android:layout_width="360dp" + android:layout_height="480dp" + android:layout_gravity="center_horizontal" + android:id="@+id/preview_frame"> + + <SurfaceView + android:id="@+id/preview_view" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="#FF000000" /> + + <com.google.snappy.PreviewOverlay + android:id="@+id/preview_overlay_view" + android:layout_width="fill_parent" + android:layout_height="fill_parent" /> + + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/reprocessing_controls" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:orientation="vertical"> + + <TextView + android:id="@+id/label_reprocessing" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:text="@string/Reprocessing" + android:background="#44000000" + android:textColor="#FFFFFF"/> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/root_view4" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:orientation="horizontal"> + + <Button + android:id="@+id/jpeg_capture" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/jpeg_capture" + android:textSize="@dimen/control_text" /> + + <ToggleButton + android:id="@+id/toggle_burst_jpeg" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="Burst JPEG" + android:textOn="Burst JPEG" + android:textSize="@dimen/control_text" /> + + <ToggleButton + android:id="@+id/toggle_save_sdcard" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="Save" + android:textOn="Save" + android:textSize="@dimen/control_text" /> + + <Button + android:id="@+id/button_noise_reprocess" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/nr_unknown" + android:textSize="@dimen/control_text" /> + + <Button + android:id="@+id/button_edge_reprocess" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/edge_unknown" + android:textSize="@dimen/control_text" /> + </LinearLayout> + </LinearLayout> + </FrameLayout> + + + <TextView + android:id="@+id/label1" + android:layout_width="wrap_content" + android:layout_height="18dp" + android:textSize="14dp" + android:textColor="@color/exp_iso_color" + android:layout_gravity="left" + android:text="@string/minus" + android:textAppearance="?android:attr/textAppearanceMedium" + android:fontFamily="monospace" + /> + + <TextView + android:id="@+id/label2" + android:layout_width="wrap_content" + android:layout_height="18dp" + android:textSize="14dp" + android:textColor="@color/exp_iso_color" + android:layout_gravity="left" + android:text="@string/minus" + android:textAppearance="?android:attr/textAppearanceMedium" + android:fontFamily="monospace" + /> + + <HorizontalScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/root_view2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:orientation="horizontal"> + + <ToggleButton + android:id="@+id/toggle_yuv_full" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="YUV Full" + android:textOn="YUV Full" + android:textSize="@dimen/control_text" /> + + <ToggleButton + android:id="@+id/toggle_yuv_vga" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="320x240" + android:textOn="320x240" + android:textSize="@dimen/control_text" /> + + <ToggleButton + android:id="@+id/toggle_raw" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="Raw" + android:textOn="Raw" + android:textSize="@dimen/control_text" /> + + <Button + android:id="@+id/button_noise" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/nr_unknown" + android:textSize="@dimen/control_text" /> + + <Button + android:id="@+id/button_edge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/edge_unknown" + android:textSize="@dimen/control_text" /> + + <ToggleButton + android:id="@+id/toggle_face" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="Face" + android:textOn="Face" + android:textSize="@dimen/control_text" /> + + </LinearLayout> + + </HorizontalScrollView> + + <HorizontalScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/root_view3" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:orientation="horizontal"> + + <ToggleButton + android:id="@+id/toggle_front_cam" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="Front" + android:textOn="Front" + android:textSize="@dimen/control_text" /> + + <ToggleButton + android:id="@+id/toggle_show_3A" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="3A viz" + android:textOn="3A viz" + android:textSize="@dimen/control_text" /> + + <ToggleButton + android:id="@+id/toggle_show_gyro" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textOff="Gyro" + android:textOn="Gyro" + android:textSize="@dimen/control_text" /> + + <Button + android:id="@+id/af_trigger" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/aftrig" + android:textSize="@dimen/control_text" /> + + <Button + android:id="@+id/gallery" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/gallery" + android:textSize="@dimen/control_text" /> + </LinearLayout> + + + + </HorizontalScrollView> + +</LinearLayout>
\ No newline at end of file diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml new file mode 100644 index 0000000..44f01db --- /dev/null +++ b/res/values-sw600dp/dimens.xml @@ -0,0 +1,8 @@ +<resources> + + <!-- + Customize dimensions originally defined in res/values/dimens.xml (such as + screen margins) for sw600dp devices (e.g. 7" tablets) here. + --> + +</resources> diff --git a/res/values-sw720dp-land/dimens.xml b/res/values-sw720dp-land/dimens.xml new file mode 100644 index 0000000..61e3fa8 --- /dev/null +++ b/res/values-sw720dp-land/dimens.xml @@ -0,0 +1,9 @@ +<resources> + + <!-- + Customize dimensions originally defined in res/values/dimens.xml (such as + screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. + --> + <dimen name="activity_horizontal_margin">128dp</dimen> + +</resources> diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml new file mode 100644 index 0000000..3c02242 --- /dev/null +++ b/res/values-v11/styles.xml @@ -0,0 +1,11 @@ +<resources> + + <!-- + Base application theme for API 11+. This theme completely replaces + AppBaseTheme from res/values/styles.xml on API 11+ devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> + <!-- API 11 theme customizations can go here. --> + </style> + +</resources> diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml new file mode 100644 index 0000000..a91fd03 --- /dev/null +++ b/res/values-v14/styles.xml @@ -0,0 +1,12 @@ +<resources> + + <!-- + Base application theme for API 14+. This theme completely replaces + AppBaseTheme from BOTH res/values/styles.xml and + res/values-v11/styles.xml on API 14+ devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> + <!-- API 14 theme customizations can go here. --> + </style> + +</resources> diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..47fef74 --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="horiz_rule_color">#777777</color> + <color name="black">#000000</color> + <color name="dark_blue">#000066</color> + <color name="face_color">#FFFF00</color> + <color name="capture_button_color">#191919</color> + <color name="exp_iso_color">#FFFFFF</color> + <color name="hud_color">#DDDDDD</color> + <color name="message_color">#444444</color> +</resources>
\ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100644 index 0000000..ec52df0 --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,10 @@ +<resources> + + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> + <dimen name="face_circle_stroke">0.65dp</dimen> + <dimen name="hud_stroke">0.33dp</dimen> + <dimen name="control_text">12dp</dimen> + +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..cf216cf --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="app_name">Snappy2</string> + <string name="action_settings">Settings</string> + <string name="hello_world">This is a snappy app!</string> + <string name="jpeg_capture">JPEG</string> + <string name="aftrig">AF trig</string> + <string name="nr_unknown">NR --</string> + <string name="edge_unknown">Edge --</string> + <string name="minus">–</string> + <string name="plus">+</string> + <string name="gallery">Gallery</string> + <string name="Reprocessing">–– Reprocessing ––</string> + +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..6ce89c7 --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,20 @@ +<resources> + + <!-- + Base application theme, dependent on API level. This theme is replaced + by AppBaseTheme from res/values-vXX/styles.xml on newer devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Light"> + <!-- + Theme customizations available in newer API levels can go in + res/values-vXX/styles.xml, while customizations related to + backward-compatibility can go here. + --> + </style> + + <!-- Application theme. --> + <style name="AppTheme" parent="AppBaseTheme"> + <!-- All customizations that are NOT specific to a particular API-level can go here. --> + </style> + +</resources> |