daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 16th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.  
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/bg_splash"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="@drawable/bg_splashscreen">
  9.  
  10.  
  11. <ImageView
  12.     android:id="@+id/logo_text"
  13.     android:layout_width="0dp"
  14.     android:layout_height="wrap_content"
  15.     android:layout_marginBottom="8dp"
  16.     android:layout_marginEnd="36dp"
  17.     android:layout_marginStart="37dp"
  18.     android:layout_marginTop="8dp"
  19.     android:src="@drawable/logo"
  20.     android:elevation="4dp"
  21.     app:layout_constraintBottom_toTopOf="@+id/guideline2"
  22.     app:layout_constraintEnd_toEndOf="parent"
  23.     app:layout_constraintHorizontal_bias="0.0"
  24.     app:layout_constraintHorizontal_weight="0.1"
  25.     app:layout_constraintStart_toStartOf="parent"
  26.     app:layout_constraintTop_toTopOf="@+id/guideline"
  27.     app:layout_constraintVertical_weight="0.1"
  28.     tools:ignore="ContentDescription" />
  29.  
  30. <android.support.constraint.Guideline
  31.     android:id="@+id/guideline"
  32.     android:layout_width="wrap_content"
  33.     android:layout_height="wrap_content"
  34.     android:orientation="horizontal"
  35.     app:layout_constraintGuide_percent="0.26371" />
  36.  
  37. <android.support.constraint.Guideline
  38.     android:id="@+id/guideline2"
  39.     android:layout_width="wrap_content"
  40.     android:layout_height="wrap_content"
  41.     android:orientation="horizontal"
  42.     app:layout_constraintGuide_percent="0.42074" />
  43. </android.support.constraint.ConstraintLayout>
  44.    
  45. fun particleConfettiAnimation(fromActivity: Activity?) {
  46.  
  47.         if (fromActivity == null){ return }
  48.  
  49.         ParticleSystem(fromActivity, 80, R.drawable.confetti, 10000)
  50.             .setSpeedModuleAndAngleRange(0f, 0.3f, 0, 0)
  51.             .setRotationSpeed(144f)
  52.             .setAcceleration(0.00035f, 100)
  53.             .emit(100, -100, 5)
  54.      }
  55.    
  56. ParticleSystem(fromActivity, 80, R.drawable.confetti, 10000, R.id.YOURID)
  57.         .setSpeedModuleAndAngleRange(0f, 0.3f, 0, 0)
  58.         .setRotationSpeed(144f)
  59.         .setAcceleration(0.00035f, 100)
  60.         .emit(100, -100, 5)
  61.    
  62. <FrameLayout
  63.     android:layout_width="match_parent"
  64.     android:layout_height="match_parent"
  65.     android:id="@+id/YOURID">
  66. </FrameLayout>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top