Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splash screen with Gif Animation #224

Open
wants to merge 1 commit into
base: upgrade-jdk11
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tables_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ dependencies {
implementation 'com.google.firebase:firebase-analytics:19.0.2'
implementation 'com.google.firebase:firebase-crashlytics:18.2.3'
implementation 'com.google.android.material:material:1.7.0'
implementation 'com.github.bumptech.glide:glide:4.15.1'


if (libraryProjectPath.exists() && gradle.useLocal) { // Local project is favoured
Expand Down
2 changes: 1 addition & 1 deletion tables_app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
android:value="@integer/google_play_services_version" />

<activity
android:name=".activities.Launcher"
android:name="org.opendatakit.tables.activities.SplashScreenActivity"
android:label="@string/app_name">

<intent-filter>
Expand Down
Binary file added tables_app/src/main/res/drawable/table_logo.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 tables_app/src/main/res/drawable/tables.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions tables_app/src/main/res/layout/splash_screen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/splash_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp">



<ImageView
android:id="@+id/splash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:contentDescription="@string/app_name"
android:gravity="center"
android:padding="0dip"
android:scaleType="fitCenter"
android:src="@drawable/table_logo"
android:visibility="visible" />

<ImageView
android:id="@+id/gif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/table_gif"
android:src="@drawable/tables"
android:visibility="gone" />


</LinearLayout>
1 change: 1 addition & 0 deletions tables_app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,4 +448,5 @@
<string name="sort_order_name_asc">Name (Alphabetical)</string>
<string name="sort_order_name_desc">Name (Reverse Alphabetical)</string>
<string name="sort_order_title">Sort By</string>
<string name="table_gif">Table GIF Animationn\n</string>
</resources>