55import android .graphics .Color ;
66import android .net .Uri ;
77import android .os .Bundle ;
8+ import android .os .Handler ;
89import android .os .Vibrator ;
910import android .view .View ;
1011import android .widget .Button ;
1314import androidx .appcompat .app .AppCompatActivity ;
1415import androidx .browser .customtabs .CustomTabsIntent ;
1516
17+ import com .airbnb .lottie .LottieAnimationView ;
18+
1619public class Settings extends AppCompatActivity {
20+ LottieAnimationView loading ;
1721
1822 @ Override
1923 protected void onCreate (Bundle savedInstanceState ) {
2024 super .onCreate (savedInstanceState );
2125 setContentView (R .layout .activity_settings );
26+ loading = findViewById (R .id .sign_up_anim );
27+ loading .setVisibility (View .INVISIBLE );
2228 init ();
2329 }
2430
@@ -28,6 +34,13 @@ private void init() {
2834 Vibrator v2 = (Vibrator ) getSystemService (Context .VIBRATOR_SERVICE );
2935 v2 .vibrate (22 );
3036 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 );
3144 /*Create an ACTION_SEND Intent*/
3245 Intent intent = new Intent (Intent .ACTION_SEND );
3346 /*This will be the actual content you wish you share.*/
0 commit comments