use a bit lower resolution icons
@ -131,7 +131,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
||||
mPreview = Preview(this, camera_view, this)
|
||||
mPreview!!.layoutParams = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
|
||||
view_holder.addView(mPreview)
|
||||
toggle_camera.setImageResource(if (mCurrCameraId == Camera.CameraInfo.CAMERA_FACING_BACK) R.drawable.ic_camera_front else R.drawable.ic_camera_back)
|
||||
toggle_camera.setImageResource(if (mCurrCameraId == Camera.CameraInfo.CAMERA_FACING_BACK) R.drawable.ic_camera_front else R.drawable.ic_camera_rear)
|
||||
|
||||
mFocusRectView = FocusRectView(applicationContext)
|
||||
view_holder.addView(mFocusRectView)
|
||||
@ -195,7 +195,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
||||
mPreview?.releaseCamera()
|
||||
if (mPreview?.setCamera(mCurrCameraId) == true) {
|
||||
if (mCurrCameraId == Camera.CameraInfo.CAMERA_FACING_FRONT) {
|
||||
newIconId = R.drawable.ic_camera_back
|
||||
newIconId = R.drawable.ic_camera_rear
|
||||
}
|
||||
toggle_camera.setImageResource(newIconId)
|
||||
disableFlash()
|
||||
|
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 274 B |
BIN
app/src/main/res/drawable-hdpi/ic_camera_rear.png
Normal file
After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 306 B |
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 193 B |
BIN
app/src/main/res/drawable-mdpi/ic_camera_rear.png
Normal file
After Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 602 B After Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 745 B |
Before Width: | Height: | Size: 875 B After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 875 B After Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 516 B After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 843 B |
Before Width: | Height: | Size: 437 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 570 B |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 290 B |