OSDN Git Service

Add ability to customize button corner radius.
authorAndrew Sapperstein <asapperstein@google.com>
Thu, 16 Nov 2017 02:06:51 +0000 (18:06 -0800)
committerAndrew Sapperstein <asapperstein@google.com>
Wed, 29 Nov 2017 14:26:37 +0000 (06:26 -0800)
commitf9e05736ef5d995a481998f3752dd237e9b8f83e
treed1a48cd6a02333f2057b6b6ce5b410d50527c186
parent25c3c34c81b38c7afacbbd456236e1bfaaa1e0eb
Add ability to customize button corner radius.

Creates a new buttonCornerRadius public attribute to control
the rounded corner radius for buttons at the theme level.

Updates default button backgrounds to use new value and updates
themes to set the corner radius to existing value of 2dp.

Also adds a configuration hook for a device to change the value
for DeviceDefault-based themes.

Bug: 64122537
Bug: 69314526
Bug: 69367197
Test: ag/3238215
Change-Id: I00be0c53b99292e1728ecdf40d4c876e283e65da
api/current.txt
core/res/res/drawable/btn_colored_material.xml
core/res/res/drawable/btn_default_mtrl_shape.xml
core/res/res/values/attrs.xml
core/res/res/values/config.xml
core/res/res/values/public.xml
core/res/res/values/themes_device_defaults.xml
core/res/res/values/themes_material.xml