Fan Zhang
035ff93430
Move two target preference layout from settings to lib
...
Change-Id: I5eda0cdcc4e8d8bb25f95ee12837d90179ac5c0a
Fix: 36511169
Test: make RunSettingsLibRoboTests
2017-03-22 16:02:37 -07:00
Fan Zhang
f1c1bb49f8
Remove drawer code from settings
...
Change-Id: I3e9920f62745f6ba2236e37689f7603f9a30d6a9
Fix: 35809663
Test: make RunSettingsLibRoboTests
2017-02-28 11:54:28 -08:00
TreeHugger Robot
966e35a656
Merge "Change default settings theme to light color."
2017-01-20 17:20:07 +00:00
Fan Zhang
59d488a136
Change default settings theme to light color.
...
- Use standard light theme as parent for Theme.DeviceDefault.Settings.
- Revert Theme.DeviceDefault.Settings.LightActionBar in favor of
standard action bar theme
Bug: 33558692
Test: visual
Change-Id: I78542b716315e03060ab9157bc850f54cc316b00
2017-01-19 13:53:28 -08:00
Stephen Chen
2c096596b7
Add Wi-Fi friction icons to AccessPointPreference.
...
Friction icons are added to the end of the Wi-Fi picker list items to
provide visual information such as whether a network is secured, or saved.
The first two badges added are a lock icon to indicate a secure network, and
an open lock to indicate a saved network that is also secure.
Test: manual inspection
Bug: 34281330
Change-Id: I04ce9bc4a5bd245398d5f3b308ccb30b7cf58270
2017-01-19 12:35:35 -08:00
Fan Zhang
9db32f35fb
Add Theme and ThemeOverride for new Settings
...
Bug: 33558692
Test: visual inspection
The new action bar theme has
- light background
- colorAccent as textColorPrimary
- no elevation
Change-Id: I4c1b88410701a35b0e2305d9162ba448d1f5d67b
2017-01-05 14:29:23 -08:00
roger xue
8f06ab0774
making changes to settingsLib so we can create car setting using settingsLib
...
Test: make -j40 RunSettingsLibRoboTests
Change-Id: I4eff074ebbbf1d4a4325580d68a2123d3f5ff930
2017-01-05 10:20:24 -08:00
jackqdyulei
63b5c2f4f5
Set background of DrawerLayout to statusBarColor
...
Bug: 30811708
Test: Manual
Change-Id: Ib77a7f65de04840c96c52b3ca2fa7bfdbadd25b3
2016-12-19 17:38:29 -08:00
Fan Zhang
dbf79fe009
Revert "Remove hardcoded actionbar background color."
...
This reverts commit 697e186820f9bffb843aec7005a2ad26f1c0b9b2.
Change-Id: Id3223eeba6f07f9b90d1f5e0e4fd42bae1cf3f1b
2016-12-16 20:26:09 +00:00
Fan Zhang
697e186820
Remove hardcoded actionbar background color.
...
Bug: 33558692
Test: visual
Change-Id: Ia95799f86eab5b9566cca52ee0409d303e16a3c6
2016-12-15 14:34:26 -08:00
Fan Zhang
89ae66c322
Always reserve space for icon in RestrictedSwitchPreference.
...
Bug: 33430928
Test: RunSettingsLibRoboTests
Change-Id: I60e712f33d9fc7d3617fcaf5b217a2435ff18540
2016-12-12 11:37:33 -08:00
Salvador Martinez
3fd12a86c7
Restricted switch preference uses ripple on focus
...
Modified layout used by settingsLib to user
selectableItemBackground to get ripple effect
when focused by user.
Test: Visual Inspection
Bug: 31975611
Change-Id: I481db63c9ffb3aa5645ff052bf10dddd43dfbdad
2016-10-11 18:03:30 -07:00
Fan Zhang
dd5469e488
Align bottom text with battery graph in RTL layout.
...
Bug: 30161009
Bottom text (estmitated remaining battery time) should be stay under the
battery graph in RTL. To help alignment, we use a spacer view to the
left or right of text depending on layout direction.
Change-Id: Iaf706c1a963246e7f04764e5f24e6cb4bf3d2bbf
2016-07-29 13:35:41 -07:00
Sudheer Shanka
24d8e86219
Merge "Move spinner_dropdown_restricted_item to Settings." into nyc-dev
...
am: f7a2afb4fc
* commit 'f7a2afb4fce896f82ee9468825af51efb6cf7c05':
Move spinner_dropdown_restricted_item to Settings.
Change-Id: I02b5a790cb4017173c57a33f07a8c37040a38ab5
2016-05-11 19:12:28 +00:00
Sudheer Shanka
f7a2afb4fc
Merge "Move spinner_dropdown_restricted_item to Settings." into nyc-dev
2016-05-11 19:04:20 +00:00
Sudheer Shanka
a2650a958b
Move spinner_dropdown_restricted_item to Settings.
...
RestrictedDropdownPreference is in Settings and currently not
used by anything else, so corresponding layout
spinner_dropdown_restricted_item to Settings.
Bug: 28390118
Change-Id: I3a1b53dc80ba9329d6ffd40562db0c0587a34666
2016-04-28 14:24:04 -07:00
Fan Zhang
b6060a3fbc
Merge "Allow fragments set their own header view below actionbar." into nyc-mr1-dev
2016-04-20 20:50:17 +00:00
Sudheer Shanka
df9ecfc587
Merge "Add restrictedSwitchSummary attribute to restricted switch preferences." into nyc-dev
2016-04-20 18:04:14 +00:00
Fan Zhang
7163d77108
Allow fragments set their own header view below actionbar.
...
Bug: 27751187
Bug: 28269035
Change-Id: Iac081c009800a71afe413cf63ddd9788b2e90d6a
(cherry picked from commit ff2e0f4be8d0085f6db2315bcf184eccdbb69554)
2016-04-20 17:25:58 +00:00
Jason Monk
8095309791
Fix settings drawer when font size is huge
...
Change-Id: Id720a7e7b471ddf01ed3682882656cd838eb860d
Fixes: 28181614
2016-04-20 09:44:22 -04:00
Sudheer Shanka
a1790c3b35
Add restrictedSwitchSummary attribute to restricted switch preferences.
...
Bug: 27659072
Change-Id: If516adaed041ea0d66945ebf1dbe7945331d0da5
2016-04-19 21:51:38 -07:00
Sudheer Shanka
6823a8fc59
Update RestrictedSwitchPreference to have an additional summary.
...
Bug: 27659072
Change-Id: Idfefe16f709d092355ce9cfbd820aacf12b95692
2016-04-14 12:24:23 -07:00
Sudheer Shanka
d7061416eb
Merge "Minor cleanup in restricted_icon." into nyc-dev
2016-03-09 17:03:38 +00:00
Sudheer Shanka
65c000fd98
Minor cleanup in restricted_icon.
...
android:gravity doesn't have any effect for ImageView, remove it.
Bug: 27564074
Change-Id: Icb6e5dc2bfeb0b30b2b77cb56fc7439950eadce1
2016-03-09 16:31:28 +00:00
Jason Monk
0193a87196
Support updates to the data usage graph
...
Also make the graph a little bit more smooth.
Bug: 27278313
Change-Id: Ia9ff8a69691671c57cfaf6eb43e373a8386469ea
2016-03-08 16:35:05 -05:00
Jason Monk
73f842917e
Fix window insets for settings activities
...
Bug: 27276035
Change-Id: I48d8361f38dd7b708c49e71087e3e2ebf3f2df7a
2016-03-07 10:31:15 -05:00
Sudheer Shanka
40400a648f
Update restricted icon.
...
Bug: 25603665
Bug: 27263775
Change-Id: Ib66866cf536f15130f936d03d9328ee5b0b508c7
2016-03-02 19:08:51 -08:00
Sudheer Shanka
923bc74c92
Part1: Show the restricted lock icon in place of the pref widget.
...
Add summary strings used for switch prefs if disabled by admin.
Bug: 25603665
Bug: 27263775
Change-Id: I88c2dd2e024f92da107bedc645641e285796d51f
2016-03-01 16:45:03 -08:00
Jason Monk
a5d7dd9cd5
Fixes and changes to support settings using UsageView
...
Bug: 27213136
Change-Id: I1796d710379fc92cf21b196459f34dda4570355f
2016-02-17 10:16:31 -05:00
Jason Monk
96ab63640f
Battery graph in QS Detail
...
Add new usage graph view to SettingsLib that shows usage with
same labels and whatnot.
Use that graph in the battery detail panel to show more stuffs.
Change-Id: I397b1314f65f668df566e93bdbc15420e1b3a280
2016-02-16 16:25:44 -05:00
Jason Monk
cafda1f90e
Settings drawer work
...
- Final visuals
- Show under status bar
- Fix activity flow surrounding drawer use
Change-Id: I161702219c26cabc6b2d1adbaa6fbfb1d9fd5b07
2016-02-08 15:12:25 +00:00
Sudheer Shanka
7ff866d286
Move restricted padlock support to SettingsLib
...
Change-Id: Ib0b1c58d1f45e017b6b17ce0a55ca839b900cba4
2016-01-12 18:14:24 +00:00
Adam Lesinski
cf982aa2e3
Fix positional arguments in strings
...
Change-Id: Id5768adba6b0422b5bb81e800a32be19db2a8626
2015-12-16 14:35:37 -08:00
Jason Monk
0d72d20c2f
Settings Drawer: Handle multi-profile/user correctly
...
Change-Id: Ibef3cb38325415d514dc86fcd4ce7b95825361f8
2015-11-04 15:04:45 -05:00
Jason Monk
744b63632a
First pass at drawer support for SettingsLib
...
Change-Id: I9669bd511dd3c4b7f59b8600a5af65d9837af015
2015-11-04 15:02:55 -05:00