Skip to content

Commit

Permalink
UI/UX-Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
utsanjan committed May 6, 2021
1 parent 9d07cfc commit 989b249
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

Binary file modified app/release/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/java/com/dopesatan/tsunami/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void checkConnection() {
public void run() {
overlay_relative.setVisibility(View.GONE);
}
}, 10000);
}, 14000);
Toast.makeText(MainActivity.this, "Welcome to Tsunami", Toast.LENGTH_LONG).show();
}
else if(mobileNetwork.isConnected()){
Expand All @@ -95,7 +95,7 @@ else if(mobileNetwork.isConnected()){
public void run() {
overlay_relative.setVisibility(View.GONE);
}
}, 10000);
}, 14000);
Toast.makeText(MainActivity.this, "Welcome to Tsunami", Toast.LENGTH_LONG).show();
}
else{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected void onCreate(Bundle savedInstanceState) {
EasySplashScreen config = new EasySplashScreen(SplashScreenActivity.this)
.withFullScreen()
.withTargetActivity(MainActivity.class)
.withSplashTimeOut(5000)
.withSplashTimeOut(3000)
.withBackgroundColor(Color.parseColor("#0D101E"))
.withLogo(R.mipmap.splash_foreground);

Expand Down
Binary file added app/src/main/res/drawable/bomb.gif
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 app/src/main/res/drawable/branding.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 app/src/main/res/drawable/infotxt.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 removed app/src/main/res/drawable/loading.png
Binary file not shown.
58 changes: 47 additions & 11 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,66 @@
android:background="@color/teal_200"
android:id="@+id/overlay_relative">

<pl.droidsonroids.gif.GifImageView
android:id="@+id/bomb"
android:layout_width="130dp"
android:layout_height="130dp"
android:layout_centerHorizontal="true"
android:layout_marginBottom="-20dp"
android:paddingLeft="20dp"
android:layout_above="@+id/loadingLogo"
android:src="@drawable/bomb" />

<ImageView
android:id="@+id/loadingLogo"
android:layout_width="180dp"
android:layout_height="150dp"
android:layout_width="150dp"
android:layout_height="140dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/loading" />
android:src="@drawable/infotxt" />

<LinearLayout
android:layout_width = "wrap_content"
android:layout_height = "wrap_content"
android:orientation="horizontal"
android:layout_centerHorizontal="true"
android:layout_marginBottom="200px"
android:layout_alignParentBottom="true">

<ImageView
android:id="@+id/branding"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/branding" />

</LinearLayout>

</RelativeLayout>

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/relativeLayout"
android:background="@color/teal_200"
android:visibility="gone">
android:background="@color/teal_200">

<pl.droidsonroids.gif.GifImageView
android:id="@+id/noConnectionLogo"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="130dp"
android:src="@drawable/no_internet" />
android:src="@drawable/no_internet"
android:layout_above="@+id/txtNoConnection"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="No Internet Connection"
android:textColor="#FFFFFF"
android:layout_below="@+id/noConnectionLogo"
android:layout_centerVertical="true"
android:textSize="25sp"
android:layout_marginTop="-60px"
android:layout_marginTop="-70px"
android:textAlignment="center"
android:textStyle="bold"
android:id="@+id/txtNoConnection"/>
Expand All @@ -77,13 +103,23 @@
android:layout_height="40dp"
android:layout_below="@+id/txtNoConnection"
android:layout_centerHorizontal="true"
android:layout_marginTop="60dp"
android:layout_marginTop="40dp"
android:background="@drawable/button"
android:text="Retry"
android:fontFamily="sans-serif-medium"
android:textColor="#FFFFFF"
android:textSize="15sp" />

<ImageView
android:id="@+id/brand"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/branding"
android:layout_marginBottom="200px"
android:layout_alignParentBottom="true" />

</RelativeLayout>

</RelativeLayout>

0 comments on commit 989b249

Please sign in to comment.