diff --git a/README.md b/README.md index 7ff3ab2..8f83b54 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ Example Usage Lets say you want to set the text size while drawing a custom view: ```java -paint.setTextSize(AndroidUnits.SCALED_PIXELS.toPixels(8)); +paint.setTextSize(AndroidUnit.SCALED_PIXELS.toPixels(8)); ``` Or you want to draw a rectangle with rounded corners: ```java -float radius = AndroidUnits.DENSITY_PIXELS.toPixels(12); +float radius = AndroidUnit.DENSITY_PIXELS.toPixels(12); canvas.drawRoundRect(rect, radius, radius, paint); ``` @@ -75,4 +75,4 @@ License 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. \ No newline at end of file + limitations under the License.