diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2010-09-16 18:27:35 -0700 |
---|---|---|
committer | Dmitri Plotnikov <dplotnikov@google.com> | 2010-09-16 18:27:35 -0700 |
commit | 2ddba01a5fe79173d22dcd125673313e7007e6ec (patch) | |
tree | 32430e63d932e97e5b2e2fbbd277bb658db1b69c /res/values | |
parent | d073d83a6e347ea8187f9ce7a79ca6f20f61453c (diff) | |
download | packages_apps_Contacts-2ddba01a5fe79173d22dcd125673313e7007e6ec.tar.gz packages_apps_Contacts-2ddba01a5fe79173d22dcd125673313e7007e6ec.tar.bz2 packages_apps_Contacts-2ddba01a5fe79173d22dcd125673313e7007e6ec.zip |
Introducing InterpolatingLayout.
Layout similar to LinearLayout. It allows a child
to specify examples of desired size depending on
the parent size. For example if the widget wants to
be 100dip when parent is 200dip and 110dip when
parent is 400dip, the layout will ensure these
requirements and interpolate for other parent sizes.
Change-Id: Id63da83ecab105c46d472cba927a9cead9c2172d
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/styles.xml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml index f5256ee2d..736ca7a38 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -171,7 +171,18 @@ <item name="android:windowNoTitle">true</item> <item name="android:windowContentOverlay">@null</item> </style> - + <style name="ContactsPreferencesTheme" parent="@android:Theme"> </style> + + <declare-styleable name="InterpolatingLayout_Layout"> + <attr name="layout_narrowParentWidth" format="dimension"/> + <attr name="layout_narrowWidth" format="dimension"/> + <attr name="layout_narrowLeftMargin" format="dimension"/> + <attr name="layout_narrowRightMargin" format="dimension"/> + <attr name="layout_wideParentWidth" format="dimension"/> + <attr name="layout_wideWidth" format="dimension"/> + <attr name="layout_wideLeftMargin" format="dimension"/> + <attr name="layout_wideRightMargin" format="dimension"/> + </declare-styleable> </resources> |