Created
April 9, 2024 11:46
-
-
Save YohannesTz/fe46c285ab9d6907f8e35616cd2537eb to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@drawable/bgcover" | |
android:orientation="vertical" | |
tools:context=".MainActivity"> | |
<!-- ImageViews for website links --> | |
<LinearLayout | |
android:id="@+id/websiteLinksLayout" | |
android:layout_width="match_parent" | |
android:layout_height="79dp" | |
android:layout_below="@id/loadingAnimationView" | |
android:orientation="horizontal"> | |
<ImageView | |
android:id="@+id/qrscan" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:onClick="test" | |
android:src="@drawable/scan" /> | |
<ImageView | |
android:id="@+id/dashbord" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:onClick="test" | |
android:src="@drawable/dashboard" /> | |
</LinearLayout> | |
<!-- WebView --> | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<WebView | |
android:id="@+id/webview" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:visibility="gone" | |
tools:visibility="visible"/> | |
<com.airbnb.lottie.LottieAnimationView | |
android:id="@+id/loadingAnimationView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:elevation="5dp" | |
android:layout_gravity="center" | |
app:lottie_autoPlay="true" | |
app:lottie_rawRes="@raw/loading" /> | |
</FrameLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment