/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 21 import android.text.style.*; 84 int[] style = nativeGetStyle(mNative, idx); in get() local 86 if (localLOGV) Log.v(TAG, "Got styles: " + Arrays.toString(style)); in get() 87 if (style != null) { in get() 94 for (int styleIndex = 0; styleIndex < style.length; styleIndex += 3) { in get() 95 int styleId = style[styleIndex]; in get() 134 res = applyStyles(str, style, mStyleIDs); in get() 166 private CharSequence applyStyles(String str, int[] style, StyleIDs ids) { in applyStyles() argument 167 if (style.length == 0) in applyStyles() 172 while (i < style.length) { in applyStyles() [all …]
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | themes.jd | 18 <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/training/basics/actionbar/ |
D | styling.jd | 34 same as it does in other apps. If you want to style the action bar to better fit your product 35 brand, you can easily do so using Android's <a href="{@docRoot}guide/topics/ui/themes.html">style 41 <p class="note" style="clear:left"><strong>Note:</strong> If you are using the Support Library APIs 43 android.support.v7.appcompat.R.style#Theme_AppCompat Theme.AppCompat} family of styles (rather 44 than the {@link android.R.style#Theme_Holo Theme.Holo} family, available in API level 11 and 45 higher). In doing so, each style property that you declare must be declared twice: once using 46 the platform's style properties (the 48 style properties included in the Support Library (the {@link android.support.v7.appcompat.R.attr 56 <div class="figure" style="width:340px"> 60 <div class="figure" style="width:340px"> [all …]
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | style-resource.jd | 16 <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 <<a href="#style-element">style</a> 46 parent="@[package:]style/<em>style_to_inherit</em>"> 50 </style> 63 <dt id="style-element"><code><style></code></dt> 64 <dd>Defines a single style. Contains {@code <item>} elements. [all …]
|
/frameworks/base/core/java/android/text/ |
D | Html.java | 34 import android.text.style.AbsoluteSizeSpan; 35 import android.text.style.AlignmentSpan; 36 import android.text.style.CharacterStyle; 37 import android.text.style.ForegroundColorSpan; 38 import android.text.style.ImageSpan; 39 import android.text.style.ParagraphStyle; 40 import android.text.style.QuoteSpan; 41 import android.text.style.RelativeSizeSpan; 42 import android.text.style.StrikethroughSpan; 43 import android.text.style.StyleSpan; [all …]
|
/frameworks/base/docs/html/distribute/googleplay/spotlight/ |
D | index.jd | 10 <div style="background: #F0F0F0; 17 <div style="padding:0 0 0 29px;"> 19 <img alt="" class="screenshot thumbnail" style="-webkit-border-radius: 5px; 26 <div style="width:700px;"> 27 <p style="margin-top:26px; 31 <iframe style="float:left; 39 <div style="background: #F0F0F0; 46 <div style="padding:0 0 0 29px;"> 48 <img alt="" class="screenshot thumbnail" style="-webkit-border-radius: 5px; 55 <div style="width:700px;"> [all …]
|
D | games.jd | 18 <div style="margin-bottom:2em;"><!-- START STORY --> 22 <img alt="" class="screenshot thumbnail" style="-webkit-border-radius: 5px; 30 <div style="list-style: none;height:100%; 50 <div style="padding:.5em 0 0 1em;"> 57 <div style="line-height:1.4em;"> 58 <p style="margin-top:0;margin-bottom:12px;">Concrete Software added several 82 <div style="clear:both;margin-top:40px;width:auto;"> 86 <div style="width:600px;margin-top:0px;padding:0 90px;"> 87 <p class="image-caption"><span style="font-weight:500;">Session lengths up:</span> 95 <div style="margin:3em auto"><!-- START STORY --> [all …]
|
D | tablets.jd | 20 <div style="margin-bottom:2em;" id="rememberthemilk"><!-- START STORY --> 24 <img alt="" class="screenshot thumbnail" style="-webkit-border-radius: 5px; 32 <div style="list-style: none;height:100%; 55 <div style="padding:.5em 0 0 1em;"> 64 <div style="line-height:1.4em;"> 65 <p style="margin-top:0;margin-bottom:12px;">When the Android tablet guidelines 88 <div style="clear:both;margin-top:30px;width:auto;"> 92 <div style="width:600px;margin-top:0px;padding:0 90px;"> 93 <p class="image-caption"><span style="font-weight:500;">Tablet redesign led to lift 103 <div style="margin-bottom:2em;" id="mint"><!-- START STORY --> [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 87 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 …]
|
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 17 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 …]
|
D | StyleSpan.java | 17 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/jni/android/graphics/ |
D | Typeface.cpp | 32 SkTypeface::Style style) { in Typeface_create() argument 37 face = SkTypeface::CreateFromName(str.c_str(), style); in Typeface_create() 40 … face = SkTypeface::CreateFromName(str.c_str(), (SkTypeface::Style)(style ^ SkTypeface::kItalic)); in Typeface_create() 49 face = SkTypeface::CreateFromName(NULL, style); in Typeface_create() 54 static SkTypeface* Typeface_createFromTypeface(JNIEnv* env, jobject, SkTypeface* family, int style)… in Typeface_createFromTypeface() argument 55 SkTypeface* face = SkTypeface::CreateFromTypeface(family, (SkTypeface::Style)style); in Typeface_createFromTypeface() 58 … face = SkTypeface::CreateFromTypeface(family, (SkTypeface::Style)(style ^ SkTypeface::kItalic)); in Typeface_createFromTypeface() 64 face = SkTypeface::CreateFromName(NULL, (SkTypeface::Style)style); in Typeface_createFromTypeface() 74 return face->style(); in Typeface_getStyle()
|
/frameworks/base/core/jni/ |
D | android_view_PointerIcon.h | 47 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);
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | NotificationCompat.java | 127 BigTextStyle style = (BigTextStyle) b.mStyle; in build() local 128 jbBuilder.addBigTextStyle(style.mBigContentTitle, in build() 129 style.mSummaryTextSet, in build() 130 style.mSummaryText, in build() 131 style.mBigText); in build() 133 InboxStyle style = (InboxStyle) b.mStyle; in build() local 134 jbBuilder.addInboxStyle(style.mBigContentTitle, in build() 135 style.mSummaryTextSet, in build() 136 style.mSummaryText, in build() 137 style.mTexts); in build() [all …]
|
/frameworks/base/core/java/android/view/ |
D | PointerIcon.java | 77 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/support/v4/jellybean/android/support/v4/app/ |
D | NotificationCompatJellybean.java | 67 Notification.BigTextStyle style = new Notification.BigTextStyle(b) in addBigTextStyle() local 71 style.setSummaryText(summaryText); in addBigTextStyle() 78 Notification.BigPictureStyle style = new Notification.BigPictureStyle(b) in addBigPictureStyle() local 82 style.bigLargeIcon(bigLargeIcon); in addBigPictureStyle() 85 style.setSummaryText(summaryText); in addBigPictureStyle() 91 Notification.InboxStyle style = new Notification.InboxStyle(b) in addInboxStyle() local 94 style.setSummaryText(summaryText); in addInboxStyle() 97 style.addLine(text); in addInboxStyle()
|
/frameworks/base/docs/html/tools/ |
D | index.jd | 5 <img src="{@docRoot}images/tools-home.png" style="float:right;" height="415" width="763" /> 7 <div style="position:relative;height:0"> 8 <div style="position:absolute;width:420px"> 18 <div style="margin-top:20px;"></div> 20 <div class="col-7" style="margin-left:0"> 33 <div class="col-6" style="margin-right:0"> 46 <div class="col-7" style="clear:both;margin-left:0;"> 65 <div class="col-6" style="margin-right:0"> 66 <img src="{@docRoot}images/tools/dev-options-inmilk.png" alt="" style="margin:-10px 0 0;"> 70 <div class="col-7" style="clear:both;margin-left:0;"> [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 23 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()
|
/frameworks/base/docs/html/guide/appendix/ |
D | media-formats.jd | 61 <table style="font-size:12px"> 76 <td style="text-align: center;"><big>•</big></td> 77 <td style="text-align: center;"><big>•</big></td> 89 <td style="text-align: center;"><big>•</big><br><small>(Android 4.1+)</small></td> 90 <td style="text-align: center;"><big>•</big></td> 96 <td style="text-align: center;"><big>•</big></td> 103 <td style="text-align: center;"><big>•</big><br><small>(Android 4.1+)</small></td> 104 <td style="text-align: center;"><big>•</big><br><small>(Android 4.1+)</small></td> 111 <td style="text-align: center;"><big>•</big></td> 112 <td style="text-align: center;"><big>•</big></td> [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 102 /*package*/ static synchronized int nativeCreate(String familyName, int style) { in nativeCreate() argument 106 if (style < 0) { in nativeCreate() 107 style = Typeface.NORMAL; in nativeCreate() 110 Typeface_Delegate newDelegate = new Typeface_Delegate(familyName, style); in nativeCreate() 124 /*package*/ static synchronized int nativeCreateFromTypeface(int native_instance, int style) { in nativeCreateFromTypeface() argument 130 Typeface_Delegate newDelegate = new Typeface_Delegate(delegate.mFamily, style); in nativeCreateFromTypeface() 196 private Typeface_Delegate(String family, int style) { in Typeface_Delegate() argument 198 mStyle = style; in Typeface_Delegate()
|
/frameworks/base/docs/html/distribute/googleplay/about/ |
D | visibility.jd | 6 <div style="float:right;margin:0px 0px 24px 0px;"> 7 <img src="{@docRoot}images/gp-tab.png" style="width:420px" alt="" /> 19 more than <strong style="text-wrap:none;">25 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/ |
D | support.jd | 5 <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 … 37 <div class="col-8" style="margin-right:0"> 38 <h3 style="font-size: 14px;line-height: 21px;color: #555;text-transform: 41 <p style="color:#888"> 47 <p style="color:#888"> [all …]
|
/frameworks/base/docs/html/distribute/googleplay/edu/ |
D | index.jd | 6 <div style="position:absolute;margin-left: 636px; 10 style="display: block;text-align: right;">SIGN UP</a></div> 13 <div class="mainimg" style="position:absolute;margin-left:6px;margin-top:96px;"> 14 <img src="{@docRoot}images/gp-edu-hero7.png" style="width:590px;"> 16 <div class="copy" style="position:relative;left:314px;margin-top:42px;width:420px;"> 17 <h1 style="margin-bottom:10px;">Google Play for Education</h1> 26 <div class="distribute-features col-13" style="clear:both;margin-top:253px;">
|
D | about.jd | 6 <div style="position:absolute;margin-left: 636px; 10 style="display: block;text-align: right;">SIGN UP</a></div> 12 <div style="float:right;margin:0px 0px 24px 44px;"> 13 <img src="{@docRoot}images/gp-edu-knum-landscape.png" style="width:420px" alt="" /> 27 <p><a class="landing-page-link" style="text-align:right;" href="#video">Watch a Video</a></p> 31 <h3 style="clear:left">For Developers</h3> 57 <h3 style="clear:left">For Educators</h3> 83 <div id="video" style="background: #F0F0F0; 90 <div style="padding:0 0 0 29px;"> 93 <div style="width:700px;"> [all …]
|
/frameworks/base/docs/html/design/style/ |
D | index.jd | 6 <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">
|