diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31f01ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures +.idea diff --git a/README.md b/README.md index 7043bc8..aa99071 100644 --- a/README.md +++ b/README.md @@ -1 +1,34 @@ -# Live-Emoji \ No newline at end of file +# Live emojis + +![](image.gif) + +Animating Google emojis with Android animated vector drawables. + +All credits to [noto-emoji](https://github.com/googlei18n/noto-emoji) for the original emoji. + +## Can't see your favourite emoji? + +- Find the svg [there](https://github.com/googlei18n/noto-emoji) and play with it. Then submit a PR, I'll be happy to review it! +- Or just post an issue with your idea. The more the merrier! + +## Contributors + +- [romainpiel](https://github.com/RomainPiel) +- [chiuki](https://github.com/chiuki) +- [sjthn](https://github.com/sjthn) + +## License +``` +Copyright 2016 Romain Piel + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..735bd0e --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,27 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.3" + + defaultConfig { + applicationId "com.romainpiel.liveemoji" + minSdkVersion 23 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + testCompile 'junit:junit:4.12' + compile 'androidx.appcompat:appcompat:1.1.0' + compile 'androidx.recyclerview:recyclerview:1.1.0' +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..13b03c3 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/romainpiel/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..86e0ee0 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/app/src/main/java/com/romainpiel/liveemoji/EmojiAdapter.java b/app/src/main/java/com/romainpiel/liveemoji/EmojiAdapter.java new file mode 100644 index 0000000..e2582a2 --- /dev/null +++ b/app/src/main/java/com/romainpiel/liveemoji/EmojiAdapter.java @@ -0,0 +1,41 @@ +package com.romainpiel.liveemoji; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import androidx.recyclerview.widget.RecyclerView; + +import java.util.List; + +class EmojiAdapter extends RecyclerView.Adapter { + + private final List items; + private boolean animated; + + EmojiAdapter(List items) { + this.items = items; + this.animated = false; + } + + void setAnimated(boolean animated) { + this.animated = animated; + } + + @Override + public EmojiViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { + View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_emoji, parent, false); + return new EmojiViewHolder(view); + } + + @Override + public void onBindViewHolder(EmojiViewHolder holder, int position) { + holder.bind(items.get(position)); + holder.setAnimated(animated); + } + + @Override + public int getItemCount() { + return items.size(); + } +} diff --git a/app/src/main/java/com/romainpiel/liveemoji/EmojiViewHolder.java b/app/src/main/java/com/romainpiel/liveemoji/EmojiViewHolder.java new file mode 100644 index 0000000..5c8dcc5 --- /dev/null +++ b/app/src/main/java/com/romainpiel/liveemoji/EmojiViewHolder.java @@ -0,0 +1,32 @@ +package com.romainpiel.liveemoji; + +import android.graphics.drawable.AnimatedVectorDrawable; +import androidx.recyclerview.widget.RecyclerView; +import android.view.View; +import android.widget.ImageView; + +class EmojiViewHolder extends RecyclerView.ViewHolder { + + private final ImageView imageView; + + EmojiViewHolder(View itemView) { + super(itemView); + imageView = (ImageView) itemView.findViewById(R.id.emoji); + } + + void bind(EmojiViewModel viewModel) { + imageView.setImageResource(viewModel.getDrawableRes()); + } + + void setAnimated(boolean animated) { + AnimatedVectorDrawable drawable = (AnimatedVectorDrawable) imageView.getDrawable(); + if (drawable == null) { + return; + } + if (animated) { + drawable.start(); + } else { + drawable.stop(); + } + } +} diff --git a/app/src/main/java/com/romainpiel/liveemoji/EmojiViewModel.java b/app/src/main/java/com/romainpiel/liveemoji/EmojiViewModel.java new file mode 100644 index 0000000..e7de3c6 --- /dev/null +++ b/app/src/main/java/com/romainpiel/liveemoji/EmojiViewModel.java @@ -0,0 +1,17 @@ +package com.romainpiel.liveemoji; + +import androidx.annotation.DrawableRes; + +class EmojiViewModel { + @DrawableRes + private final int drawableRes; + + EmojiViewModel(@DrawableRes int drawableRes) { + this.drawableRes = drawableRes; + } + + @DrawableRes + int getDrawableRes() { + return drawableRes; + } +} diff --git a/app/src/main/java/com/romainpiel/liveemoji/MainActivity.java b/app/src/main/java/com/romainpiel/liveemoji/MainActivity.java new file mode 100644 index 0000000..fcb7189 --- /dev/null +++ b/app/src/main/java/com/romainpiel/liveemoji/MainActivity.java @@ -0,0 +1,47 @@ +package com.romainpiel.liveemoji; + +import android.os.Bundle; +import androidx.annotation.Nullable; +import androidx.appcompat.app.AppCompatActivity; +import androidx.recyclerview.widget.GridLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + +import java.util.ArrayList; + +public class MainActivity extends AppCompatActivity { + + private EmojiAdapter adapter; + + @Override + protected void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + ArrayList items = new ArrayList<>(); + items.add(new EmojiViewModel(R.drawable.animated_emoji_u1f603)); + //items.add(new EmojiViewModel(R.drawable.animated_emoji_u263a)); + items.add(new EmojiViewModel(R.drawable.animated_emoji_u1f635)); + items.add(new EmojiViewModel(R.drawable.animated_emoji_u1f613)); + items.add(new EmojiViewModel(R.drawable.animated_emoji_u1f60e)); + + RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recyclerview); + recyclerView.setLayoutManager(new GridLayoutManager(this, 4)); + + adapter = new EmojiAdapter(items); + recyclerView.setAdapter(adapter); + } + + @Override + protected void onStart() { + super.onStart(); + adapter.setAnimated(true); + adapter.notifyDataSetChanged(); + } + + @Override + protected void onStop() { + adapter.setAnimated(false); + adapter.notifyDataSetChanged(); + super.onStop(); + } +} \ No newline at end of file diff --git a/app/src/main/res/anim/blink.xml b/app/src/main/res/anim/blink.xml new file mode 100644 index 0000000..2add918 --- /dev/null +++ b/app/src/main/res/anim/blink.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/app/src/main/res/anim/slow_blink.xml b/app/src/main/res/anim/slow_blink.xml new file mode 100644 index 0000000..fd20913 --- /dev/null +++ b/app/src/main/res/anim/slow_blink.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/app/src/main/res/animator/u1f603_laugh.xml b/app/src/main/res/animator/u1f603_laugh.xml new file mode 100644 index 0000000..dd50914 --- /dev/null +++ b/app/src/main/res/animator/u1f603_laugh.xml @@ -0,0 +1,10 @@ + + diff --git a/app/src/main/res/animator/u1f603_left_eye_laughing.xml b/app/src/main/res/animator/u1f603_left_eye_laughing.xml new file mode 100644 index 0000000..0f776ec --- /dev/null +++ b/app/src/main/res/animator/u1f603_left_eye_laughing.xml @@ -0,0 +1,10 @@ + + diff --git a/app/src/main/res/animator/u1f603_right_eye_laughing.xml b/app/src/main/res/animator/u1f603_right_eye_laughing.xml new file mode 100644 index 0000000..75ae887 --- /dev/null +++ b/app/src/main/res/animator/u1f603_right_eye_laughing.xml @@ -0,0 +1,10 @@ + + diff --git a/app/src/main/res/animator/u1f60e_left_shade_animator.xml b/app/src/main/res/animator/u1f60e_left_shade_animator.xml new file mode 100644 index 0000000..8f1a20e --- /dev/null +++ b/app/src/main/res/animator/u1f60e_left_shade_animator.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/app/src/main/res/animator/u1f60e_right_shade_animator.xml b/app/src/main/res/animator/u1f60e_right_shade_animator.xml new file mode 100644 index 0000000..c831380 --- /dev/null +++ b/app/src/main/res/animator/u1f60e_right_shade_animator.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/app/src/main/res/animator/u1f613_sweat_drip.xml b/app/src/main/res/animator/u1f613_sweat_drip.xml new file mode 100644 index 0000000..cb9ae26 --- /dev/null +++ b/app/src/main/res/animator/u1f613_sweat_drip.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/animator/u1f613_sweat_drip_alpha.xml b/app/src/main/res/animator/u1f613_sweat_drip_alpha.xml new file mode 100644 index 0000000..2275d2d --- /dev/null +++ b/app/src/main/res/animator/u1f613_sweat_drip_alpha.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/animator/u1f635_left_eye.xml b/app/src/main/res/animator/u1f635_left_eye.xml new file mode 100644 index 0000000..f5d7bd6 --- /dev/null +++ b/app/src/main/res/animator/u1f635_left_eye.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/app/src/main/res/animator/u1f635_mouth.xml b/app/src/main/res/animator/u1f635_mouth.xml new file mode 100644 index 0000000..bb576ce --- /dev/null +++ b/app/src/main/res/animator/u1f635_mouth.xml @@ -0,0 +1,9 @@ + + diff --git a/app/src/main/res/animator/u1f635_right_eye.xml b/app/src/main/res/animator/u1f635_right_eye.xml new file mode 100644 index 0000000..5119e07 --- /dev/null +++ b/app/src/main/res/animator/u1f635_right_eye.xml @@ -0,0 +1,10 @@ + + diff --git a/app/src/main/res/animator/u263a_left_eye_blink.xml b/app/src/main/res/animator/u263a_left_eye_blink.xml new file mode 100644 index 0000000..b0faeba --- /dev/null +++ b/app/src/main/res/animator/u263a_left_eye_blink.xml @@ -0,0 +1,10 @@ + + diff --git a/app/src/main/res/animator/u263a_right_eye_blink.xml b/app/src/main/res/animator/u263a_right_eye_blink.xml new file mode 100644 index 0000000..ac5610b --- /dev/null +++ b/app/src/main/res/animator/u263a_right_eye_blink.xml @@ -0,0 +1,10 @@ + + diff --git a/app/src/main/res/drawable/animated_emoji_u1f603.xml b/app/src/main/res/drawable/animated_emoji_u1f603.xml new file mode 100644 index 0000000..b58747c --- /dev/null +++ b/app/src/main/res/drawable/animated_emoji_u1f603.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/animated_emoji_u1f60e.xml b/app/src/main/res/drawable/animated_emoji_u1f60e.xml new file mode 100644 index 0000000..16f4cfe --- /dev/null +++ b/app/src/main/res/drawable/animated_emoji_u1f60e.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/animated_emoji_u1f613.xml b/app/src/main/res/drawable/animated_emoji_u1f613.xml new file mode 100644 index 0000000..0f1ddfa --- /dev/null +++ b/app/src/main/res/drawable/animated_emoji_u1f613.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/animated_emoji_u1f635.xml b/app/src/main/res/drawable/animated_emoji_u1f635.xml new file mode 100644 index 0000000..545fac2 --- /dev/null +++ b/app/src/main/res/drawable/animated_emoji_u1f635.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/animated_emoji_u263a.xml b/app/src/main/res/drawable/animated_emoji_u263a.xml new file mode 100644 index 0000000..2d57dbf --- /dev/null +++ b/app/src/main/res/drawable/animated_emoji_u263a.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/emoji_u1f603.xml b/app/src/main/res/drawable/emoji_u1f603.xml new file mode 100644 index 0000000..32ba83d --- /dev/null +++ b/app/src/main/res/drawable/emoji_u1f603.xml @@ -0,0 +1,25 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/emoji_u1f60e.xml b/app/src/main/res/drawable/emoji_u1f60e.xml new file mode 100644 index 0000000..b974221 --- /dev/null +++ b/app/src/main/res/drawable/emoji_u1f60e.xml @@ -0,0 +1,28 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/emoji_u1f613.xml b/app/src/main/res/drawable/emoji_u1f613.xml new file mode 100644 index 0000000..50c1694 --- /dev/null +++ b/app/src/main/res/drawable/emoji_u1f613.xml @@ -0,0 +1,36 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/emoji_u1f635.xml b/app/src/main/res/drawable/emoji_u1f635.xml new file mode 100644 index 0000000..b9aa08a --- /dev/null +++ b/app/src/main/res/drawable/emoji_u1f635.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/emoji_u263a.xml b/app/src/main/res/drawable/emoji_u263a.xml new file mode 100644 index 0000000..221e03b --- /dev/null +++ b/app/src/main/res/drawable/emoji_u263a.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/app/src/main/res/interpolator/blink.xml b/app/src/main/res/interpolator/blink.xml new file mode 100644 index 0000000..2add918 --- /dev/null +++ b/app/src/main/res/interpolator/blink.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/app/src/main/res/interpolator/slow_blink.xml b/app/src/main/res/interpolator/slow_blink.xml new file mode 100644 index 0000000..fd20913 --- /dev/null +++ b/app/src/main/res/interpolator/slow_blink.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..d9f2a79 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,8 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_emoji.xml b/app/src/main/res/layout/item_emoji.xml new file mode 100644 index 0000000..a9d5bc4 --- /dev/null +++ b/app/src/main/res/layout/item_emoji.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..cde69bc Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..c133a0c Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..bfa42f0 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..324e72c Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..aee44e1 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..3ab3e9c --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #3F51B5 + #303F9F + #FF4081 + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..7749873 --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,21 @@ + + Live emoji + M48.546,58.424 C48.546,63.809 44.94,68.175 40.478,68.175 C36.016,68.175 32.392,63.808 32.392,58.424 C32.392,53.03 36.017,48.663 40.478,48.663 C44.939,48.663 48.546,53.03 48.546,58.424 + M48.546,51.519 C48.546,53.094 44.94,54.371 40.478,54.371 C36.016,54.371 32.392,53.094 32.392,51.519 C32.392,49.941 36.017,48.663 40.478,48.663 C44.939,48.663 48.546,49.941 48.546,51.519 + M48.546,48.691 C48.546,48.706 44.94,48.719 40.478,48.719 C36.016,48.719 32.392,48.706 32.392,48.691 C32.392,48.676 36.017,48.663 40.478,48.663 C44.939,48.663 48.546,48.676 48.546,48.691 + M80.065,58.424 C80.065,63.809 83.67,68.175 88.142,68.175 C92.603,68.175 96.228,63.808 96.228,58.424 C96.228,53.03 92.603,48.663 88.142,48.663 C83.67,48.663 80.065,53.03 80.065,58.424 + M80.065,51.519 C80.065,53.094 83.67,54.371 88.142,54.371 C92.603,54.371 96.228,53.094 96.228,51.519 C96.228,49.941 92.603,48.663 88.142,48.663 C83.67,48.663 80.065,49.941 80.065,51.519 + M80.065,48.691 C80.065,48.706 83.67,48.719 88.142,48.719 C92.603,48.719 96.228,48.706 96.228,48.691 C96.228,48.676 92.603,48.663 88.142,48.663 C83.67,48.663 80.065,48.676 80.065,48.691 + M44.469,82.373 C43.776,83.08 43.642,84.322 43.856,85.23 C45.492,92.214 54.273,96.664 65.027,96.664 C76.661,96.664 83.291,91.673 84.42,85.228 C84.563,84.408 84.383,83.45 83.482,82.708 C80.996,80.663 75.871,83.14 65.408,83.14 C54.542,83.141 47.27,79.518 44.469,82.373 z + M36.357,76.472 C35.378,77.471 35.189,79.226 35.491,80.508 C37.803,90.376 50.209,96.664 65.404,96.664 C81.843,96.664 91.21,89.612 92.805,80.505 C93.007,79.347 92.753,77.993 91.48,76.945 C87.967,74.055 80.727,77.556 65.943,77.556 C50.589,77.557 40.314,72.438 36.357,76.472 z + M46.385,71.71 C50.555,71.71 53.955,67.66 53.955,62.66 C53.955,57.65 50.555,53.59 46.385,53.59 C42.215,53.59 38.815,57.64 38.815,62.66 C38.825,67.66 42.215,71.71 46.385,71.71 z + M46.385,53.811 C50.555,53.811 53.955,53.761 53.955,53.7 C53.955,53.639 50.555,53.59 46.385,53.59 C42.215,53.59 38.815,53.639 38.815,53.7 C38.825,53.761 42.215,53.811 46.385,53.811 z + M81.595,71.71 C85.775,71.71 89.155,67.66 89.155,62.66 C89.155,57.65 85.775,53.59 81.595,53.59 C77.425,53.59 74.025,57.64 74.025,62.66 C74.025,67.66 77.425,71.71 81.595,71.71 z + M81.595,53.811 C85.775,53.811 89.155,53.761 89.155,53.7 C89.155,53.639 85.775,53.59 81.595,53.59 C77.425,53.59 74.025,53.639 74.025,53.7 C74.025,53.761 77.425,53.811 81.595,53.811 z + M28.605,97.369 C21.888,98.24 16.262,95.048 15.158,87.832 C14.647,84.531 15.863,81.171 17.327,78.295 C21.908,69.308 32.162,60.753 42.608,60.538 C50.622,60.374 58.873,64.868 63.67,71.193 C68.356,77.372 72.223,88.444 70.468,96.659 C69.16,102.778 64.368,107.509 57.751,107.395 C50.449,107.269 47.11,104.118 41.456,100.042 C37.265,97.008 33.434,96.72 28.741,97.349 C28.687,97.353 28.65,97.359 28.605,97.369 z + M28.605,100.371 C21.888,101.313 16.262,97.861 15.158,90.057 C14.647,86.487 15.863,82.853 17.327,79.743 C21.908,70.023 32.162,60.771 42.608,60.539 C50.622,60.361 58.873,65.222 63.67,72.062 C68.356,78.745 72.223,90.719 70.468,99.603 C69.16,106.221 64.368,111.337 57.751,111.214 C50.449,111.078 47.11,107.67 41.456,103.262 C37.265,99.98 33.434,99.669 28.741,100.349 C28.687,100.354 28.65,100.36 28.605,100.371 z + M12.45,53.96 C12.05,53.88,11.63,54.01,11.34,54.3 C11.05,54.59,10.92,55,11,55.41 C14.02,70.43,23.36,74.45,23.76,74.61 C23.91,74.67,24.07,74.7,24.23,74.7 C24.66,74.7,25.08,74.47,25.31,74.07 L33.27,59.71 C33.46,59.37,33.47,58.95,33.31,58.6 C33.14,58.25,32.82,57.99,32.43,57.91 L12.45,53.96 Z + M35.45,58.56 C34.05,59.88,28.34,76.01,28.24,76.8 C28.04,76.8,27.91,76.9,28.5,77.9C35.02,79,43.36,77,44.36,76.1 C44.61,76,44.9,75.74,45.9,75C48.2,72.17,48.81,71.61,49.8,69.17 L50.5,67.87C50.7,67.17,50.9,67,51.5,65 C51,60,44.82,61.3,47.43,61.05L35.45,58.56 Z + M89.09,60.54 C88.79,60.17,88.31,60.02,87.85,60.13 L75.42,63.14C74.83,63.28,74.44,63.83,74.49,64.43 C74.51,64.74,75.18,72.11,81.66,75.47C81.84,75.56,82.03,75.61,82.23,75.61 C82.37,75.61,82.5,75.59,82.63,75.54C82.95,75.43,83.21,75.19,83.34,74.89 L89.26,61.83C89.46,61.4,89.39,60.89,89.09,60.54 Z + M120.09,54.54 C119.79,54.17,119.31,54.02,118.85,54.13 L106.42,57.14C102.83,67.28,101.24,68.83,97.83,78.43 C97.83,78.74,104.18,79.11,108.66,74.47C110.84,73.16,109.03,73.61,109.23,73.61 C109.37,74.61,113.5,69.9,113.63,69.54C113.95,69.33,114.21,68.8,114.34,68.89 L120.26,55.83C120.46,55.4,120.39,54.89,120.09,54.54 Z + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..5885930 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/app/src/main/res/values/variables.xml b/app/src/main/res/values/variables.xml new file mode 100644 index 0000000..4a21126 --- /dev/null +++ b/app/src/main/res/values/variables.xml @@ -0,0 +1,4 @@ + + + 3000 + \ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..4989968 --- /dev/null +++ b/build.gradle @@ -0,0 +1,31 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + repositories { + jcenter() + maven { + url 'https://maven.google.com/' + name 'Google' + } + } + dependencies { + classpath 'com.android.tools.build:gradle:4.0.0' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + jcenter() + maven { + url 'https://maven.google.com/' + name 'Google' + } + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..915f0e6 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,20 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx10248m -XX:MaxPermSize=256m +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +android.enableJetifier=true +android.useAndroidX=true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..13372ae Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..13d13f4 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Jun 03 19:50:32 IST 2020 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..9d82f78 --- /dev/null +++ b/gradlew @@ -0,0 +1,160 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..8a0b282 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/image.gif b/image.gif new file mode 100644 index 0000000..235e8f3 Binary files /dev/null and b/image.gif differ diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..e7b4def --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include ':app'