-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9be1e5a
commit c49c5b6
Showing
10 changed files
with
283 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...xample/spinwill/ui/WillDimenProperties.kt → ...le/spinwill/models/WillDimenProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...a/com/example/spinwill/ui/WillGradient.kt → ...m/example/spinwill/models/WillGradient.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.example.spinwill.ui | ||
package com.example.spinwill.models | ||
|
||
import android.graphics.RadialGradient | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
spinwill/src/main/java/com/example/spinwill/models/WillPaintProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.example.spinwill.models | ||
|
||
import android.graphics.Paint | ||
|
||
data class WillPaintProperties( | ||
val archPaint: Paint = Paint(), | ||
val textPaint: Paint = Paint(), | ||
val overlayTextPaint: Paint = Paint(), | ||
val separationArchPaint: Paint = Paint(), | ||
val bitmapPaint: Paint = Paint(Paint.ANTI_ALIAS_FLAG or Paint.DITHER_FLAG or Paint.FILTER_BITMAP_FLAG) | ||
) |
25 changes: 25 additions & 0 deletions
25
spinwill/src/main/java/com/example/spinwill/ui/DimenAdapters/DimenAdapter1.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.example.spinwill.ui.DimenAdapters | ||
|
||
import com.example.spinwill.models.WillDimenProperties | ||
import com.example.spinwill.models.WillPaintProperties | ||
|
||
interface OffSetDimenAdapter1 { | ||
|
||
fun getVOffsetOverLayText( | ||
tempAngle: Float, | ||
sweepAngle: Float, | ||
text: String, | ||
itemsSize: Int, | ||
paintProps: WillPaintProperties, | ||
dimenProps: WillDimenProperties | ||
): Int | ||
|
||
fun getHOffsetOverlayText( | ||
tempAngle: Float, | ||
sweepAngle: Float, | ||
text: String, | ||
itemsSize: Int, | ||
paintProps: WillPaintProperties, | ||
dimenProps: WillDimenProperties | ||
): Int | ||
} |
10 changes: 0 additions & 10 deletions
10
spinwill/src/main/java/com/example/spinwill/ui/WillPaintProperties.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
spinwill/src/main/java/com/example/spinwill/ui/adapters/WillItemUiAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.example.spinwill.ui.adapters | ||
|
||
import android.graphics.Bitmap | ||
|
||
interface WillItemUiAdapter<T> { | ||
fun getRewardText(item: T): String | ||
fun getOverlayText(item: T): String | ||
fun getRewardBitmap(item: T): Bitmap? | ||
} |
Oops, something went wrong.