To support new settings UI, we change the UI from scrollview
to listview to simplify UI initialization.
Bug: 182118397
Test: atest MagnificationSettingsFragmentTest
and manual test.
Change-Id: Ib65dc139ba54f2281e5cb7e2dc55b3574ad2c733
Root Cause: Touch target of "container" is too small, reported by
accessibility scanner. Suggest to enlarge bigger than 48dp.
Solution: Set the minimum height to the CheckBox layout. If the
container text in CheckBox is bigger than 48dp, it will follow the
layout_height="wrap_content".
Bug: 168264410
Test: manual test
Change-Id: I50362baefd692e6bfbef1778eb2a5b72dd35ab7a
Root cause: The asset is not rectangle, it is high > width asset. Called the centerCrop cause the both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
Solution: Change to fitCenter.
Bug: 146473544
Test: local test
Change-Id: I17de6a09f21e1454afcdd0297b81868c1b819de1
Provide a setting for new Magnify area feature and joystick controller
Bug: 146019459
Bug: 146473544
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationModePreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationWindowControlPreferenceControllerTest
Test: make RunSettingsRoboTests2
Change-Id: Ia32fa073c59ad304e9ef9eb530ba37dd24c2f2f6
Create a dialog that could let users choose their preferred accessibility
shortcut.
This CL only contains dialog layout and its utility methods.
Related logic implementation will be added in next CL.
Bug: 142531156
Test: Maunal
Change-Id: I7bfccea96cc47dd213b4d828499c10b290e24330