| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021 |
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <declare-styleable name="PullToRefresh">
- <attr name="adapterViewBackground" format="reference|color" />
- <attr name="headerBackground" format="reference|color" />
- <attr name="headerTextColor" format="color" />
- <attr name="mode">
- <flag name="pullDownFromTop" value="0x1" />
- <flag name="pullUpFromBottom" value="0x2" />
- <flag name="both" value="0x3" />
- </attr>
- <!-- A drawable to use as the background of the Refreshable View -->
- <attr name="ptrRefreshableViewBackground" format="reference|color" />
- <!-- A drawable to use as the background of the Header and Footer Loading Views -->
- <attr name="ptrHeaderBackground" format="reference|color" />
- <!-- Text Color of the Header and Footer Loading Views -->
- <attr name="ptrHeaderTextColor" format="reference|color" />
- <!-- Text Color of the Header and Footer Loading Views Sub Header -->
- <attr name="ptrHeaderSubTextColor" format="reference|color" />
- <!-- Mode of Pull-to-Refresh that should be used -->
- <attr name="ptrMode">
- <flag name="disabled" value="0x0" />
- <flag name="pullFromStart" value="0x1" />
- <flag name="pullFromEnd" value="0x2" />
- <flag name="both" value="0x3" />
- <flag name="manualOnly" value="0x4" />
- <!-- These last two are depreacted -->
- <flag name="pullDownFromTop" value="0x1" />
- <flag name="pullUpFromBottom" value="0x2" />
- </attr>
- <!-- Whether the Indicator overlay(s) should be used -->
- <attr name="ptrShowIndicator" format="reference|boolean" />
- <!-- Drawable to use as Loading Indicator. Changes both Header and Footer. -->
- <attr name="ptrDrawable" format="reference" />
- <!-- Drawable to use as Loading Indicator in the Header View. Overrides value set in ptrDrawable. -->
- <attr name="ptrDrawableStart" format="reference" />
- <!-- Drawable to use as Loading Indicator in the Footer View. Overrides value set in ptrDrawable. -->
- <attr name="ptrDrawableEnd" format="reference" />
- <!-- Whether Android's built-in Over Scroll should be utilised for Pull-to-Refresh. -->
- <attr name="ptrOverScroll" format="reference|boolean" />
- <!-- Base text color, typeface, size, and style for Header and Footer Loading Views -->
- <attr name="ptrHeaderTextAppearance" format="reference" />
- <!-- Base text color, typeface, size, and style for Header and Footer Loading Views Sub Header -->
- <attr name="ptrSubHeaderTextAppearance" format="reference" />
- <!-- Style of Animation should be used displayed when pulling. -->
- <attr name="ptrAnimationStyle">
- <flag name="rotate" value="0x0" />
- <flag name="flip" value="0x1" />
- </attr>
- <!-- Whether the user can scroll while the View is Refreshing -->
- <attr name="ptrScrollingWhileRefreshingEnabled" format="reference|boolean" />
- <!--
- Whether PullToRefreshListView has it's extras enabled. This allows the user to be
- able to scroll while refreshing, and behaves better. It acheives this by adding
- Header and/or Footer Views to the ListView.
- -->
- <attr name="ptrListViewExtrasEnabled" format="reference|boolean" />
- <!--
- Whether the Drawable should be continually rotated as you pull. This only
- takes effect when using the 'Rotate' Animation Style.
- -->
- <attr name="ptrRotateDrawableWhilePulling" format="reference|boolean" />
- <!-- BELOW HERE ARE DEPRECEATED. DO NOT USE. -->
- <attr name="ptrAdapterViewBackground" format="reference|color" />
- <attr name="ptrDrawableTop" format="reference" />
- <attr name="ptrDrawableBottom" format="reference" />
- </declare-styleable>
- <declare-styleable name="FlowIndicator">
- <attr name="count" format="integer" />
- <attr name="space" format="dimension" />
- <attr name="point_size" format="dimension" />
- <attr name="point_seleted_color" format="color|reference" />
- <attr name="point_normal_color" format="color|reference" />
- <attr name="point_radius" format="dimension" />
- </declare-styleable>
- <attr name="absListViewStyle" format="reference" />
- <attr name="listViewStyle" format="reference" />
- <declare-styleable name="MultiColumnListView">
- <attr name="plaColumnNumber" format="integer" />
- <attr name="plaLandscapeColumnNumber" format="integer" />
- <attr name="plaColumnPaddingLeft" format="dimension" />
- <attr name="plaColumnPaddingRight" format="dimension" />
- </declare-styleable>
- <declare-styleable name="PullToRefreshView">
- <attr name="ptrHeight" format="dimension" />
- <attr name="ptrSpinnerMarginRight" format="dimension" />
- <attr name="ptrArrowMarginRight" format="dimension" />
- <attr name="ptrTextSize" format="dimension" />
- <attr name="ptrLastUpdateTextSize" format="dimension" />
- </declare-styleable>
- <declare-styleable name="View">
- <!--
- Supply an identifier name for this view, to later retrieve it
- with {@link android.view.View#findViewById View.findViewById()} or
- {@link android.app.Activity#findViewById Activity.findViewById()}.
- This must be a
- resource reference; typically you set this using the
- <code>@+</code> syntax to create a new ID resources.
- For example: <code>android:id="@+id/my_id"</code> which
- allows you to later retrieve the view
- with <code>findViewById(R.id.my_id)</code>.
- -->
- <attr name="id" format="reference" />
- <!--
- Supply a tag for this view containing a String, to be retrieved
- later with {@link android.view.View#getTag View.getTag()} or
- searched for with {@link android.view.View#findViewWithTag
- View.findViewWithTag()}. It is generally preferable to use
- IDs (through the android:id attribute) instead of tags because
- they are faster and allow for compile-time type checking.
- -->
- <attr name="tag" format="string" />
- <!-- The initial horizontal scroll offset, in pixels. -->
- <attr name="scrollX" format="dimension" />
- <!-- The initial vertical scroll offset, in pixels. -->
- <attr name="scrollY" format="dimension" />
- <!--
- A drawable to use as the background. This can be either a reference
- to a full drawable resource (such as a PNG image, 9-patch,
- XML state list description, etc), or a solid color such as "#ff000000"
- (black).
- -->
- <!-- <attr name="background" format="reference|color" /> -->
- <!--
- Sets the padding, in pixels, of all four edges. Padding is defined as
- space between the edges of the view and the view's content. A views size
- will include it's padding. If a {@link android.R.attr#background}
- is provided, the padding will initially be set to that (0 if the
- drawable does not have padding). Explicitly setting a padding value
- will override the corresponding padding found in the background.
- -->
- <attr name="padding" format="dimension" />
- <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. -->
- <attr name="paddingLeft" format="dimension" />
- <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. -->
- <attr name="paddingTop" format="dimension" />
- <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. -->
- <attr name="paddingRight" format="dimension" />
- <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. -->
- <attr name="paddingBottom" format="dimension" />
- <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
- <attr name="paddingStart" format="dimension" />
- <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
- <attr name="paddingEnd" format="dimension" />
- <!--
- Boolean that controls whether a view can take focus. By default the user can not
- move focus to a view; by setting this attribute to true the view is
- allowed to take focus. This value does not impact the behavior of
- directly calling {@link android.view.View#requestFocus}, which will
- always request focus regardless of this view. It only impacts where
- focus navigation will try to move focus.
- -->
- <attr name="focusable" format="boolean" />
- <!--
- Boolean that controls whether a view can take focus while in touch mode.
- If this is true for a view, that view can gain focus when clicked on, and can keep
- focus if another view is clicked on that doesn't have this attribute set to true.
- -->
- <attr name="focusableInTouchMode" format="boolean" />
- <!-- Controls the initial visibility of the view. -->
- <attr name="visibility">
- <!-- Visible on screen; the default value. -->
- <enum name="visible" value="0" />
- <!-- Not displayed, but taken into account during layout (space is left for it). -->
- <enum name="invisible" value="1" />
- <!-- Completely hidden, as if the view had not been added. -->
- <enum name="gone" value="2" />
- </attr>
- <!--
- Boolean internal attribute to adjust view layout based on
- system windows such as the status bar.
- If true, adjusts the padding of this view to leave space for the system windows.
- Will only take effect if this view is in a non-embedded activity.
- -->
- <attr name="fitsSystemWindows" format="boolean" />
- <!-- Defines which scrollbars should be displayed on scrolling or not. -->
- <attr name="scrollbars">
- <!-- No scrollbar is displayed. -->
- <flag name="none" value="0x00000000" />
- <!-- Displays horizontal scrollbar only. -->
- <flag name="horizontal" value="0x00000100" />
- <!-- Displays vertical scrollbar only. -->
- <flag name="vertical" value="0x00000200" />
- </attr>
- <!--
- Controls the scrollbar style and position. The scrollbars can be overlaid or
- inset. When inset, they add to the padding of the view. And the
- scrollbars can be drawn inside the padding area or on the edge of
- the view. For example, if a view has a background drawable and you
- want to draw the scrollbars inside the padding specified by the
- drawable, you can use insideOverlay or insideInset. If you want them
- to appear at the edge of the view, ignoring the padding, then you can
- use outsideOverlay or outsideInset.
- -->
- <attr name="scrollbarStyle">
- <!-- Inside the padding and overlaid -->
- <enum name="insideOverlay" value="0x0" />
- <!-- Inside the padding and inset -->
- <enum name="insideInset" value="0x01000000" />
- <!-- Edge of the view and overlaid -->
- <enum name="outsideOverlay" value="0x02000000" />
- <!-- Edge of the view and inset -->
- <enum name="outsideInset" value="0x03000000" />
- </attr>
- <!--
- Set this if the view will serve as a scrolling container, meaing
- that it can be resized to shrink its overall window so that there
- will be space for an input method. If not set, the default
- value will be true if "scrollbars" has the vertical scrollbar
- set, else it will be false.
- -->
- <attr name="isScrollContainer" format="boolean" />
- <!-- Defines whether to fade out scrollbars when they are not in use. -->
- <attr name="fadeScrollbars" format="boolean" />
- <!-- Defines the delay in milliseconds that a scrollbar takes to fade out. -->
- <attr name="scrollbarFadeDuration" format="integer" />
- <!-- Defines the delay in milliseconds that a scrollbar waits before fade out. -->
- <attr name="scrollbarDefaultDelayBeforeFade" format="integer" />
- <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. -->
- <attr name="scrollbarSize" format="dimension" />
- <!-- Defines the horizontal scrollbar thumb drawable. -->
- <attr name="scrollbarThumbHorizontal" format="reference" />
- <!-- Defines the vertical scrollbar thumb drawable. -->
- <attr name="scrollbarThumbVertical" format="reference" />
- <!-- Defines the horizontal scrollbar track drawable. -->
- <attr name="scrollbarTrackHorizontal" format="reference" />
- <!-- Defines the vertical scrollbar track drawable. -->
- <attr name="scrollbarTrackVertical" format="reference" />
- <!-- Defines whether the horizontal scrollbar track should always be drawn. -->
- <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" />
- <!-- Defines whether the vertical scrollbar track should always be drawn. -->
- <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" />
- <!--
- This attribute is deprecated and will be ignored as of
- API level 14 ({@link android.os.Build.VERSION_CODES#ICE_CREAM_SANDWICH}).
- Using fading edges may introduce noticeable performance
- degradations and should be used only when required by the application's
- visual design. To request fading edges with API level 14 and above,
- use the <code>android:requiresFadingEdge</code> attribute instead.
- -->
- <attr name="fadingEdge">
- <!-- No edge is faded. -->
- <flag name="none" value="0x00000000" />
- <!-- Fades horizontal edges only. -->
- <flag name="horizontal" value="0x00001000" />
- <!-- Fades vertical edges only. -->
- <flag name="vertical" value="0x00002000" />
- </attr>
- <!-- Defines which edges should be faded on scrolling. -->
- <attr name="requiresFadingEdge">
- <!-- No edge is faded. -->
- <flag name="none" value="0x00000000" />
- <!-- Fades horizontal edges only. -->
- <flag name="horizontal" value="0x00001000" />
- <!-- Fades vertical edges only. -->
- <flag name="vertical" value="0x00002000" />
- </attr>
- <!-- Defines the length of the fading edges. -->
- <attr name="fadingEdgeLength" format="dimension" />
- <!--
- Defines the next view to give focus to when the next focus is
- {@link android.view.View#FOCUS_LEFT}.
- If the reference refers to a view that does not exist or is part
- of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
- will result when the reference is accessed.
- -->
- <attr name="nextFocusLeft" format="reference" />
- <!--
- Defines the next view to give focus to when the next focus is
- {@link android.view.View#FOCUS_RIGHT}
- If the reference refers to a view that does not exist or is part
- of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
- will result when the reference is accessed.
- -->
- <attr name="nextFocusRight" format="reference" />
- <!--
- Defines the next view to give focus to when the next focus is
- {@link android.view.View#FOCUS_UP}
- If the reference refers to a view that does not exist or is part
- of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
- will result when the reference is accessed.
- -->
- <attr name="nextFocusUp" format="reference" />
- <!--
- Defines the next view to give focus to when the next focus is
- {@link android.view.View#FOCUS_DOWN}
- If the reference refers to a view that does not exist or is part
- of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
- will result when the reference is accessed.
- -->
- <attr name="nextFocusDown" format="reference" />
- <!--
- Defines the next view to give focus to when the next focus is
- {@link android.view.View#FOCUS_FORWARD}
- If the reference refers to a view that does not exist or is part
- of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
- will result when the reference is accessed.
- -->
- <attr name="nextFocusForward" format="reference" />
- <!-- Defines whether this view reacts to click events. -->
- <attr name="clickable" format="boolean" />
- <!-- Defines whether this view reacts to long click events. -->
- <attr name="longClickable" format="boolean" />
- <!--
- If unset, no state will be saved for this view when it is being
- frozen. The default is true, allowing the view to be saved
- (however it also must have an ID assigned to it for its
- state to be saved). Setting this to false only disables the
- state for this view, not for its children which may still
- be saved.
- -->
- <attr name="saveEnabled" format="boolean" />
- <!--
- Specifies whether to filter touches when the view's window is obscured by
- another visible window. When set to true, the view will not receive touches
- whenever a toast, dialog or other window appears above the view's window.
- Refer to the {@link android.view.View} security documentation for more details.
- -->
- <attr name="filterTouchesWhenObscured" format="boolean" />
- <!--
- Defines the quality of translucent drawing caches. This property is used
- only when the drawing cache is enabled and translucent. The default value is auto.
- -->
- <attr name="drawingCacheQuality">
- <!--
- Lets the framework decide what quality level should be used
- for the drawing cache.
- -->
- <enum name="auto" value="0" />
- <!--
- Low quality. When set to low quality, the drawing cache uses a lower color
- depth, thus losing precision in rendering gradients, but uses less memory.
- -->
- <enum name="low" value="1" />
- <!--
- High quality. When set to high quality, the drawing cache uses a higher
- color depth but uses more memory.
- -->
- <enum name="high" value="2" />
- </attr>
- <!--
- Controls whether the view's window should keep the screen on
- while visible.
- -->
- <attr name="keepScreenOn" format="boolean" />
- <!--
- When this attribute is set to true, the view gets its drawable state
- (focused, pressed, etc.) from its direct parent rather than from itself.
- -->
- <attr name="duplicateParentState" format="boolean" />
- <!--
- Defines the minimum height of the view. It is not guaranteed
- the view will be able to achieve this minimum height (for example,
- if its parent layout constrains it with less available height).
- -->
- <attr name="minHeight" format="dimension" />
- <!--
- Defines the minimum width of the view. It is not guaranteed
- the view will be able to achieve this minimum width (for example,
- if its parent layout constrains it with less available width).
- -->
- <attr name="minWidth" format="dimension" />
- <!--
- Boolean that controls whether a view should have sound effects
- enabled for events such as clicking and touching.
- -->
- <attr name="soundEffectsEnabled" format="boolean" />
- <!--
- Boolean that controls whether a view should have haptic feedback
- enabled for events such as long presses.
- -->
- <attr name="hapticFeedbackEnabled" format="boolean" />
- <!--
- Defines text that briefly describes content of the view. This property is used
- primarily for accessibility. Since some views do not have textual
- representation this attribute can be used for providing such.
- -->
- <attr name="contentDescription" format="string" localization="suggested" />
- <!--
- Name of the method in this View's context to invoke when the view is
- clicked. This name must correspond to a public method that takes
- exactly one parameter of type View. For instance, if you specify
- <code>android:onClick="sayHello"</code>, you must declare a
- <code>public void sayHello(View v)</code> method of your context
- (typically, your Activity).
- -->
- <attr name="onClick" format="string" />
- <!--
- Defines over-scrolling behavior. This property is used only if the
- View is scrollable. Over-scrolling is the ability for the user to
- receive feedback when attempting to scroll beyond meaningful content.
- -->
- <attr name="overScrollMode">
- <!--
- Always show over-scroll effects, even if the content fits entirely
- within the available space.
- -->
- <enum name="always" value="0" />
- <!--
- Only show over-scroll effects if the content is large
- enough to meaningfully scroll.
- -->
- <enum name="ifContentScrolls" value="1" />
- <!-- Never show over-scroll effects. -->
- <enum name="never" value="2" />
- </attr>
- <!--
- alpha property of the view, as a value between 0 (completely transparent) and 1
- (completely opaque).
- -->
- <attr name="alpha" format="float" />
- <!--
- translation in x of the view. This value is added post-layout to the left
- property of the view, which is set by its layout.
- -->
- <attr name="translationX" format="dimension" />
- <!--
- translation in y of the view. This value is added post-layout to the left
- property of the view, which is set by its layout.
- -->
- <attr name="translationY" format="dimension" />
- <!--
- x location of the pivot point around which the view will rotate and scale.
- This xml attribute sets the pivotX property of the View.
- -->
- <attr name="transformPivotX" format="dimension" />
- <!--
- y location of the pivot point around which the view will rotate and scale.
- This xml attribute sets the pivotY property of the View.
- -->
- <attr name="transformPivotY" format="dimension" />
- <!-- rotation of the view, in degrees. -->
- <attr name="rotation" format="float" />
- <!-- rotation of the view around the x axis, in degrees. -->
- <attr name="rotationX" format="float" />
- <!-- rotation of the view around the y axis, in degrees. -->
- <attr name="rotationY" format="float" />
- <!-- scale of the view in the x direction. -->
- <attr name="scaleX" format="float" />
- <!-- scale of the view in the y direction. -->
- <attr name="scaleY" format="float" />
- <!-- Determines which side the vertical scroll bar should be placed on. -->
- <attr name="verticalScrollbarPosition">
- <!-- Place the scroll bar wherever the system default determines. -->
- <enum name="defaultPosition" value="0" />
- <!-- Place the scroll bar on the left. -->
- <enum name="left" value="1" />
- <!-- Place the scroll bar on the right. -->
- <enum name="right" value="2" />
- </attr>
- <!--
- Specifies the type of layer backing this view. The default value is none.
- Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint)}
- for more information.
- -->
- <attr name="layerType">
- <!-- Don't use a layer. -->
- <enum name="none" value="0" />
- <!--
- Use a software layer. Refer to
- {@link android.view.View#setLayerType(int, android.graphics.Paint) for
- more information.
- -->
- <enum name="software" value="1" />
- <!--
- Use a hardware layer. Refer to
- {@link android.view.View#setLayerType(int, android.graphics.Paint) for
- more information.
- -->
- <enum name="hardware" value="2" />
- </attr>
- <!--
- Defines the direction of layout drawing. This typically is associated with writing
- direction of the language script used. The possible values are "ltr" for Left-to-Right,
- "rtl" for Right-to-Left, "locale" and "inherit" from parent view. If there is nothing
- to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction
- used in "en-US". The default for this attribute is "inherit".
- -->
- <attr name="layoutDirection">
- <!-- Left-to-Right -->
- <enum name="ltr" value="0" />
- <!-- Right-to-Left -->
- <enum name="rtl" value="1" />
- <!-- Inherit from parent -->
- <enum name="inherit" value="2" />
- <!-- Locale -->
- <enum name="locale" value="3" />
- </attr>
- <!--
- Direction of the text. A heuristic is used to determine the resolved text direction
- of paragraphs.
- -->
- <attr name="textDirection" format="integer">
- <!-- Default -->
- <enum name="inherit" value="0" />
- <!--
- Default for the root view. The first strong directional character determines the
- paragraph direction. If there is no strong directional character, the paragraph
- direction is the view’s resolved layout direction.
- -->
- <enum name="firstStrong" value="1" />
- <!--
- The paragraph direction is RTL if it contains any strong RTL character, otherwise
- it is LTR if it contains any strong LTR characters. If there are neither, the
- paragraph direction is the view’s resolved layout direction.
- -->
- <enum name="anyRtl" value="2" />
- <!-- The paragraph direction is left to right. -->
- <enum name="ltr" value="3" />
- <!-- The paragraph direction is right to left. -->
- <enum name="rtl" value="4" />
- <!-- The paragraph direction is coming from the system Locale. -->
- <enum name="locale" value="5" />
- </attr>
- <!--
- Alignment of the text. A heuristic is used to determine the resolved
- text alignment.
- -->
- <attr name="textAlignment" format="integer">
- <!-- Default -->
- <enum name="inherit" value="0" />
- <!--
- Default for the root view. The gravity determines the alignment, ALIGN_NORMAL,
- ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s
- text direction
- -->
- <enum name="gravity" value="1" />
- <!-- Align to the start of the paragraph, e.g. ALIGN_NORMAL. -->
- <enum name="textStart" value="2" />
- <!-- Align to the end of the paragraph, e.g. ALIGN_OPPOSITE. -->
- <enum name="textEnd" value="3" />
- <!-- Center the paragraph, e.g. ALIGN_CENTER. -->
- <enum name="center" value="4" />
- <!--
- Align to the start of the view, which is ALIGN_LEFT if the view’s resolved
- layoutDirection is LTR, and ALIGN_RIGHT otherwise.
- -->
- <enum name="viewStart" value="5" />
- <!--
- Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved
- layoutDirection is LTR, and ALIGN_LEFT otherwise
- -->
- <enum name="viewEnd" value="6" />
- </attr>
- <!--
- Controls how this View is important for accessibility which is if it fires
- accessibility events and if it is reported to accessibility services that
- query the screen. Note: While not recommended, an accessibility service may
- decide to ignore this attribute and operate on all views in the view tree.
- -->
- <attr name="importantForAccessibility" format="integer">
- <!--
- The system determines whether the view is important for accessibility - default
- (recommended).
- -->
- <enum name="auto" value="0" />
- <!-- The view is important for accessibility. -->
- <enum name="yes" value="1" />
- <!-- The view is not important for accessibility. -->
- <enum name="no" value="2" />
- </attr>
- <!-- @hide Controls whether this view can take accessibility focus. -->
- <attr name="accessibilityFocusable" format="integer">
- <!--
- The system determines whether the view can take accessibility focus - default
- (recommended).
- <p>
- Such a view is consideted by the focus search if it is:
- <ul>
- <li>
- Important for accessibility and actionable (clickable, long clickable, focusable)
- </li>
- <li>
- Important for accessibility, not actionable (clickable, long clickable, focusable),
- and does not have an actionable predecessor.
- </li>
- </ul>
- An accessibility srvice can request putting accessibility focus on such a view.
- </p>
- -->
- <enum name="auto" value="0" />
- <!--
- The view can take accessibility focus.
- <p>
- A view that can take accessibility focus is always considered during focus
- search and an accessibility service can request putting accessibility focus
- on it.
- </p>
- -->
- <enum name="yes" value="1" />
- <!--
- The view can not take accessibility focus.
- <p>
- A view that can not take accessibility focus is never considered during focus
- search and an accessibility service can not request putting accessibility focus
- on it.
- </p>
- -->
- <enum name="no" value="2" />
- </attr>
- </declare-styleable>
- <!--
- Attributes that can be used with a {@link android.view.ViewGroup} or any
- of its subclasses. Also see {@link #ViewGroup_Layout} for
- attributes that this class processes in its children.
- -->
- <declare-styleable name="ViewGroup">
- <!--
- Defines whether changes in layout (caused by adding and removing items) should
- cause a LayoutTransition to run. When this flag is set to true, a default
- LayoutTransition object will be set on the ViewGroup container and default
- animations will run when these layout changes occur.
- -->
- <attr name="animateLayoutChanges" format="boolean" />
- <!--
- Defines whether a child is limited to draw inside of its bounds or not.
- This is useful with animations that scale the size of the children to more
- than 100% for instance. In such a case, this property should be set to false
- to allow the children to draw outside of their bounds. The default value of
- this property is true.
- -->
- <attr name="clipChildren" format="boolean" />
- <!--
- Defines whether the ViewGroup will clip its drawing surface so as to exclude
- the padding area. This property is set to true by default.
- -->
- <attr name="clipToPadding" format="boolean" />
- <!--
- Defines the layout animation to use the first time the ViewGroup is laid out.
- Layout animations can also be started manually after the first layout.
- -->
- <attr name="layoutAnimation" format="reference" />
- <!--
- Defines whether layout animations should create a drawing cache for their
- children. Enabling the animation cache consumes more memory and requires
- a longer initialization but provides better performance. The animation
- cache is enabled by default.
- -->
- <attr name="animationCache" format="boolean" />
- <!--
- Defines the persistence of the drawing cache. The drawing cache might be
- enabled by a ViewGroup for all its children in specific situations (for
- instance during a scrolling.) This property lets you persist the cache
- in memory after its initial usage. Persisting the cache consumes more
- memory but may prevent frequent garbage collection is the cache is created
- over and over again. By default the persistence is set to scrolling.
- -->
- <attr name="persistentDrawingCache">
- <!-- The drawing cache is not persisted after use. -->
- <flag name="none" value="0x0" />
- <!-- The drawing cache is persisted after a layout animation. -->
- <flag name="animation" value="0x1" />
- <!-- The drawing cache is persisted after a scroll. -->
- <flag name="scrolling" value="0x2" />
- <!-- The drawing cache is always persisted. -->
- <flag name="all" value="0x3" />
- </attr>
- <!--
- Defines whether the ViewGroup should always draw its children using their
- drawing cache or not. The default value is true.
- -->
- <attr name="alwaysDrawnWithCache" format="boolean" />
- <!--
- Sets whether this ViewGroup's drawable states also include
- its children's drawable states. This is used, for example, to
- make a group appear to be focused when its child EditText or button
- is focused.
- -->
- <attr name="addStatesFromChildren" format="boolean" />
- <!--
- Defines the relationship between the ViewGroup and its descendants
- when looking for a View to take focus.
- -->
- <attr name="descendantFocusability">
- <!-- The ViewGroup will get focus before any of its descendants. -->
- <enum name="beforeDescendants" value="0" />
- <!-- The ViewGroup will get focus only if none of its descendants want it. -->
- <enum name="afterDescendants" value="1" />
- <!-- The ViewGroup will block its descendants from receiving focus. -->
- <enum name="blocksDescendants" value="2" />
- </attr>
- <!--
- Sets whether this ViewGroup should split MotionEvents
- to separate child views during touch event dispatch.
- If false (default), touch events will be dispatched to
- the child view where the first pointer went down until
- the last pointer goes up.
- If true, touch events may be dispatched to multiple children.
- MotionEvents for each pointer will be dispatched to the child
- view where the initial ACTION_DOWN event happened.
- See {@link android.view.ViewGroup#setMotionEventSplittingEnabled(boolean)}
- for more information.
- -->
- <attr name="splitMotionEvents" format="boolean" />
- </declare-styleable>
- <declare-styleable name="AbsListView">
- <!-- Drawable used to indicate the currently selected item in the list. -->
- <attr name="listSelector" format="color|reference" />
- <!--
- When set to true, the selector will be drawn over the selected item.
- Otherwise the selector is drawn behind the selected item. The default
- value is false.
- -->
- <attr name="drawSelectorOnTop" format="boolean" />
- <!-- Used by ListView and GridView to stack their content from the bottom. -->
- <attr name="stackFromBottom" format="boolean" />
- <!--
- When set to true, the list uses a drawing cache during scrolling.
- This makes the rendering faster but uses more memory. The default
- value is true.
- -->
- <attr name="scrollingCache" format="boolean" />
- <!--
- When set to true, the list will filter results as the user types. The
- List's adapter must support the Filterable interface for this to work.
- -->
- <attr name="textFilterEnabled" format="boolean" />
- <!--
- Sets the transcript mode for the list. In transcript mode, the list
- scrolls to the bottom to make new items visible when they are added.
- -->
- <attr name="transcriptMode">
- <!-- Disables transcript mode. This is the default value. -->
- <enum name="disabled" value="0" />
- <!--
- The list will automatically scroll to the bottom when
- a data set change notification is received and only if the last item is
- already visible on screen.
- -->
- <enum name="normal" value="1" />
- <!--
- The list will automatically scroll to the bottom, no matter what items
- are currently visible.
- -->
- <enum name="alwaysScroll" value="2" />
- </attr>
- <!--
- Indicates that this list will always be drawn on top of solid, single-color
- opaque background. This allows the list to optimize drawing.
- -->
- <attr name="cacheColorHint" format="color" />
- <!--
- Enables the fast scroll thumb that can be dragged to quickly scroll through
- the list.
- -->
- <attr name="fastScrollEnabled" format="boolean" />
- <!--
- When set to true, the list will use a more refined calculation
- method based on the pixels height of the items visible on screen. This
- property is set to true by default but should be set to false if your adapter
- will display items of varying heights. When this property is set to true and
- your adapter displays items of varying heights, the scrollbar thumb will
- change size as the user scrolls through the list. When set to fale, the list
- will use only the number of items in the adapter and the number of items visible
- on screen to determine the scrollbar's properties.
- -->
- <attr name="smoothScrollbar" format="boolean" />
- <!--
- Defines the choice behavior for the view. By default, lists do not have
- any choice behavior. By setting the choiceMode to singleChoice, the list
- allows up to one item to be in a chosen state. By setting the choiceMode to
- multipleChoice, the list allows any number of items to be chosen.
- Finally, by setting the choiceMode to multipleChoiceModal the list allows
- any number of items to be chosen in a special selection mode.
- The application will supply a
- {@link android.widget.AbsListView.MultiChoiceModeListener} using
- {@link android.widget.AbsListView#setMultiChoiceModeListener} to control the
- selection mode. This uses the {@link android.view.ActionMode} API.
- -->
- <attr name="choiceMode">
- <!-- Normal list that does not indicate choices. -->
- <enum name="none" value="0" />
- <!-- The list allows up to one choice. -->
- <enum name="singleChoice" value="1" />
- <!-- The list allows multiple choices. -->
- <enum name="multipleChoice" value="2" />
- <!-- The list allows multiple choices in a custom selection mode. -->
- <enum name="multipleChoiceModal" value="3" />
- </attr>
- <!--
- When set to true, the list will always show the fast scroll interface.
- This setting implies fastScrollEnabled.
- -->
- <attr name="fastScrollAlwaysVisible" format="boolean" />
- </declare-styleable>
- <declare-styleable name="ListView">
- <!-- Drawable or color to draw between list items. -->
- <!-- <attr name="divider" format="reference|color" /> -->
- <!--
- Height of the divider. Will use the intrinsic height of the divider if this
- is not specified.
- -->
- <attr name="dividerHeight" format="dimension" />
- <!--
- When set to false, the ListView will not draw the divider after each header view.
- The default value is true.
- -->
- <attr name="headerDividersEnabled" format="boolean" />
- <!--
- When set to false, the ListView will not draw the divider before each footer view.
- The default value is true.
- -->
- <attr name="footerDividersEnabled" format="boolean" />
- <!-- Drawable to draw above list content. -->
- <attr name="overScrollHeader" format="reference|color" />
- <!-- Drawable to draw below list content. -->
- <attr name="overScrollFooter" format="reference|color" />
- </declare-styleable>
- <!-- name:付强 审批页属性 -->
- <attr name="item_count" format="integer"></attr>
- <declare-styleable name="ViewPagerIndicator">
- <attr name="item_count" />
- </declare-styleable>
- <declare-styleable name="TwoWayView">
- <!-- Imported from View -->
- <attr name="android:id" />
- <attr name="android:tag" />
- <attr name="android:scrollX" />
- <attr name="android:scrollY" />
- <attr name="android:background" />
- <attr name="android:padding" />
- <attr name="android:paddingLeft" />
- <attr name="android:paddingTop" />
- <attr name="android:paddingRight" />
- <attr name="android:paddingBottom" />
- <attr name="android:paddingStart" />
- <attr name="android:paddingEnd" />
- <attr name="android:focusable" />
- <attr name="android:focusableInTouchMode" />
- <attr name="android:visibility" />
- <attr name="android:fitsSystemWindows" />
- <attr name="android:scrollbars" />
- <attr name="android:scrollbarStyle" />
- <attr name="android:isScrollContainer" />
- <attr name="android:fadeScrollbars" />
- <attr name="android:scrollbarFadeDuration" />
- <attr name="android:scrollbarDefaultDelayBeforeFade" />
- <attr name="android:scrollbarSize" />
- <attr name="android:scrollbarThumbHorizontal" />
- <attr name="android:scrollbarThumbVertical" />
- <attr name="android:scrollbarTrackHorizontal" />
- <attr name="android:scrollbarTrackVertical" />
- <attr name="android:scrollbarAlwaysDrawHorizontalTrack" />
- <attr name="android:scrollbarAlwaysDrawVerticalTrack" />
- <attr name="android:fadingEdge" />
- <attr name="android:requiresFadingEdge" />
- <attr name="android:fadingEdgeLength" />
- <attr name="android:nextFocusLeft" />
- <attr name="android:nextFocusRight" />
- <attr name="android:nextFocusUp" />
- <attr name="android:nextFocusDown" />
- <attr name="android:nextFocusForward" />
- <attr name="android:clickable" />
- <attr name="android:longClickable" />
- <attr name="android:saveEnabled" />
- <attr name="android:filterTouchesWhenObscured" />
- <attr name="android:drawingCacheQuality" />
- <attr name="android:keepScreenOn" />
- <attr name="android:duplicateParentState" />
- <attr name="android:minHeight" />
- <attr name="android:minWidth" />
- <attr name="android:soundEffectsEnabled" />
- <attr name="android:hapticFeedbackEnabled" />
- <attr name="android:contentDescription" />
- <attr name="android:onClick" />
- <attr name="android:overScrollMode" />
- <attr name="android:alpha" />
- <attr name="android:translationX" />
- <attr name="android:translationY" />
- <attr name="android:transformPivotX" />
- <attr name="android:transformPivotY" />
- <attr name="android:rotation" />
- <attr name="android:rotationX" />
- <attr name="android:rotationY" />
- <attr name="android:scaleX" />
- <attr name="android:scaleY" />
- <attr name="android:verticalScrollbarPosition" />
- <attr name="android:layerType" />
- <attr name="android:layoutDirection" />
- <attr name="android:textDirection" />
- <attr name="android:textAlignment" />
- <!-- Imported from Android -->
- <attr name="android:orientation" />
- <!-- Imported from AbsListView -->
- <attr name="android:choiceMode" />
- <attr name="android:drawSelectorOnTop" />
- <attr name="android:listSelector" />
- </declare-styleable>
- <declare-styleable name="wheelview">
- <attr name="gravity">
- <enum name="center" value="17" />
- <enum name="left" value="3" />
- <enum name="right" value="5" />
- </attr>
- <attr name="textColorOut" format="color" />
- <attr name="textColorCenter" format="color" />
- <attr name="dividerColor" format="color" />
- </declare-styleable>
- <declare-styleable name="NineGridView">
- <attr name="ngv_singleImageSize" format="dimension" />
- <attr name="ngv_singleImageRatio" format="float" />
- <attr name="ngv_gridSpacing" format="dimension" />
- <attr name="ngv_maxSize" format="integer" />
- <attr name="ngv_mode" format="enum">
- <enum name="fill" value="0" />
- <enum name="grid" value="1" />
- </attr>
- </declare-styleable>
- </resources>
|