splash_screen.xml
1    <?xml version="1.0" encoding="utf-8"?>
2    <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3        xmlns:app="http://schemas.android.com/apk/res-auto"
4        android:id="@+id/root_splash"
5        android:layout_width="match_parent"
6        android:layout_height="match_parent"
7        android:background="@color/colorPrimary">
8    
9    
10       <TextView
11           android:id="@+id/logo_one"
12           android:layout_width="32dp"
13           android:layout_height="64dp"
14           android:background="@color/cyan"
15           app:layout_constraintStart_toStartOf="@+id/imageView4"
16           app:layout_constraintTop_toTopOf="@+id/linearLayout5" />
17   
18       <TextView
19           android:id="@+id/logo_two"
20           android:layout_width="32dp"
21           android:layout_height="64dp"
22           android:background="@color/pinkie"
23           app:layout_constraintStart_toEndOf="@+id/logo_one"
24           app:layout_constraintTop_toTopOf="@+id/imageView4" />
25   
26       <ImageView
27           android:id="@+id/imageView4"
28           android:layout_width="64dp"
29           android:scaleX="1.5"
30           android:scaleY="1.5"
31           android:layout_height="64dp"
32           android:background="@drawable/ic_launcher_foreground"
33           app:layout_constraintEnd_toEndOf="@+id/linearLayout5"
34           app:layout_constraintStart_toStartOf="@+id/linearLayout5"
35           app:layout_constraintTop_toTopOf="@+id/linearLayout5" />
36   
37   
38   
39       <LinearLayout
40           android:id="@+id/linearLayout5"
41           android:layout_width="match_parent"
42           android:layout_height="wrap_content"
43           android:orientation="vertical"
44           app:layout_constraintBottom_toBottomOf="parent"
45           app:layout_constraintEnd_toEndOf="parent"
46           app:layout_constraintStart_toStartOf="parent"
47           app:layout_constraintTop_toTopOf="parent"
48           app:layout_constraintVertical_bias="0.1">
49   
50           <ImageView
51               android:layout_width="match_parent"
52               android:layout_height="64dp"
53               android:visibility="invisible"
54               android:src="@mipmap/ic_launcher">
55   
56           </ImageView>
57   
58           <TextView
59               style="@style/Lheading"
60               android:layout_width="match_parent"
61               android:layout_height="wrap_content"
62               android:layout_marginTop="8dp"
63               android:textAlignment="center"
64               android:text="Chatistics"
65               android:fontFamily="@font/ubuntu"
66               android:textSize="40sp"
67               android:textColor="@color/white">
68   
69           </TextView>
70   
71           <LinearLayout
72               android:layout_width="match_parent"
73               android:gravity="center"
74               android:layout_height="wrap_content">
75   
76               <ImageView
77                   android:layout_width="24dp"
78                   android:layout_height="24dp"
79                   android:src="@drawable/lock"/>
80               <TextView
81                   android:layout_width="wrap_content"
82                   android:layout_height="wrap_content"
83                   android:textSize="24sp"
84                   android:textColor="@color/white"
85                   android:text="Privacy Focused->"
86                   android:fontFamily="@font/ubuntu"/>
87   
88           </LinearLayout>
89   
90   
91   
92           <TextView
93               android:layout_width="match_parent"
94               android:layout_height="wrap_content"
95               android:textAlignment="center"
96               android:text="Open Source, Works Offline"
97               android:fontFamily="@font/ubuntulight"
98               android:textSize="16sp"
99               android:textColor="@color/white"
100              />
101  
102          <TextView
103              android:layout_width="wrap_content"
104              android:layout_height="wrap_content"
105              android:layout_gravity="center"
106              android:text="No Permissions"
107              android:fontFamily="@font/ubuntulight"
108              android:textSize="16sp"
109              android:textColor="@color/white"
110              />
111  
112  
113          <TextView
114              android:layout_width="match_parent"
115              android:layout_height="wrap_content"
116              android:textAlignment="center"
117              android:text="v8.1"
118              android:fontFamily="@font/ubuntu"
119              android:textColor="@color/grey"
120              />
121  
122  
123      </LinearLayout>
124  
125      <ImageView
126          android:id="@+id/imageView3"
127          android:layout_width="40dp"
128          android:layout_height="40dp"
129          android:layout_margin="16dp"
130          android:onClick="openSettingsActivity"
131          android:src="@drawable/settings"
132          app:layout_constraintBottom_toBottomOf="parent"
133          app:layout_constraintEnd_toEndOf="parent" />
134  
135      <ImageView
136          android:layout_width="40dp"
137          android:layout_height="40dp"
138          android:layout_margin="16dp"
139          android:src="@drawable/share"
140          android:onClick="shareChatistics"
141          app:layout_constraintBottom_toBottomOf="parent"
142          app:layout_constraintStart_toStartOf="parent" />
143  
144      <ImageView
145          android:layout_width="40dp"
146          android:layout_height="40dp"
147          android:src="@drawable/info"
148          android:onClick="openWebsite"
149          android:layout_margin="16dp"
150          app:layout_constraintBottom_toBottomOf="parent"
151          app:layout_constraintEnd_toStartOf="@+id/imageView3" />
152  
153  
154      <Button
155          android:id="@+id/button"
156          android:layout_width="match_parent"
157          android:layout_height="wrap_content"
158          android:onClick="howTo"
159          android:padding="32dp"
160          android:text="How To"
161          android:textSize="20sp"
162          android:theme="@style/AppTheme.Button"
163          app:layout_constraintBottom_toTopOf="@+id/button2"
164          app:layout_constraintStart_toStartOf="parent" />
165  
166      <Button
167          android:id="@+id/textView27"
168          android:layout_width="match_parent"
169          android:layout_height="wrap_content"
170          android:onClick="showDemo"
171          android:padding="32dp"
172          android:text="@string/sample"
173          android:textSize="20sp"
174          android:theme="@style/AppTheme.ButtonPinkie"
175          app:layout_constraintBottom_toTopOf="@+id/button"
176          app:layout_constraintEnd_toEndOf="parent"
177          app:layout_constraintStart_toStartOf="parent" />
178  
179      <Button
180          android:id="@+id/textView28"
181          android:layout_width="match_parent"
182          android:layout_height="wrap_content"
183          android:onClick="showSample"
184          android:padding="32dp"
185          android:text="DEMO"
186          android:textSize="20sp"
187          android:theme="@style/AppTheme.Button"
188          app:layout_constraintBottom_toTopOf="@+id/textView27"
189          app:layout_constraintEnd_toEndOf="parent"
190          app:layout_constraintStart_toStartOf="parent" />
191  
192      <Button
193          android:id="@+id/button2"
194          android:layout_width="match_parent"
195          android:layout_height="wrap_content"
196          android:layout_marginBottom="12dp"
197          android:onClick="openWhatsapp"
198          android:padding="32dp"
199          android:text="Open Whatsapp"
200          android:textSize="20sp"
201          android:theme="@style/AppTheme.ButtonPinkie"
202          app:layout_constraintBottom_toTopOf="@+id/imageView3"
203          app:layout_constraintEnd_toEndOf="parent"
204          app:layout_constraintStart_toStartOf="parent" />
205  
206  
207  </androidx.constraintlayout.widget.ConstraintLayout>
208