Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ed237ff authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Improve documentation for FabricatedOverlay dimension and float APIs" into main

parents c77d251f 275427c3
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -616,6 +616,16 @@ public class FabricatedOverlay {
     * Sets the resource value in the fabricated overlay for the dimension type with the
     * configuration.
     *
     * <p>This can be used to overlay dimension resources of the following formats.
     * <pre>
     * &lt;dimen name="foo"&gt;10dp&lt;/dimen&gt;
     * &lt;dimen name="foo"&gt;10sp&lt;/dimen&gt;
     * &lt;dimen name="foo"&gt;10px&lt;/dimen&gt;
     * &lt;dimen name="foo"&gt;10mm&lt;/dimen&gt;
     * &lt;dimen name="foo"&gt;10in&lt;/dimen&gt;
     * &lt;dimen name="foo"&gt;10pt&lt;/dimen&gt;
     * </pre>
     *
     * @param resourceName name of the target resource to overlay (in the form
     *     [package]:type/entry)
     * @param dimensionValue the float representing the dimension value
@@ -637,6 +647,11 @@ public class FabricatedOverlay {
     * Sets the resource value in the fabricated overlay for the float type with the
     * configuration.
     *
     * <p>This can be used to overlay float resources of the following format.
     * <pre>
     * &lt;item name="foo" format="float" type="dimen"&gt;0.015&lt;/item&gt;
     * </pre>
     *
     * @param resourceName name of the target resource to overlay (in the form
     *     [package]:type/entry)
     * @param value the float representing the new value