Home
last modified time | relevance | path

Searched refs:style (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/frameworks/base/core/java/android/content/res/
DStringBlock.java20 import android.text.style.*;
83 int[] style = nativeGetStyle(mNative, idx); in get() local
85 if (localLOGV) Log.v(TAG, "Got styles: " + style); in get()
86 if (style != null) { in get()
93 for (int styleIndex = 0; styleIndex < style.length; styleIndex += 3) { in get()
94 int styleId = style[styleIndex]; in get()
133 res = applyStyles(str, style, mStyleIDs); in get()
161 private CharSequence applyStyles(String str, int[] style, StyleIDs ids) { in applyStyles() argument
162 if (style.length == 0) in applyStyles()
167 while (i < style.length) { in applyStyles()
[all …]
/frameworks/base/docs/html/guide/topics/ui/
Dthemes.jd18 <li><a href="#ApplyAStyle">Apply a style to a View</a></li>
29 <li>{@link android.R.style} for Android styles and themes</li>
30 <li>{@link android.R.attr} for all style attributes</li>
36 <p>A <strong>style</strong> is a collection of properties that
38 A style can specify properties such as height, padding, font color, font size,
39 background color, and much more. A style is defined in an XML resource that is
46 <p>For example, by using a style, you can take this layout XML:</p>
58 style="@style/CodeFont"
62 <p>All of the attributes related to style have been removed from the layout XML and put into a
63 style definition called {@code CodeFont}, which is then applied with the <code>style</code>
[all …]
/frameworks/base/docs/html/guide/topics/resources/
Dstyle-resource.jd16 <p>A style resource defines the format and look for a UI.
17 A style can be applied to an individual {@link android.view.View} (from within a layout file) or to
23 <p class="note"><strong>Note:</strong> A style is a simple resource that is referenced
25 such, you can combine style resources with other simple resources in the one XML file,
36 In XML: <code>@[package:]style/<em>style_name</em></code>
44 &lt;<a href="#style-element">style</a>
46 parent="@[package:]style/<em>style_to_inherit</em>">
50 &lt;/style>
63 <dt id="style-element"><code>&lt;style&gt;</code></dt>
64 <dd>Defines a single style. Contains {@code &lt;item&gt;} elements.
[all …]
/frameworks/base/docs/html/guide/topics/security/
Dindex.jd8 <div style="width=100%;padding-left:1em;">
10 <div style="float:left;clear:both;padding-top:20px;">
11 <p style="text-transform:uppercase;"><b style="color:#666;font-size:14px;">Blog Articles</b></p>
13 … <div class="" style="border-top:2px solid #DDD;margin:1em 0;background-color:#F7F7F7;width:336px">
15 <div style="float:left;padding:8px;padding-right:16px;">
20 …<p style="margin:0;padding:0;font-weight:bold;"><a href="">Accessibility: Are You Serving All Your…
21 …<p style="margin:0;padding:0">In the upcoming weeks, some of the older Client Login authentication…
24 …<p style="margin:0;padding:0;font-weight:bold;"><a href="">Android C2DM — Client Login key expirat…
25 …<p style="margin:0;padding:0">Accessibility is about making sure that Android users who have limi…
27 …<p style="margin:0;padding:0;font-weight:bold;"><a href="">A Faster Emulator with Better Hardware …
[all …]
/frameworks/base/core/java/android/text/
DHtml.java33 import android.text.style.AbsoluteSizeSpan;
34 import android.text.style.AlignmentSpan;
35 import android.text.style.CharacterStyle;
36 import android.text.style.ForegroundColorSpan;
37 import android.text.style.ImageSpan;
38 import android.text.style.ParagraphStyle;
39 import android.text.style.QuoteSpan;
40 import android.text.style.RelativeSizeSpan;
41 import android.text.style.StrikethroughSpan;
42 import android.text.style.StyleSpan;
[all …]
/frameworks/base/graphics/java/android/graphics/
DTypeface.java87 public static Typeface create(String familyName, int style) { in create() argument
88 return new Typeface(nativeCreate(familyName, style)); in create()
102 public static Typeface create(Typeface family, int style) { in create() argument
106 if (family.mStyle == style) { in create()
117 typeface = styles.get(style); in create()
123 typeface = new Typeface(nativeCreateFromTypeface(ni, style)); in create()
128 styles.put(style, typeface); in create()
138 public static Typeface defaultFromStyle(int style) { in defaultFromStyle() argument
139 return sDefaults[style]; in defaultFromStyle()
222 private static native int nativeCreate(String familyName, int style); in nativeCreate() argument
[all …]
DBlurMaskFilter.java46 public BlurMaskFilter(float radius, Blur style) { in BlurMaskFilter() argument
47 native_instance = nativeConstructor(radius, style.native_int); in BlurMaskFilter()
50 private static native int nativeConstructor(float radius, int style); in nativeConstructor() argument
/frameworks/base/docs/html/live/
Dindex.jd5 <div class="wrap" style="width:940px;">
13 …<div id="interviewBlock" id="pocketgems" style="border-top:1px solid #ddd;margin-top:2em;padding-t…
37 <div style="padding-left:1.5em;font-size:12px;">
38 …<div style="padding-bottom:1em;"><img itemprop="image" src="http://pocketgems.com/images/pocket-ge…
40 <h3 style="color:#000;font-size:12px;">About Pocket Gems</h3>
42 … Web: <a style="text-decoration:none" href="http://www.pocketgems.com">www.pocketgems.com</a><br />
43 …Google+: <a style="text-decoration:none" href="https://plus.google.com/b/102436156807338888308/">+…
44 …Twitter: <a style="text-decoration:none" href="https://twitter.com/#!/PocketGems">@PocketGems</a><…
47 <h3 style="color:#000;font-size:12px;">Published on Google Play</h3>
48 <p style="line-height:1.5em;">
[all …]
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java17 package android.text.style;
99 a = context.obtainStyledAttributes(com.android.internal.R.style.Theme, in TextAppearanceSpan()
113 public TextAppearanceSpan(String family, int style, int size, in TextAppearanceSpan() argument
116 mStyle = style; in TextAppearanceSpan()
221 int style = 0; in updateMeasureState() local
224 style = tf.getStyle(); in updateMeasureState()
227 style |= mStyle; in updateMeasureState()
230 tf = Typeface.create(mTypeface, style); in updateMeasureState()
232 tf = Typeface.defaultFromStyle(style); in updateMeasureState()
234 tf = Typeface.create(tf, style); in updateMeasureState()
[all …]
DStyleSpan.java17 package android.text.style;
44 public StyleSpan(int style) { in StyleSpan() argument
45 mStyle = style; in StyleSpan()
81 private static void apply(Paint paint, int style) { in apply() argument
91 int want = oldStyle | style; in apply()
/frameworks/base/core/java/android/view/
DPointerIcon.java77 private PointerIcon(int style) { in PointerIcon() argument
78 mStyle = style; in PointerIcon()
114 public static PointerIcon getSystemIcon(Context context, int style) { in getSystemIcon() argument
119 if (style == STYLE_NULL) { in getSystemIcon()
123 int styleIndex = getSystemIconStyleIndex(style); in getSystemIcon()
135 Log.w(TAG, "Missing theme resources for pointer icon style " + style); in getSystemIcon()
136 return style == STYLE_DEFAULT ? gNullIcon : getSystemIcon(context, STYLE_DEFAULT); in getSystemIcon()
139 PointerIcon icon = new PointerIcon(style); in getSystemIcon()
311 int style = in.readInt();
312 if (style == STYLE_NULL) {
[all …]
/frameworks/base/core/jni/
Dandroid_view_PointerIcon.h47 int32_t style; member
53 return style == POINTER_ICON_STYLE_NULL; in isNullIcon()
57 style = POINTER_ICON_STYLE_NULL; in reset()
66 jobject contextObj, int32_t style);
76 jobject contextObj, int32_t style, PointerIcon* outPointerIcon);
Dandroid_view_PointerIcon.cpp42 jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, int32_t style) { in android_view_PointerIcon_getSystemIcon() argument
44 gPointerIconClassInfo.getSystemIcon, contextObj, style); in android_view_PointerIcon_getSystemIcon()
46 ALOGW("An exception occurred while getting a pointer icon with style %d.", style); in android_view_PointerIcon_getSystemIcon()
71 outPointerIcon->style = env->GetIntField(loadedPointerIconObj, in android_view_PointerIcon_load()
92 int32_t style, PointerIcon* outPointerIcon) { in android_view_PointerIcon_loadSystemIcon() argument
93 jobject pointerIconObj = android_view_PointerIcon_getSystemIcon(env, contextObj, style); in android_view_PointerIcon_loadSystemIcon()
/frameworks/base/docs/html/distribute/googleplay/promote/
Dbrand.jd11 <div style="float:right;width:50%;padding:1.5em;">
15 <div style="width:45%;">
29 <div style="clear:both">
30 <div style="float:right;width:50%;padding:1.5em;">
34 <div style="width:45%;">
41 <div style="clear:both">
42 <div style="float:right;width:50%;padding:1.5em;">
46 <div style="width:45%;">
53 <div style="clear:both">
54 <div style="float:right;width:50%;padding:1.5em;">
[all …]
/frameworks/base/docs/html/
Dsupport.jd5 <div class="wrap" style="width:940px;">
11 <div style="margin: 20px 0 0;">
13 <div class="col-8" style="margin-left:0">
14 …<h3 style="font-size: 14px;line-height: 21px;color: #555;text-transform: uppercase;border-bottom: …
17 <p style="color:#888">
23 …http://webchat.freenode.net/?channels=android-dev">#android-dev</a> <span style="color:#888">(IRC …
24 …m/108967384991768947849/posts">+Android Developers Office Hours</a> <span style="color:#888">(Wedn…
38 <div class="col-8" style="margin-right:0">
39 <h3 style="font-size: 14px;line-height: 21px;color: #555;text-transform:
42 <p style="color:#888">
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java23 import android.text.style.*;
81 StyleSpan[] style; in testWrapParcel() local
83 style = s2.getSpans(1, 2, StyleSpan.class); in testWrapParcel()
84 assertEquals(1, style.length); in testWrapParcel()
85 assertEquals(1, s2.getSpanStart(style[0])); in testWrapParcel()
86 assertEquals(2, s2.getSpanEnd(style[0])); in testWrapParcel()
88 style = s2.getSpans(3, 7, StyleSpan.class); in testWrapParcel()
89 assertEquals(1, style.length); in testWrapParcel()
90 assertEquals(3, s2.getSpanStart(style[0])); in testWrapParcel()
91 assertEquals(7, s2.getSpanEnd(style[0])); in testWrapParcel()
DHtmlTest.java23 import android.text.style.ForegroundColorSpan;
24 import android.text.style.QuoteSpan;
25 import android.text.style.StrikethroughSpan;
26 import android.text.style.StyleSpan;
27 import android.text.style.SubscriptSpan;
28 import android.text.style.SuperscriptSpan;
29 import android.text.style.TextAppearanceSpan;
30 import android.text.style.TypefaceSpan;
31 import android.text.style.URLSpan;
32 import android.text.style.UnderlineSpan;
/frameworks/base/docs/html/distribute/googleplay/about/
Dvisibility.jd6 <div style="float:right;margin:0px 0px 24px 0px;">
7 <img src="{@docRoot}images/gp-tab.png" style="width:420px" style>
19 more than <strong style="text-wrap:none;">15 billion apps</strong> from Google
32 <div style="float:left;margin:0px 20px 0px 0px;width:374px;">
33 <div style="width:378px;padding:2px;">
34 <img src="{@docRoot}images/gp-growth-downloads.png" style="width:600px;margin-bottom:0em;">
36 <p class="image-caption" style="padding:.5em"><span
37 style="font-weight:500;">Growth in app consumption</span>: Users download more than
53 <div style="clear:both;">
75 <div style="border:1px solid #DDD;padding:1px;margin-left:110px;width:504px;">
[all …]
/frameworks/base/docs/html/guide/appendix/
Dmedia-formats.jd75 <td style="text-align: center;"><big>&bull;</big></td>
76 <td style="text-align: center;"><big>&bull;</big></td>
89 <td style="text-align: center;"><big>&bull;</big></td>
95 <td style="text-align: center;"><big>&bull;</big></td>
100 <td style="text-align: center;"><big>&bull;</big></td>
101 <td style="text-align: center;"><big>&bull;</big></td>
109 <td style="text-align: center;"><big>&bull;</big></td>
110 <td style="text-align: center;"><big>&bull;</big></td>
119 <td style="text-align: center;" nowrap><big>&bull;</big><br><small>(Android 3.1+)</small></td>
132 <td style="text-align: center;"><big>&bull;</big></td>
[all …]
/frameworks/base/docs/html/sdk/
Dindex.jd23 <style type="text/css">
25 </style>
31 <div class="col-7" style="margin-left:0">
36 <div class="col-6" style="margin-right:0;">
38 <div id="intro" style="position:absolute;width:inherit">
39 <h1 style="margin-top:0">Get the Android SDK</h1>
53 <a class="big button" id="download-button" href="" style="display:none" ></a>
56 <p style="margin-top:20px;font-size:12px"><a href='' onclick="
76 <div id="next-steps" class="online" style="display:none;position:absolute;width:inherit">
77 <h1 style="margin-top:0">Get ready to code!</h1>
[all …]
/frameworks/base/docs/html/about/versions/
Dandroid-4.0-highlights.jd6 <style type="text/css">
38 </style>
55 <h2 id="UserFeatures" style="clear:right">Android 4.0 for Users</h2>
57 <div style="padding-bottom:0em;">
59 style="margin-left:10px;float:right;xborder:1px solid #ddd;border-radius: 5px;"
62 style="margin-left:20px;float:right;border:1px solid #ddd;border-radius: 5px;"
67 <h3 id="simple" style="color:#258AAF">Simple, beautiful, beyond smart</h3>
74 <p style="margin-top:1em;margin-bottom:.75em;"><strong>Refined, evolved UI</strong></p>
96 <div style="padding-top:0em;">
97 <div style="margin-right:.5em;float:left;width:182px;padding-top:.5em;">
[all …]
/frameworks/base/docs/html/distribute/googleplay/publish/
Dconsole.jd12 <div style="width:610px;margin-left:">
13 <div style="width:610px;border:1px solid #DDD;">
14 <img src="{@docRoot}images/gp-dc-home.png" style="width:600px;padding:4px;margin-bottom:0em;">
16 <p class="image-caption" style="padding:.5em"><span
17 style="font-weight:500;">Developer Console home page</span>: Gives you a quick
24 <div style="width:408px;float:right;margin:1.5em;">
25 <div style="width:410px;border:1px solid #DDD;">
26 <img src="{@docRoot}images/gp-dc-profile.png" style="width:400px;padding:4px;margin-bottom:0em;">
28 <p class="image-caption" style="padding:.5em"><span
29 style="font-weight:500;">Developer profile</span>: Specifies your developer
[all …]
Dindex.jd8 <div style="height:413px;padding-top:50px;">
9 <img src="{@docRoot}images/gp-devconsole-home.png" style="margin-top:0px;">
12 <div style="width:460px;padding-bottom:40px;margin-left:1.5em;">
17 <p style="margin-top:1.5em;margin-bottom:1.5em;"><a href="{@docRoot}distribute/googleplay/publish/r…
/frameworks/base/docs/html/design/style/
Dindex.jd6 <style>
17 </style>
23 …<a href="{@docRoot}design/style/devices-displays.html" class="landing-page-link">Devices and Displ…
26 <a href="{@docRoot}design/style/devices-displays.html">
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java31 import android.text.style.CharacterStyle;
32 import android.text.style.ForegroundColorSpan;
33 import android.text.style.RelativeSizeSpan;
34 import android.text.style.RelativeSizeSpan;
35 import android.text.style.StyleSpan;
193 CharacterStyle style = new RelativeSizeSpan(0.7f); in getSmallTime() local
194 formatted.setSpan(style, magic1, magic2, in getSmallTime()

12345678910>>...18