updating the Microphone vector icon, make it rounder
This commit is contained in:
parent
beac62290a
commit
afb76aa3e2
|
@ -137,7 +137,7 @@ class MainActivity : SimpleActivity() {
|
|||
}
|
||||
|
||||
private fun getToggleButtonIcon(): Drawable {
|
||||
val drawable = if (isRecording) R.drawable.ic_stop_vector else R.drawable.ic_mic_vector
|
||||
val drawable = if (isRecording) R.drawable.ic_stop_vector else R.drawable.ic_microphone_vector
|
||||
return resources.getColoredDrawableWithColor(drawable, getFABIconColor())
|
||||
}
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@ class RecorderService : Service() {
|
|||
val builder = NotificationCompat.Builder(this)
|
||||
.setContentTitle(label)
|
||||
.setContentText(getString(R.string.recording))
|
||||
.setSmallIcon(R.drawable.ic_mic_vector)
|
||||
.setSmallIcon(R.drawable.ic_microphone_vector)
|
||||
.setContentIntent(getOpenAppIntent())
|
||||
.setPriority(Notification.PRIORITY_DEFAULT)
|
||||
.setSound(null)
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="96dp"
|
||||
android:height="96dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M12,14c1.66,0 2.99,-1.34 2.99,-3L15,5c0,-1.66 -1.34,-3 -3,-3S9,3.34 9,5v6c0,1.66 1.34,3 3,3zM17.3,11c0,3 -2.54,5.1 -5.3,5.1S6.7,14 6.7,11L5,11c0,3.41 2.72,6.23 6,6.72L11,21h2v-3.28c3.28,-0.48 6,-3.3 6,-6.72h-1.7z" />
|
||||
</vector>
|
|
@ -0,0 +1,30 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="m12,14c1.66,0 2.99,-1.34 2.99,-3L15,5C15,3.34 13.66,2 12,2 10.34,2 9,3.34 9,5l0,6c0,1.66 1.34,3 3,3zM17.3,11c0,3 -2.54,5.1 -5.3,5.1C9.24,16.1 6.7,14 6.7,11L5,11c0,3.41 2.72,6.23 6,6.72l0,3.2123 2,0L13,17.72c3.28,-0.48 6,-3.3 6,-6.72z" />
|
||||
<path
|
||||
android:fillAlpha="1"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M5,11.0547a0.8516,0.9245 0,1 0,1.7031 0a0.8516,0.9245 0,1 0,-1.7031 0z"
|
||||
android:strokeAlpha="1"
|
||||
android:strokeColor="#00000000" />
|
||||
<path
|
||||
android:fillAlpha="1"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M17.293,11a0.8516,0.9245 0,1 0,1.7031 0a0.8516,0.9245 0,1 0,-1.7031 0z"
|
||||
android:strokeAlpha="1"
|
||||
android:strokeColor="#00000000" />
|
||||
<path
|
||||
android:fillAlpha="1"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M10.9992,20.9539a1,0.9245 0,1 0,2 0a1,0.9245 0,1 0,-2 0z"
|
||||
android:strokeAlpha="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
|
@ -25,6 +25,6 @@
|
|||
android:background="@drawable/circle_background"
|
||||
android:elevation="@dimen/medium_margin"
|
||||
android:padding="@dimen/normal_margin"
|
||||
android:src="@drawable/ic_mic_vector" />
|
||||
android:src="@drawable/ic_microphone_vector" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
Loading…
Reference in New Issue