Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Woodland committed Aug 1, 2017
1 parent 03fb2be commit 33bf4a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down Expand Up @@ -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.
limitations under the License.

0 comments on commit 33bf4a6

Please sign in to comment.