5
5
import android .graphics .Color ;
6
6
import android .net .Uri ;
7
7
import android .os .Bundle ;
8
+ import android .os .Handler ;
8
9
import android .os .Vibrator ;
9
10
import android .view .View ;
10
11
import android .widget .Button ;
13
14
import androidx .appcompat .app .AppCompatActivity ;
14
15
import androidx .browser .customtabs .CustomTabsIntent ;
15
16
17
+ import com .airbnb .lottie .LottieAnimationView ;
18
+
16
19
public class Settings extends AppCompatActivity {
20
+ LottieAnimationView loading ;
17
21
18
22
@ Override
19
23
protected void onCreate (Bundle savedInstanceState ) {
20
24
super .onCreate (savedInstanceState );
21
25
setContentView (R .layout .activity_settings );
26
+ loading = findViewById (R .id .sign_up_anim );
27
+ loading .setVisibility (View .INVISIBLE );
22
28
init ();
23
29
}
24
30
@@ -28,6 +34,13 @@ private void init() {
28
34
Vibrator v2 = (Vibrator ) getSystemService (Context .VIBRATOR_SERVICE );
29
35
v2 .vibrate (22 );
30
36
share .setVisibility (View .INVISIBLE );
37
+ loading .setVisibility (View .VISIBLE );
38
+ loading .playAnimation ();
39
+ int splash_screen_time_out = 2000 ;
40
+ new Handler ().postDelayed (() -> {
41
+ loading .setVisibility (View .GONE );
42
+ share .setVisibility (View .VISIBLE );
43
+ }, splash_screen_time_out );
31
44
/*Create an ACTION_SEND Intent*/
32
45
Intent intent = new Intent (Intent .ACTION_SEND );
33
46
/*This will be the actual content you wish you share.*/
0 commit comments