|
@@ -0,0 +1,385 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ 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:id="@+id/main"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:background="@drawable/bg_app"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:clickable="true"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <ScrollView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:fillViewport="false"
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:padding="5dp"
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/imageView6"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
+ android:src="@mipmap/ic_map"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:clickable="true"
|
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tvIp"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
|
+ android:fontFamily="@font/outfit_regular"
|
|
|
|
+ android:maxLines="2"
|
|
|
|
+ android:text="Finding IP ..."
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ android:textSize="18sp"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/connectRippleEffect"
|
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/connectRippleEffect"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/ll_country"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/tvIp"
|
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/tvIp"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tvIp"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
|
+ android:id="@+id/card_country_img"
|
|
|
|
+ android:layout_width="25dp"
|
|
|
|
+ android:layout_height="25dp"
|
|
|
|
+ android:layout_marginEnd="7dp"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ app:cardBackgroundColor="@color/transparent"
|
|
|
|
+ app:cardCornerRadius="12.5dp">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_country"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:scaleType="centerCrop" />
|
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tvCountry"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:fontFamily="@font/outfit_regular"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:maxLines="2"
|
|
|
|
+ android:text="Searching"
|
|
|
|
+ android:textColor="@color/white_half"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_connect_status"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
|
+ android:fontFamily="@font/outfit_regular"
|
|
|
|
+ android:text="YOU ARE NOT CONNECTED"
|
|
|
|
+ android:textAllCaps="true"
|
|
|
|
+ android:textColor="@color/white_half"
|
|
|
|
+ android:textSize="@dimen/x12dp"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/divider2"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/ll_country"
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ <com.skyfishjy.library.RippleBackground
|
|
|
|
+ android:id="@+id/connectRippleEffect"
|
|
|
|
+ android:layout_width="200dp"
|
|
|
|
+ android:layout_height="200dp"
|
|
|
|
+ android:layout_marginEnd="24dp"
|
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_connect_status"
|
|
|
|
+ app:rb_color="#ffffff"
|
|
|
|
+ app:rb_duration="1500"
|
|
|
|
+ app:rb_radius="16dp"
|
|
|
|
+ app:rb_rippleAmount="4"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ app:rb_scale="4">
|
|
|
|
+
|
|
|
|
+ <!-- android:background="@drawable/gradient_list_button"-->
|
|
|
|
+
|
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
|
+ android:id="@+id/cv_ivconnect"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ app:cardCornerRadius="100dp"
|
|
|
|
+ android:layout_marginTop="0dp"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintHorizontal_bias="0.50"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
+
|
|
|
|
+ <requestFocus />
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/root"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:background="@color/connect_button_color">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/ivConnect"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_centerInParent="true"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:focusableInTouchMode="false"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:focusedByDefault="true"
|
|
|
|
+ android:clickable="true"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:srcCompat="@drawable/ic_connect_n_new" />
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
|
+
|
|
|
|
+ </com.skyfishjy.library.RippleBackground>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/ll_fastest"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ app:layout_constraintStart_toStartOf="@id/divider2"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/connectRippleEffect"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
|
+ android:layout_marginStart="0dp"
|
|
|
|
+ android:layout_marginEnd="0dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_nearest_server"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="Smart Connect"
|
|
|
|
+ android:padding="15dp"
|
|
|
|
+ android:paddingStart="25dp"
|
|
|
|
+ android:paddingEnd="35dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ android:clickable="true"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:fontFamily="@font/outfit_regular"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="17sp"
|
|
|
|
+ android:background="@drawable/button_selector_state_tv"
|
|
|
|
+ android:drawablePadding="5dp"
|
|
|
|
+ app:drawableStartCompat="@drawable/flash" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_connect_fast_info"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@string/connect_fast_server_msg"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ android:clickable="true"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:fontFamily="@font/outfit_regular"
|
|
|
|
+ android:textColor="@color/white_half"
|
|
|
|
+ android:textSize="13sp"
|
|
|
|
+ android:paddingTop="8dp"
|
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
|
+ android:layout_marginBottom="12dp"
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/llServer"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:background="@drawable/round_blue_tvserver"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:padding="6dp"
|
|
|
|
+ android:paddingStart="16dp"
|
|
|
|
+ android:paddingEnd="16dp"
|
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/divider2"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/ll_fastest"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/tv_logoutTv"
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
|
+ android:id="@+id/card_iv_country"
|
|
|
|
+ android:layout_width="30dp"
|
|
|
|
+ android:layout_height="30dp"
|
|
|
|
+ android:layout_marginEnd="4dp"
|
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
|
+ android:layout_marginBottom="4dp"
|
|
|
|
+ app:cardBackgroundColor="@color/transparent"
|
|
|
|
+ app:cardCornerRadius="15dp">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/ivCountry"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:elevation="0dp"
|
|
|
|
+ android:scaleType="fitXY" />
|
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tvServer"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:fontFamily="@font/outfit_regular"
|
|
|
|
+ android:text="Select Server"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:layout_width="24dp"
|
|
|
|
+ android:layout_height="24dp"
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
+ android:layout_marginEnd="7dp"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ android:src="@drawable/ic_arrow_right" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_logoutTv"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
|
+ android:layout_marginBottom="15dp"
|
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
|
+ android:background="@drawable/button_selector_state"
|
|
|
|
+ android:text="Logout"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ android:textSize="16sp"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:clickable="true"
|
|
|
|
+ android:focusableInTouchMode="false"
|
|
|
|
+ android:textColor="@color/app_blue_color"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toStartOf="@id/divider2"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/llServer"
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/button2"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="80dp"
|
|
|
|
+ android:text="Button"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintHorizontal_bias="0.925"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/navContainer"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
+ android:gravity="bottom"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintVertical_bias="1.0" />
|
|
|
|
+
|
|
|
|
+ <FrameLayout
|
|
|
|
+ android:id="@+id/server_container"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
+ android:background="@color/transparent"
|
|
|
|
+ android:clickable="true"
|
|
|
|
+ android:focusable="true"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ android:pointerIcon="hand"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/divider2"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintVertical_bias="1.0" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/divider2"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
+ android:layout_marginEnd="24dp"
|
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
|
+ android:background="?android:attr/listDivider"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/connectRippleEffect"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_protocolTv"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
|
+ android:background="@drawable/button_selector_state"
|
|
|
|
+ android:text="Protocol"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ android:textSize="16sp"
|
|
|
|
+ android:textColor="@color/app_blue_color"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/tv_logoutTv"
|
|
|
|
+ app:layout_constraintStart_toStartOf="@id/connectRippleEffect"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_connect_status" />
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+ </ScrollView>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|