Skip to content

Commit

Permalink
Bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
TalbotGooday committed Jul 16, 2021
1 parent 7e169fd commit ef25737
Show file tree
Hide file tree
Showing 9 changed files with 981 additions and 863 deletions.
6 changes: 6 additions & 0 deletions .idea/google-java-format.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion app/src/main/java/com/goodayapps/avatarview/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package com.goodayapps.avatarview

import android.graphics.Color
import android.os.Bundle
import android.util.DisplayMetrics
import android.widget.SeekBar
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.res.ResourcesCompat
import androidx.core.view.children
import com.goodayapps.widget.AvatarDrawable
import com.goodayapps.widget.AvatarView
import com.goodayapps.widget.avatarDrawable
Expand Down Expand Up @@ -107,7 +110,7 @@ class MainActivity : AppCompatActivity() {
}

private inline fun applyToAvatars(action: (AvatarView) -> Unit) {
arrayOf(avatarView0, avatarView1, avatarView2, avatarView3).forEach { action.invoke(it) }
avatars_list.children.mapNotNull { it as? AvatarView }.forEach { action.invoke(it) }
}

private fun convertDpToPixel(dp: Int): Int {
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/drawable-hdpi/ic_bell.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="17dp"
android:height="21dp"
android:viewportWidth="17"
android:viewportHeight="21">
<path
android:fillColor="#FF000000"
android:pathData="M14.219,7.69v3.184c0,0.856 0.075,2.242 0.166,3.09L14.498,15L1.962,15l0.112,-1.036c0.093,-0.85 0.168,-2.237 0.168,-3.09L2.242,7.69c0,-3.207 2.686,-5.815 5.988,-5.815 3.303,0 5.989,2.608 5.989,5.815zM9.969,16.875v0.187c0,0.93 -0.78,1.688 -1.74,1.688 -0.958,0 -1.738,-0.757 -1.738,-1.688v-0.187zM11.899,17.062v-0.187h2.898c0.487,0 0.946,-0.2 1.259,-0.549a1.57,1.57 0,0 0,0.395 -1.234l-0.144,-1.325a32.48,32.48 0,0 1,-0.157 -2.893L16.15,7.69C16.15,3.45 12.597,0 8.23,0S0.31,3.45 0.31,7.69v3.184c0,0.8 -0.07,2.097 -0.157,2.893L0.01,15.092c-0.05,0.457 0.09,0.895 0.394,1.234 0.313,0.349 0.772,0.549 1.26,0.549h2.895v0.187c0,1.965 1.647,3.563 3.67,3.563 2.024,0 3.67,-1.598 3.67,-3.563z"/>
</vector>
15 changes: 15 additions & 0 deletions app/src/main/res/drawable-hdpi/ic_more.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="13dp"
android:height="3dp"
android:viewportWidth="13"
android:viewportHeight="3">
<path
android:pathData="M0,1.5a1.5,1.5 0,1 1,3 0,1.5 1.5,0 0,1 -3,0z"
android:fillColor="#abafb3"/>
<path
android:pathData="M5,1.5a1.5,1.5 0,1 1,3 0,1.5 1.5,0 0,1 -3,0z"
android:fillColor="#abafb3"/>
<path
android:pathData="M10,1.5a1.5,1.5 0,1 1,3 0,1.5 1.5,0 0,1 -3,0z"
android:fillColor="#abafb3"/>
</vector>
Loading

0 comments on commit ef25737

Please sign in to comment.