mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	add a videocam button
+ make the icons easier clickable
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-hdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-hdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 234 B  | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-mdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-mdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 178 B  | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-xhdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-xhdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 290 B  | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-xxhdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-xxhdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 437 B  | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-xxxhdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/mipmap-xxxhdpi/videocam.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 591 B  | 
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user