Settings new dashboard - part 2
Introduce the new Dashboard (a grid like presentation of Settings top categories) per UX specification. - the Dashboard is composed of "categories" and in each of them you have "tiles" - implement a new layout for showing top categories (DashboardContainerView). This layout basically acts like a grid - depending on the device configuration make the grid with 1 column in portrait / 2 colums in landscape (phones) OR 2 columns in portrait and 3 in landscape (tablets) - take care of Accounts adding and removing (as it changes the number of tiles to show) Also remove all the old code related to Headers Change-Id: Ie29944132c1b4c3f7b073d5a7d4453b8f5ec19a7
This commit is contained in:
22
res/values-sw600dp/config.xml
Normal file
22
res/values-sw600dp/config.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
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.
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Dashboard number of columns -->
|
||||
<integer name="dashboard_num_columns">2</integer>
|
||||
|
||||
</resources>
|
@@ -38,4 +38,8 @@
|
||||
<dimen name="keyguard_appwidget_picker_margin_left">2dip</dimen>
|
||||
<dimen name="keyguard_appwidget_picker_margin_right">2dip</dimen>
|
||||
<integer name="keyguard_appwidget_picker_cols">2</integer>
|
||||
|
||||
<!-- Dashboard padding between each tiles within the layout -->
|
||||
<dimen name="dashboard_cell_gap">8dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user