Skip to content

Commit

Permalink
drawables added
Browse files Browse the repository at this point in the history
  • Loading branch information
vedraj360 committed Mar 4, 2020
1 parent 924e591 commit 3867234
Show file tree
Hide file tree
Showing 14 changed files with 127 additions and 0 deletions.
Binary file added Screenshots/custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/default_toast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions designertoast/src/main/res/drawable/default_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape>
<solid android:color="#000000" />
<corners android:radius="200dp" />
</shape>
</item>

</selector>
11 changes: 11 additions & 0 deletions designertoast/src/main/res/drawable/error_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape>
<solid android:color="#D50000" />
<corners android:radius="200dp" />
</shape>
</item>

</selector>
41 changes: 41 additions & 0 deletions designertoast/src/main/res/drawable/ic_error.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="36dp"
android:height="36dp"
android:viewportWidth="215.038"
android:viewportHeight="215.038">

<path
android:fillColor="#FFFFFF"
android:pathData="M135.977,54.612H20.48c-1.886,0-3.413,1.527-3.413,3.413v116.053c0,1.886,1.527,3.413,3.413,3.413h48.493 c1.888,0,3.413-1.527,3.413-3.413s-1.527-3.413-3.413-3.413h-45.08V61.439h112.084c1.886,0,3.413-1.527,3.413-3.413 S137.863,54.612,135.977,54.612z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M194.56,76.922c-1.886,0-3.413,1.527-3.413,3.413v90.33H145.65c-1.886,0-3.413,1.527-3.413,3.413s1.527,3.413,3.413,3.413 h48.91c1.886,0,3.413-1.527,3.413-3.413V80.335C197.973,78.45,196.446,76.922,194.56,76.922z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M 77.664 107.582 L 77.664 104.562 L 61.363 104.562 L 61.363 133.802 L 77.664 133.802 L 77.664 130.764 L 64.763 130.764 L 64.763 120.003 L 76.884 120.003 L 76.884 117.003 L 64.763 117.003 L 64.763 107.582 Z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M93.643,111.482c-1.374,0-2.632,0.386-3.779,1.161c-1.147,0.775-2.127,1.874-2.941,3.301h-0.16l-0.381-4.06h-2.739v21.92 h3.32v-11.761c0-2.145,0.63-3.939,1.889-5.379c1.26-1.44,2.777-2.161,4.55-2.161c0.693,0,1.493,0.101,2.4,0.3l0.461-3.081 C95.49,111.562,94.616,111.482,93.643,111.482z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M110.363,111.482c-1.374,0-2.632,0.386-3.779,1.161c-1.147,0.775-2.127,1.874-2.941,3.301h-0.16l-0.381-4.06h-2.739v21.92 h3.319v-11.761c0-2.145,0.63-3.939,1.889-5.379c1.259-1.44,2.777-2.161,4.55-2.161c0.693,0,1.493,0.101,2.4,0.3l0.461-3.081 C112.21,111.562,111.336,111.482,110.363,111.482z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M133.291,114.542c-1.806-2.039-4.243-3.06-7.31-3.06c-3.173,0-5.652,0.997-7.439,2.99s-2.68,4.777-2.68,8.351 c0,2.306,0.415,4.32,1.241,6.04c0.826,1.72,1.998,3.04,3.519,3.959c1.521,0.92,3.261,1.381,5.221,1.381 c3.173,0,5.659-1.005,7.46-3.011c1.801-2.005,2.7-4.796,2.7-8.369C136.003,119.343,135.096,116.582,133.291,114.542z M130.872,129.233c-1.126,1.459-2.775,2.19-4.949,2.19c-2.174,0-3.821-0.734-4.941-2.2c-1.12-1.466-1.679-3.599-1.679-6.4 c0-2.826,0.551-4.953,1.659-6.379c1.108-1.427,2.748-2.14,4.92-2.14c2.2,0,3.864,0.722,4.99,2.169 c1.126,1.447,1.69,3.564,1.69,6.35C132.562,125.637,131.999,127.774,130.872,129.233z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M151.823,111.482c-1.374,0-2.632,0.386-3.779,1.161c-1.147,0.775-2.127,1.874-2.941,3.301h-0.16l-0.381-4.06h-2.739v21.92 h3.319v-11.761c0-2.145,0.63-3.939,1.889-5.379c1.259-1.44,2.777-2.161,4.55-2.161c0.693,0,1.493,0.101,2.4,0.3l0.461-3.081 C153.67,111.562,152.796,111.482,151.823,111.482z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M170.667,17.066c-20.704,0-37.547,16.843-37.547,37.547c0,20.704,16.843,37.547,37.547,37.547 c20.704,0,37.547-16.843,37.547-37.547C208.213,33.909,191.37,17.066,170.667,17.066z M170.667,85.333 c-16.94,0-30.72-13.78-30.72-30.72s13.78-30.72,30.72-30.72s30.72,13.78,30.72,30.72S187.607,85.333,170.667,85.333z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M170.667,30.719c-1.886,0-3.413,1.527-3.413,3.413v27.307c0,1.886,1.527,3.413,3.413,3.413 c1.886,0,3.413-1.527,3.413-3.413V34.132C174.08,32.247,172.553,30.719,170.667,30.719z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M170.667,68.266c-1.886,0-3.413,1.527-3.413,3.413v3.413c0,1.886,1.527,3.413,3.413,3.413 c1.886,0,3.413-1.527,3.413-3.413v-3.413C174.08,69.793,172.553,68.266,170.667,68.266z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M211.625,170.666h-75.093c-1.294,0-2.473,0.729-3.053,1.886l-2.47,4.941h-46.98l-2.47-4.941 c-0.58-1.155-1.76-1.886-3.053-1.886H3.413c-1.886,0-3.413,1.527-3.413,3.413c0,13.174,10.72,23.893,23.893,23.893h167.253 c13.174,0,23.893-10.72,23.892-23.893C215.038,172.193,213.511,170.666,211.625,170.666z M191.147,191.146H23.893 c-8.243,0-15.136-5.873-16.724-13.653h69.228l2.471,4.941c0.58,1.155,1.76,1.886,3.053,1.886h51.2 c1.294,0,2.473-0.729,3.053-1.886l2.47-4.941h69.226C206.283,185.273,199.39,191.146,191.147,191.146z" />
</vector>
14 changes: 14 additions & 0 deletions designertoast/src/main/res/drawable/ic_success.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="36dp"
android:height="36dp"
android:viewportWidth="512"
android:viewportHeight="512">

<path
android:fillColor="#FFFFFF"
android:pathData="M256 512c-68.378906 0-132.667969-26.628906-181.019531-74.980469-48.351563-48.351562-74.980469-112.640625-74.980469-181.019531 0-58.257812 19.066406-113.144531 55.136719-158.730469 2.570312-3.246093 7.285156-3.796875 10.535156-1.226562 3.25 2.570312 3.796875 7.285156 1.226563 10.535156-33.953126 42.910156-51.898438 94.578125-51.898438 149.421875 0 64.375 25.066406 124.894531 70.585938 170.414062 45.519531 45.519532 106.039062 70.585938 170.414062 70.585938s124.894531-25.066406 170.414062-70.585938c45.519532-45.519531 70.585938-106.039062 70.585938-170.414062s-25.066406-124.894531-70.585938-170.414062c-45.519531-45.519532-106.039062-70.585938-170.414062-70.585938-63.414062 0-123.285156 24.429688-168.589844 68.785156-2.957031 2.894532-7.707031 2.847656-10.605468-0.113281-2.898438-2.960937-2.847657-7.707031 0.109374 -10.605469 48.125-47.117187 111.726563-73.066406 179.085938-73.066406 68.378906 0 132.667969 26.628906 181.019531 74.980469 48.351563 48.351562 74.980469 112.640625 74.980469 181.019531s-26.628906 132.667969-74.980469 181.019531c-48.351562 48.351563-112.640625 74.980469-181.019531 74.980469zm0 0" />
<path
android:fillColor="#FFFFFF"
android:pathData="M240.8125 397.074219c-9.734375 0-18.957031-3.148438-26.671875-9.097657l-117.144531-90.363281c-9.238282-7.128906-15.152344-17.429687-16.644532-29.003906-1.496093-11.574219 1.609376-23.035156 8.734376-32.277344 7.128906-9.238281 17.429687-15.148437 29.003906-16.644531 11.574218-1.492188 23.039062 1.609375 32.277344 8.738281l85.136718 65.675781 120.398438-133.242187c7.820312-8.660156 18.550781-13.753906 30.203125-14.34375 11.65625-0.589844 22.84375 3.390625 31.503906 11.214844s13.753906 18.554687 14.34375 30.210937c0.589844 11.652344-3.394531 22.839844-11.21875 31.5l-19.984375 22.117188c-2.777344 3.074218-7.519531 3.3125-10.59375 0.535156 -3.070312-2.777344-3.3125-7.519531-0.535156-10.589844l19.984375-22.117187c10.605469-11.738281 9.761719-30-2.054688-40.523438-16.730469-14.90625-35.382812-3.636719-40.519531 2.050781l-125.046875 138.390626c-2.625 2.90625-7.042969 3.300781-10.144531 0.910156 l-90.636719-69.914063c-6.0625-4.679687-27.496094-11.683593-40.238281 5.191407-12.742188 16.878906-0.875 35.5625 5.191406 40.242187l117.144531 90.363281c5.066407 3.910156 11.121094 5.972656 17.511719 5.972656 8.105469 0 15.871094-3.445312 21.300781-9.453124l106.839844-118.242188c2.777344-3.074219 7.519531-3.3125 10.59375-0.535156 3.070313 2.773437 3.3125 7.519531 0.535156 10.589844l-106.839843 118.246093c-8.269532 9.148438-20.089844 14.398438-32.429688 14.398438zm0 0" />
</vector>
17 changes: 17 additions & 0 deletions designertoast/src/main/res/drawable/ic_warning.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="36dp"
android:height="36dp"
android:viewportWidth="60"
android:viewportHeight="60">

<path
android:fillColor="#FFFFFF"
android:pathData="M30 0c-16.5685425 0-30 13.4314575-30 30s13.4314575 30 30 30 30-13.4314575 30-30c-0.018737-16.5607751-13.4392249-29.98126296-30-30zm0 58c-15.463973 0-28-12.536027-28-28s12.536027-28 28-28 28 12.536027 28 28c-0.0176345 15.4566626-12.5433374 27.9823655-28 28z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M48.377 11.623c-0.3923789-0.3789722-1.0160848-0.3735524-1.4018186 0.0121814 s-0.3911536 1.0094397-0.0121814 1.4018186c8.4451525 8.4794481 9.3675766 21.8793204 2.164 31.436l-6.306-6.306c0.7851161-2.9288198 1.2544566-5.9332693 1.4-8.962l2.642-5.671c0.6233393-1.4833822-0.0345728-3.194377-1.4911633-3.8779842-1.4565905-0.6836071-3.1931103-0.0963672-3.9358367 1.3309842-0.078 0.167 -0.054 0.386 0.29-2.354 0.1497286 -1.1844795-0.4171416-2.3449991-1.4434261-2.9550405s-2.316613-0.5534731-3.2855739 0.1440405 c-0.0381013-0.7293731-0.3481557-1.4179863-0.869-1.93-0.8556477-0.8610678-2.1458784-1.121628-3.2686236-0.6600939-1.1227453 0.4615341 -1.8567008 1.5541897-1.8593764 2.7680939v0.9c-0.8829418-1.0244399-2.3421688-1.3314461-3.5630504-0.7496288s-1.9015236 1.9085888-1.6619496 3.2396288l0.379 2.114-10.635-10.639c6.8398009-5.15994326 15.9074803-6.2934508 23.807-2.976 0.5075497 0.21787631 1.0956236-0.01695034 1.3135-0.52450001 0.2178763 -0.50754968-0.0169503-1.09562364-0.5245-1.31349999-8.9570874-3.76507357-19.2653322-2.23022963-26.737 3.981-0.2108677 0.1814397 -0.3366271 0.442516 -0.3470635 0.7205027 -0.0104364 0.2779868 0.0953937 0.5477575 0.2920635 0.7444973 l35.19 35.19c0.2000924 0.2016636 0.4765139 0.3087047 0.7602398 0.2943944 s0.5479743-0.1486213 0.7267602 -0.3693944c8.5499546-10.3407382 7.8475118-25.4841593-1.623-34.989zm-20.634 7.407c-0.1001303-0.5395926 0.253322 -1.0590605 0.792 -1.164 0.5469106 -0.0960215 1.0691872 0.2661378 1.171 0.812 l1.31 7.25c0.0922185 0.5093104 0.5578376 0.8640825 1.0733588 0.8178311 0.5155213-0.0462514 0.910554 -0.4782393 0.9106412 -0.9958311v-9.75c0.003293-0.4042387 0.2496464 -0.7667342 0.6242868 -0.9186036 0.3746405 -0.1518695 0.8038692 -0.0632373 1.0877132 0.2246036 0.1865985 0.1823963 0.2906276 0.4330776 0.288 0.694 v7.65c-0.0006017 0.5264672 0.407088 0.9632367 0.9323496 0.9988521 0.5252615 0.0356154 0.988179-0.3421224 1.0586504-0.8638521l0.77-5.669c0.0273435-0.37097 0.258336 -0.696106 0.5996369 -0.8440252 0.3413008 -0.1479193 0.7365 -0.0941738 1.0259032 0.1395187 0.2894032 0.2336924 0.4251781 0.6087073 0.3524599 0.9735065 l-1.22 8.95c-0.0727553 0.4931604 0.2288137 0.96459 0.7070438 1.1052903 0.47823 0.1407004 0.987051 -0.092304 1.1929562-0.5462903l2.833-6.066c0.2638535-0.4420206 0.8201704 -0.6115104 1.2856616-0.3916951s0.6880499 0.7571075 0.5143384 1.2416951c-3 6.367-2.811 5.958-2.823 6.236-0.1190779 2.5660208-0.4678052 5.1162143-1.042 7.62l-12.558-12.559z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M10.607 14.433c-0.2071081-0.2069924-0.4945331-0.3128113-0.78641931-0.2895297-0.29188622 0.0232816 -0.558903 0.1733244 -0.73058069 0.4105297 -6.56537649 8.8400817-6.82131515 20.8655881-0.638 29.977 0.31329217 0.4472337 0.92742016 0.5604625 1.37960692 0.2543627 0.45218678-0.3060999 0.57522238 -0.9183386 0.27639308 -1.3753627-0.99357162-1.4680684-1.82287816-3.0408333-2.473-4.69 1.16498427-0.5166344 2.3712023-0.9347633 3.606-1.25 0.4457253 -0.1106821 0.7587588 -0.5107381 0.759 -0.97v-2c0-0.5522847-0.4477153-1-1-1-2.6 0-1.733-2-1-2 0.2985155-0.0165777 0.5768667 -0.1559342 0.769 -0.385 0.2273118 -0.4033825 0.3234243 -0.8675186 0.275 -1.328-0.0807383-1.0606246 0.4669302 -2.0702906 1.4-2.581 1.673-1.255 4.053-0.572 5.075 1.821l-4.482 0.6 c-0.5209775 0.0703565 -0.8985251 0.5320856 -0.8640103 1.0566581s0.4693057 0.932853 0.9950103 0.9343419 c0.108 0-0.576 0.087 4.805-0.636 0.0729889 0.8174084-0.0195197 1.641143-0.272 2.422-1.562-2.344-4.833-1.116-4.833 2.056-0.0335596 1.0565997 0.419429 2.0702031 1.229 2.75-0.355 0.269 -0.6 0.421 -0.613 0.431 -0.473308 0.2847028 -0.6262028 0.899192 -0.3415 1.3725s0.899192 0.6262028 1.3725 0.3415 c0.9517174-0.6104218 1.8225975-1.3385071 2.592-2.167 0.2678681 -0.2369855 0.5032395 -0.5083351 0.7 -0.807 2.3409324-0.3066397 4.7014986-0.4380051 7.062-0.393 0.7338755 0.9557847 1.3992035 1.9622979 1.991 3.012h-2.5c-1.1537596-0.0017819-2.252096 0.4947114 -3.013 1.362l-4.821 5.52c-0.3639556 0.4161466 -0.3216465 1.0485443 0.0945 1.4125 0.4161466 0.3639556 1.0485443 0.3216465 1.4125-0.0945l4.819-5.519c0.3807967-0.4340388 0.9305972 -0.6823241 1.508-0.681h3.817c2.359 2.661 6.569 3.95 9.85 2.682l5.273 5.277c-8.0843818 5.4299266-18.6569568 5.4034101-26.714-0.067-0.4570241-0.2988293-1.0692628-0.1757937-1.3753627 0.2763931 -0.3060998 0.4521867 -0.192871 1.0663147 0.2543627 1.3796069 9.1121306 6.1808841 21.1360968 5.9249782 29.977-0.638 0.2372053 -0.1716777 0.3872481 -0.4386945 0.4105297 -0.7305807s-0.0825373-0.5793112-0.2895297-0.7864193zm4.979 19.755c0.506 0 1.009 1.179 0.513 2.11-0.176 0.214 -0.326 0.439 -0.513 0.439 -0.332 0-0.718-0.557-0.718-1.275s0.386-1.274 0.718 -1.274zm4.414-2.688c0-5.78-5.169-8.583-8.756-5.894-1.41999238 0.8690362 -2.26096515 2.4363037-2.2 4.1-1.25771571 0.5452061 -1.98196035 1.8774127-1.75564219 3.2294033 0.22631817 1.3519907 1.34493581 2.375709 2.71164219 2.4815967 0 0.607 0.339 -0.021-3.014 1.423-2.02423122-6.8338158-0.9047619-14.2138852 3.055-20.14l11.959 11.957c-1.1601151 1.5155288-1.0838164 3.6405731 0.182 5.069 0.374 0.419 0.74 0.842 1.095 1.264-1.3 0.02 -2.787 0.086 -4.111 0.209 0.5451256-1.1571857 0.829814 -2.4198507 0.834 -3.699zm8.893 8.05c-1.4479484-2.5824046-3.1990045-4.9827212-5.216-7.15-0.562952-0.6367504-0.659369-1.5607466-0.24-2.3l12.976 12.968c-2.9891793 0.4680779 -5.9635951-0.9234108-7.52-3.518z" />
</vector>
11 changes: 11 additions & 0 deletions designertoast/src/main/res/drawable/info_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape>
<solid android:color="#1A237E" />
<corners android:radius="200dp" />
</shape>
</item>

</selector>
11 changes: 11 additions & 0 deletions designertoast/src/main/res/drawable/success_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape>
<solid android:color="#388E3C" />
<corners android:radius="200dp" />
</shape>
</item>

</selector>
11 changes: 11 additions & 0 deletions designertoast/src/main/res/drawable/warning_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape android:shape="rectangle">
<solid android:color="#FFCA28" />
<corners android:radius="200dp" />
</shape>
</item>

</selector>

0 comments on commit 3867234

Please sign in to comment.