Skip to content

Commit

Permalink
Merge pull request #315 from PermanentOrg/festure/VSP-1467
Browse files Browse the repository at this point in the history
Change background on splash screen and disabled preview before splash.
  • Loading branch information
flaviahandrea-vsp authored Nov 4, 2024
2 parents 2b14aa1 + 29fa148 commit f2538fa
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions app/src/main/res/drawable/blue_gradient.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="200dp"
android:height="200dp"
android:viewportWidth="200"
android:viewportHeight="200">
<path
android:pathData="M0,0H200V200H0V0Z">
<aapt:attr name="android:fillColor">
<gradient
android:startX="0"
android:startY="0"
android:endX="165.23"
android:endY="225.48"
android:type="linear">
<item android:offset="0" android:color="#FF131B4A"/>
<item android:offset="1" android:color="#FF364493"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M0,0H200V200H0V0Z"
android:fillColor="#000000"
android:fillAlpha="0.2"/>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_splash.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:background="@drawable/blue_gradient"
tools:context=".permanent.ui.SplashActivity">

<ImageView
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<item name="android:fontFamily">@font/open_sans</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="bottomSheetDialogTheme">@style/AppBottomSheetDialogTheme</item>
<item name="android:windowDisablePreview">true</item>
<item name="android:windowIsTranslucent">true</item>
</style>

<style name="AppBottomSheetDialogTheme"
Expand Down

0 comments on commit f2538fa

Please sign in to comment.