| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2016 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. |
| --> |
| |
| <!-- Formatting note: terminate all comments with a period, to avoid breaking |
| the documentation output. To suppress comment lines from the documentation |
| output, insert an eat-comment element after the comment lines. |
| --> |
| |
| <resources> |
| <!-- Attributes that can be used with any member view of |
| {@link android.support.wearable.widget.BoxInsetLayout}. |
| These attributes are specified with the rest of a view's normal attributes |
| (such as {@link android.R.attr#background}, but will be parsed by the view's parent and |
| ignored by the child. |
| <p>The values defined here correspond to the base layout attribute |
| class {@link android.support.wearable.widget.BoxInsetLayout.LayoutParams}. --> |
| <declare-styleable name="BoxInsetLayout_Layout"> |
| <!-- The types of insets this view can force on its children. The view will respect the |
| defined values of other child attributes such as ones provided by |
| {@link android.view.ViewGroup.MarginLayoutParams}, but it will add an additional inset |
| as requested --> |
| <attr name="boxedEdges"> |
| <!-- Default boxing setting. There are no insets forced on the child views. --> |
| <flag name="none" value="0x00" /> |
| <!-- The view will force an inset on the left edge of the children. --> |
| <flag name="left" value="0x01" /> |
| <!-- The view will force an inset on the top edge of the children. --> |
| <flag name="top" value="0x02" /> |
| <!-- The view will force an inset on the right edge of the children. --> |
| <flag name="right" value="0x04" /> |
| <!-- The view will force an inset on the bottom edge of the children. --> |
| <flag name="bottom" value="0x08" /> |
| <!-- The view will force an inset on all of the edges of the children. --> |
| <flag name="all" value="0x0F" /> |
| </attr> |
| </declare-styleable> |
| |
| <!-- Attributes that can be used with any |
| {@link android.support.wearable.widget.WearableRecyclerView}. |
| These attributes relate to the circular scrolling gesture of the view. --> |
| <declare-styleable name="WearableRecyclerView"> |
| <!-- Taps within this radius and the radius of the screen are considered close enough to the |
| bezel to be candidates for circular scrolling. Expressed as a fraction of the screen's |
| radius. The default is the whole screen i.e 1.0f --> |
| <attr name="bezelWidth" format="fraction" /> |
| <!-- Enables/disables circular touch scrolling for this view. When enabled, circular touch |
| gestures around the edge of the screen will cause the view to scroll up or down. --> |
| <attr name="circularScrollingGestureEnabled" format="boolean" /> |
| <!-- Sets how many degrees the user has to rotate by to scroll through one screen height |
| when they are using the circular scrolling gesture. The default value equates 180 |
| degrees scroll to one screen.--> |
| <attr name="scrollDegreesPerScreen" format="float" /> |
| </declare-styleable> |
| </resources> |