aboutsummaryrefslogtreecommitdiff
path: root/en/devices/tech/display/adaptive-icons.html
diff options
context:
space:
mode:
Diffstat (limited to 'en/devices/tech/display/adaptive-icons.html')
-rw-r--r--en/devices/tech/display/adaptive-icons.html37
1 files changed, 20 insertions, 17 deletions
diff --git a/en/devices/tech/display/adaptive-icons.html b/en/devices/tech/display/adaptive-icons.html
index 815e9b9c..5d74b10c 100644
--- a/en/devices/tech/display/adaptive-icons.html
+++ b/en/devices/tech/display/adaptive-icons.html
@@ -43,11 +43,14 @@
Developer documentation:
</p><ul>
<li><a
- href="https://developer.android.com/preview/features/adaptive-icons.html">https://developer.android.com/preview/features/adaptive-icons.html</a>
+ href="https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive">
+ https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive</a>
<li><a
- href="https://developer.android.com/reference/android/graphics/drawable/AdaptiveIconDrawable.html">https://developer.android.com/reference/android/graphics/drawable/AdaptiveIconDrawable.html</a>
+ href="https://developer.android.com/reference/android/graphics/drawable/AdaptiveIconDrawable.html">
+ https://developer.android.com/reference/android/graphics/drawable/AdaptiveIconDrawable.html</a>
<li><a
- href="https://developer.android.com/reference/android/graphics/drawable/Icon.html#createWithAdaptiveBitmap(android.graphics.Bitmap)">https://developer.android.com/reference/android/graphics/drawable/Icon.html#createWithAdaptiveBitmap(android.graphics.Bitmap)</a></li></ul>
+ href="https://developer.android.com/reference/android/graphics/drawable/Icon.html#createWithAdaptiveBitmap(android.graphics.Bitmap)">
+ https://developer.android.com/reference/android/graphics/drawable/Icon.html#createWithAdaptiveBitmap(android.graphics.Bitmap)</a></li></ul>
<p>
Source code:
@@ -61,7 +64,7 @@
<pre
class="prettyprint">&lt;!-- Specifies the path that is used by AdaptiveIconDrawable class to crop launcher icons. -->
- &lt;string name="config_icon_mask" translatable="false">"M50,0L100,0 100,100 0,100 0,0z"&lt;/string></pre>
+ &lt;string name="config_icon_mask" translatable="false">"M50,0L100,0 100,100 0,100 0,0z"&lt;/string></pre>
<p>
The format and syntax of the string follow the <a
href="https://www.w3.org/TR/SVG/paths.html">W3, SVG standard for path
@@ -86,25 +89,25 @@
<pre
class="prettyprint">package android.graphics.drawable;
public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback {
- method public Drawable getBackground();
- method public Drawable getForeground();
- method public Path getIconMask();
- method public Region getSafeZone();
- method public float getExtraInsetFraction();
- method public int getOpacity();
- method public void invalidateDrawable(Drawable);
- method public void scheduleDrawable(Drawable, Runnable, long);
- method public void setAlpha(int);
- method public void setColorFilter(ColorFilter);
- method public void setOpacity(int);
- method public void unscheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable);
+ method public Drawable getBackground();
+ method public Drawable getForeground();
+ method public Path getIconMask();
+ method public Region getSafeZone();
+ method public float getExtraInsetFraction();
+ method public int getOpacity();
+ method public void invalidateDrawable(Drawable);
+ method public void scheduleDrawable(Drawable, Runnable, long);
+ method public void setAlpha(int);
+ method public void setColorFilter(ColorFilter);
+ method public void setOpacity(int);
+ method public void unscheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable);
}</pre>
<pre
class="prettyprint">public class Icon extends Parceleable {
- method public Bitmap createWithAdaptiveBitmap();
+ method public Bitmap createWithAdaptiveBitmap();
}</pre>
<h2>Reference Implementation</h2>
<p>