add a videocam button

+ make the icons easier clickable
This commit is contained in:
tibbi 2016-06-11 21:40:22 +02:00
parent f261bb6114
commit d079805cef
7 changed files with 23 additions and 10 deletions

View File

@ -12,12 +12,23 @@
<ImageView
android:id="@+id/about"
android:layout_width="@dimen/side_icon_size"
android:layout_height="@dimen/side_icon_size"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:layout_alignParentRight="true"
android:layout_margin="@dimen/activity_margin"
android:padding="@dimen/side_icon_padding"
android:src="@mipmap/about"/>
<ImageView
android:id="@+id/videocam"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:layout_alignParentRight="true"
android:layout_below="@+id/about"
android:layout_marginRight="@dimen/activity_margin"
android:padding="@dimen/side_icon_padding"
android:src="@mipmap/videocam"/>
<LinearLayout
android:id="@+id/btn_holder"
android:layout_width="match_parent"
@ -28,23 +39,25 @@
<ImageView
android:id="@+id/toggle_camera"
android:layout_width="@dimen/side_icon_size"
android:layout_height="@dimen/side_icon_size"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:layout_weight="1"
android:padding="@dimen/side_icon_padding"
android:src="@mipmap/camera_front"/>
<ImageView
android:id="@+id/shutter"
android:layout_width="@dimen/main_icon_size"
android:layout_height="@dimen/main_icon_size"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:layout_weight="1"
android:src="@mipmap/camera"/>
<ImageView
android:id="@+id/toggle_flash"
android:layout_width="@dimen/side_icon_size"
android:layout_height="@dimen/side_icon_size"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:layout_weight="1"
android:padding="@dimen/side_icon_padding"
android:src="@mipmap/flash_off"/>
</LinearLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

View File

@ -1,6 +1,6 @@
<resources>
<dimen name="activity_margin">16dp</dimen>
<dimen name="preview_btn_margin">32dp</dimen>
<dimen name="side_icon_size">36dp</dimen>
<dimen name="main_icon_size">48dp</dimen>
<dimen name="side_icon_padding">8dp</dimen>
<dimen name="icon_size">48dp</dimen>
</resources>