Skip to content

Commit

Permalink
New live icon
Browse files Browse the repository at this point in the history
  • Loading branch information
omouren committed Jun 1, 2021
1 parent 0357c33 commit 75fa77f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/fpvout/digiview/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ private void updateLiveButtonIcon() {
liveButton.setImageDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.exo_icon_stop, this.getTheme()));
} else {
toggleView(muteButton, false);
liveButton.setImageDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.exo_icon_play, this.getTheme()));
liveButton.setImageDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.ic_live_icon, this.getTheme()));
}
});
}
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/ic_live_icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="576dp"
android:height="512dp"
android:viewportWidth="576"
android:viewportHeight="512">
<path
android:pathData="M198.27,168.37l-22.76,-22.23a16.44,16.44 0,0 0,-24 1.31,168.77 168.77,0 0,0 0,217.1 16.44,16.44 0,0 0,24 1.31l22.76,-22.22a15.12,15.12 0,0 0,1.45 -20.32,107.39 107.39,0 0,1 0,-134.64 15.11,15.11 0,0 0,-1.45 -20.31zM424.46,147.45a16.44,16.44 0,0 0,-24 -1.31l-22.76,22.23a15.12,15.12 0,0 0,-1.45 20.31,107.39 107.39,0 0,1 0,134.64 15.14,15.14 0,0 0,1.45 20.32l22.76,22.22a16.44,16.44 0,0 0,24 -1.31,168.77 168.77,0 0,0 0,-217.1z"
android:fillColor="#80FFFFFF"/>
<path
android:pathData="M288,200a56,56 0,1 0,56 56,56 56,0 0,0 -56,-56zM64,256a214.3,214.3 0,0 1,55.42 -144.06c5.59,-6.22 4.91,-15.74 -1.08,-21.59L96,68.53a16.41,16.41 0,0 0,-23.56 1C25.59,121 0,186.56 0,256s25.59,135 72.44,186.52a16.41,16.41 0,0 0,23.56 1l22.34,-21.82c6,-5.85 6.67,-15.37 1.08,-21.59A214.3,214.3 0,0 1,64 256zM503.56,69.48a16.41,16.41 0,0 0,-23.56 -1l-22.34,21.87c-6,5.85 -6.67,15.37 -1.08,21.59a214.95,214.95 0,0 1,0 288.12c-5.59,6.22 -4.91,15.74 1.08,21.59L480,443.47a16.41,16.41 0,0 0,23.56 -1C550.41,391 576,325.44 576,256s-25.59,-135 -72.44,-186.52z"
android:fillColor="#FFFFFF"/>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
android:layout_marginEnd="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/liveButton"
app:srcCompat="@drawable/exo_icon_play" />
app:srcCompat="@drawable/ic_live_icon" />

<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/muteButton"
Expand Down

0 comments on commit 75fa77f

Please sign in to comment.