Commit Graph

83 Commits

Author SHA1 Message Date
Maurice Lam
588e61aa05 [WifiSetup] L layout update
Changed the layout based on the new design mocks. Copied over
StickyHeaderListView and SetupWizardHeader. Currently using the
generic illustration but will update to Wifi setup specific version
once we get them.

Change-Id: I22bdef8c9860d419be55938e1e4a6a682db5b7e8
2014-07-09 19:33:28 -07:00
Fabrice Di Meglio
5c3fd1cea3 Define a specific preferenceFragmentStyle in Settings Theme
- needed for being able to have PreferenceFragments look as the Dashboard

See bug: #15384992 Setting Dashboard - padding updates

Change-Id: I098008a131aa29594025b38dd0dc07c1cc3bffdc
2014-07-07 17:42:17 -07:00
Alan Viverette
974a4d709f Update data usage progress bar to match framework
Change-Id: Ibc8af377e6088fd03100809a85d9e4ee69bfad1d
2014-07-03 00:51:30 +00:00
Fabrice Di Meglio
1caba3a827 Fix RTL support for the Dashboard
- make ic_settings_nfc_payment auto mirror

See bug: #15313101 Settings Dashboard needs to support RTL

Change-Id: If8174e0ce565100e3e61bcdef19ff105ab4f636f
2014-07-01 17:30:57 -07:00
Fabrice Di Meglio
299ed6ef88 Fix Search History RTL support
- make ic_search_history icon auto mirror

Change-Id: I3e57103bf776f4dd52c2089d80992d9abef4ec1c
2014-07-01 12:12:52 -07:00
Fabrice Di Meglio
6471150ccc Fix RTL support for the Dashboard
- the RTL version of ic_settings_display was shadowing the real
icon
- make the new icon auto mirror

See bug: #15313101 Settings Dashboard needs to support RTL

Change-Id: I8c935cf8f5e5166e5ced70f27b3703bb3de8319d
2014-07-01 12:05:04 -07:00
Fabrice Di Meglio
e0284653b7 Update Search Suggestions and Results Panel
- fix overdraw use as less backgrounds as possible
- make it look like the Dashboard with padding left and right

See bug: #15384992 Setting Dashboard - padding updates

Change-Id: I30ff33e51bc3c73e888d45f0ce6e16784eb6721c
2014-07-01 11:00:14 -07:00
Alan Viverette
296c7f575e Ripple tint is now color
Change-Id: I8e7d514fef327a7d3e172d0faae2466d26bddb9d
2014-06-10 00:58:45 +00:00
Alan Viverette
5c8f1352e4 DO NOT MERGE Material theme
BUG; 15467097
Change-Id: Ifeda3f6cc1554c4d31357d5010df6958113df964
2014-06-06 14:33:10 -07:00
Dianne Hackborn
a4e854fa5b Merge "Tweak battery usage to match red lines." into lmp-preview-dev 2014-06-03 00:21:30 +00:00
Dianne Hackborn
7158e62992 Tweak battery usage to match red lines.
Most of this is done, the main thing missing is the color
of the bars which seems like a framework issue.

Note that this introduces a change to the global theme
making colorControlActivated the specified blue color,
which impacts all of the settings UI.  (Except apparently
progress bars, and thus the bug.)

Change-Id: I4a5ca8c3b94dc23b8f065f60fe697ee0e76ff47d
2014-06-02 17:21:13 -07:00
Fabrice Di Meglio
e9cb75c636 Entire Switch bar should be a touch state
- add click listener for toggling the Switch and its text
- add Ripple background to the SwitchBar to make a nice Ripple
when there is a click/touch

See bug #15385724 Entire Switch bar should be a touch state

Change-Id: I26ef77ace596029e9c3e1e17b153b54df4a9110e
2014-06-02 16:29:18 -07:00
Alan Viverette
49dbbe17b8 Update references to private assets in Settings
Change-Id: Id7a788c3f7015baf991427082b6592589e62d372
2014-05-22 20:43:37 -07:00
Alan Viverette
36950406e6 Update highlight attribute
Change-Id: Ib9373bd3c89dbf28b4586d95306d02a3999b119e
2014-05-21 16:24:34 -07:00
Alan Viverette
ba348ca996 TouchFeedbackDrawable is now RippleDrawable
Change-Id: Id025b58e9b62baa8d07f13b7eae2de61a3e4c90a
2014-05-19 15:10:36 -07:00
Fabrice Di Meglio
4193776698 Introduce SwitchBar widget
- SwitchBar is a LinearLayout that containts a TextView and a Switch and
is intended to replace all Switches that are put in the ActionBar as a
custom view
- use the new SwitchBar for WifiSetting only for now (a later CL will
take care of all the other Setting that are using a Switch in the
ActionBar)

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: I5e98dbe995bba8f440d08459e09ca3ac09d3464b
2014-05-14 16:42:06 -07:00
Fabrice Di Meglio
39490546d3 Add touch feedback and focus on Dashboard tiles
- use a touch-feedback background
- declare DashboardTileView as focusable

Change-Id: I67ae19cd20374e531660232034528c995f595900
2014-05-09 18:18:05 -07:00
Fabrice Di Meglio
906ff6fdf9 Improve Preference highlight effect
- restrict the effect to the Preference View itself

Change-Id: I3ab04433e1acecb906d0a458b31314f97b9bda03
2014-04-16 18:18:41 -07:00
Fabrice Di Meglio
263bcc8b73 Use Drawer in Settings app
- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header  validation when launched from the Drawer but *force* validation if external
call thru an Intent

Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).

Also, verified that:

- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer

Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
2014-02-03 16:36:46 -08:00
Russell Brenner
ac57f3e1eb Add resources for light theme
Bug: 10407819
Change-Id: Ie232b2d48a8d67355d7c31a878ebaa79aae7c44d
2013-08-30 10:10:02 -07:00
Alan Viverette
cc0e782871 Add captioning preferences screen
BUG: 9926077
Change-Id: Iea141d5d6fd0e4f134c36c51d89830b3c31abd09
2013-08-06 13:53:58 -07:00
Michael Jurka
0b2bd8d11d New widget picker for keyguard widgets
New layout for widget picker is still not up to
final design, but this change prepares all the
backend work

Also, remove use of features filter from the
picker, since this is being removed from the API

Change-Id: I9b332e22cf34b98c20c720602c920d28aed01d6c
2012-10-31 16:46:24 -07:00
Amith Yamasani
95dc4733c0 Use new color avatar assets
Bug: 7204409
Bug: 7222997
Change-Id: Iac2c4ab2d7bf0090670573bf4c967f07abdf6f51
2012-10-02 21:10:48 -07:00
Amith Yamasani
a9c55d8dbd Make Settings shortcuts launch into the correct activity/fragment.
Bug: 6959454

Change the task affinities so that the shortcuts are not tied to
Settings main task.

Change-Id: I7729d17d8144a4a57f0d135fe80bdbd7af8dad01
2012-09-30 13:46:51 -07:00
Brian Muramatsu
a6dbaea2da Add optional regulatory info page
Bug 7081675

If R.bools.config_show_regulatory_info is true, then show a "Regulatory
information" item on the "About phone" page. Show a DialogFragment
displaying the regulatory_info drawable if the item is clicked. Add a
1x1 blank regulatory_info drawable for devices that won't show this.

Change-Id: I5823d8969de038becf4911dce893dab5dbb23537
2012-09-18 11:46:35 -07:00
Amith Yamasani
dc6bfa6ef5 User management UI: take 2
Single screen user management, also visible on secondary users.
Work in progress, especially with respect to synchronizing with
the Me profile.

Change-Id: Id6e94a85d53356847e4e019c52e3388de9ecb354
2012-09-10 18:15:19 -07:00
John Spurlock
7af2aa52ac More traditional list item style for dreams settings.
Other improvements:
 - remove "Start dreaming now", promote "When to dream" to action bar
 - added logging
 - hide dream settings button if n/a
 - new flat style for settings/preview + dividers
 - refresh dreams list when packages are installed/uninstalled
 - added placeholder for help url

Bug:7010260
Change-Id: Ia443b4f76678eaf1a52b907d50aefb0d8f7e4748
2012-08-30 16:28:29 -04:00
John Spurlock
6df18e2713 New dream settings - first cut
First draft implementation of mocks for dream settings.

Want to merge for the weekly build, so a few things remain, namely:
  - flat style for preview/settings buttons + dividers
  - animation between dream row expanded/collapsed state
  - wire up the help url
  - possibly ditch the non-standard style
  - add logging
  - refresh when packages are installed/uninstalled

Bug:7010260
Change-Id: I96e3ab944170925bd76edf7b8b1127adfffc6262
2012-08-29 16:41:01 -04:00
Martijn Coenen
943af0bc69 Remove NFC sharing from Settings.
Bug: 5297151
Change-Id: I64304230296912519aa057a89f139a2242b557e3
2011-09-15 22:31:51 +02:00
Jeff Sharkey
a53188fe5a Data usage: precise editing, restrict help, D-pad.
Introduce dialogs for precise editing of network policy warning/limit
values, triggered by click on sweep labels.  Show up to 999MB before
rounding to GB, and round to nearest 5MB value when dragging.  Partial
D-pad navigation around chart controls.  Fix jumping when relayout
during drag, and fix sweep overlap bug.

When restricting data without limited networks, show dialog help to
guide user towards network limit.  When reloading chart data, try
restoring to nearest cycle.

Bug: 5289641, 5111701, 5226078
Change-Id: Ic59dee6496c480a64dc56f8534acf4d81b50bca7
2011-09-13 20:24:14 -07:00
Jeff Sharkey
7a7ea2bf2f Sync asset drop and smoother animation.
Bug: 5233703
Change-Id: I3fa52da71b78dcfa7842047b427c5121d3ac7e68
2011-08-30 20:00:51 -07:00
Peter Ng
a1252ccf7b Power control widget holofied
-brightness needs to implement brightness_half_holo state
*fixed now in the patch { old assets should be removed also(any "appwidget" that doesn't have holo in it)}

Change-Id: I2c1e754f68cf321c5b3517ba92c8f235b418e696
2011-08-30 10:45:56 -07:00
Nick Pelly
0fb33abfb4 Rename {zeroclick, share_tap} -> ndef_push in code.
Not sure what the product name will be, but ndef push seems to be a
nice neutral name for the code.

Text strings are left as "Share Tap" for now.

Change-Id: I9dbf82eda2273220c23f443710a340c2c93e8291
2011-08-26 16:35:44 -07:00
Gilles Debunne
a0880011e5 Bug 5161247: More... is aligned with other main menu entries
Change-Id: I813d9f674f1bcff940e5e57051e4ced8b56911a6
2011-08-22 15:59:57 -07:00
Martijn Coenen
82f92e500f Sharetap settings screen animation and text.
Change-Id: Ia19426be5a38a191a2786c1e75c4c5833a7c155f
2011-08-18 16:36:35 +02:00
Jeff Sharkey
2412b0f248 Data usage app bars, draw estimated cycle usage.
Show application list with normalized percentage data usage as
horizontal bar chart.  Draw estimated usage for remainder of cycle
to reinforce log scale, and break out received/sent when showing app
details.

Bug: 5038591, 4948713, 4818025
Change-Id: Ib71e73d4f692adc7fe8ae87edd0cec2a8f3976d3
2011-07-17 20:31:54 -07:00
Jeff Sharkey
2af35fb44d Fix animation bugs, stop disabled sweep touches.
Change sweep drawables to crossfade correctly between states, and
work around 4946591 by nesting container one level deeper.  Also wait
until first layout pass is finished before applying LayoutTransition.

Prevent touches from reaching sweeps when chart is disabled.  Also
bring back log scale for data.

Change-Id: I2194714ab075fd32525681119f30427c1b96fc50
2011-06-24 23:11:51 -07:00
Jeff Sharkey
f54f435f1f More data usage chart iteration, app details.
Moved app details back into single Fragment to support animations and
template tabs.  Show the network in background behind app details
chart series to match designs.

Clamping sweeps at axis boundaries.

Bug: 4813014, 4598460, 4818029
Change-Id: I72c0b21ee1d595e4da31d293ae0dab9e801041f3
2011-06-23 22:30:05 -07:00
Jeff Sharkey
52c3f4461b Iterate on data usage chart UI.
Switched to inflating chart views from XML, using attributes for
configuration.  Start using drawable assets for chart components
instead of manually painting.  Include hand-cut assets, and animate
between states when touched to invoke.

Clamp sweeps to valid chart ranges and prepare for sweep labels.

Bug: 4768483, 4598460
Change-Id: Ic660c35bec826eb5e3f6a1dde3cc04d8c437ef2b
2011-06-23 00:39:47 -07:00
Gilles Debunne
c59a3a431c Unused assets removed from Settings
preview moved from drawable to drawable-mdpi

Change-Id: Id58d2cf38d52483057960b7ef176acf61e84dba3
2011-03-15 14:43:51 -07:00
Adam Lesinski
e684399717 Added widget preview image. NOTE: This image should be replaced by a custom graphic.
Change-Id: Ia8abd993b399a9fed567266f699874baa67a09f9
2010-10-04 16:40:29 -07:00
Daisuke Miyakawa
a2633d0232 Move ManageAccountsSettings into Settings.
- Add activity-alias for the Activity.
- Copy the Activity from AccountsAndSyncSettings.
- Fragmentize ManageAccountsSettings.
- Remove dependency toward AccountPreferenceBase, which is
  used in AccountsAndSyncSettings widely.
- Add missing implementation derived from AccountPrefernceBase.
- Copy dependent drawables.
- Copy dependent xmls
- Copy AccountPrefernce.java.
- Copy strings, adding CHAR LIMIT.
- Remove the logic which remove the preference when its destination
  Activity is missing. We already have the destination as
  Fragment, and it never disappear.

Change-Id: Id41c63d7064aebeaae31bcd84bf4fd20a5636dfe
2010-09-17 11:22:02 -07:00
Gilles Debunne
9db2e1cb76 Move pngs from drawable to drawable-mdpi in project packages/apps/Settings
Change-Id: I977a79934596ddd05e1bb86093c19dbd4bb6463c
2010-08-02 14:52:04 -07:00
Suchi Amalapurapu
f4c4b59f13 Move application icon to left in InstalledAppDetails.
Fix text overlapping icon issue.
Add new icons for filter options
2010-03-04 12:30:11 -08:00
Daniel Sandler
86a9685409 am 3f20d278: am a21a458b: Merge change I3abd5c0d into eclair-mr2
Merge commit '3f20d2782ffd00d46ce9a2c017e02d0cde72429c'

* commit '3f20d2782ffd00d46ce9a2c017e02d0cde72429c':
  Updated icons for Settings.
2009-11-05 16:45:01 -08:00
Daniel Sandler
3abd5c0d79 Updated icons for Settings.
Fixes http://b/2105756
2009-11-03 14:11:37 -05:00
Mike Cleron
98472ea087 am 5eea8422: am ac465854: am d02acfb9: Merge change I2abbb876 into eclair
Merge commit '5eea8422718e415d99f360fcc5962236e1391008'

* commit '5eea8422718e415d99f360fcc5962236e1391008':
  New widgets
2009-10-29 01:56:06 -07:00
Mike Cleron
c151e45d8c New widgets 2009-10-27 14:05:27 -07:00
Amith Yamasani
5161a7b13d am 7c8a08d5: am ee52bed5: Merge change I39527366 into eclair
Merge commit '7c8a08d51389e1c2c0411a1a4a12646880199e01'

* commit '7c8a08d51389e1c2c0411a1a4a12646880199e01':
  Use a custom system icon for native processes.
2009-10-01 13:39:27 -07:00
Debajit Ghosh
00e9be647b am a6ddefe6: am 99716fb4: updating sync settings icon
Merge commit 'a6ddefe68f465a78cf8dcacfbbf0b289816d1d19'

* commit 'a6ddefe68f465a78cf8dcacfbbf0b289816d1d19':
  updating sync settings icon
2009-10-01 12:13:27 -07:00