Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/frameworks/base/docs/html/guide/topics/resources/
Doverview.jd8 <li><a href="providing-resources.html">Providing Resources</a></li>
9 <li><a href="accessing-resources.html">Accessing Resources</a></li>
16 <li><a href="available-resources.html">Resource Types</a></li>
22 <p>You should always externalize resources such as images and strings from your application
24 resources also allows you to provide alternative resources that support specific device
27 to provide compatibility with different configurations, you must organize resources in your
28 project's {@code res/} directory, using various sub-directories that group resources by type and
32 <img src="{@docRoot}images/resources/resource_devices_diagram1.png" height="167" alt="" />
39 <img src="{@docRoot}images/resources/resource_devices_diagram2.png" height="167" alt="" />
46 <em>alternative</em> resources for your application:</p>
[all …]
Davailable-resources.jd10 <li><a href="providing-resources.html">Providing Resources</a></li>
11 <li><a href="accessing-resources.html">Accessing Resources</a></li>
17 of application resource that you can provide in your resources directory ({@code res/}).</p>
22 …<dt><a href="{@docRoot}guide/topics/resources/animation-resource.html">Animation Resources</a></dt>
26 …<dt><a href="{@docRoot}guide/topics/resources/color-list-resource.html">Color State List Resource<…
27 <dd>Define a color resources that changes based on the View state.<br/>
29 <dt><a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a></dt>
32 <dt><a href="{@docRoot}guide/topics/resources/layout-resource.html">Layout Resource</a></dt>
35 <dt><a href="{@docRoot}guide/topics/resources/menu-resource.html">Menu Resource</a></dt>
38 <dt><a href="{@docRoot}guide/topics/resources/string-resource.html">String Resources</a></dt>
[all …]
Dmore-resources.jd3 parent.link=available-resources.html
6 <p>This page defines more types of resources you can externalize, including:</p>
16 <dd>XML resource that provides a unique identifier for application resources and
36 such, you can combine bool resources with other simple resources in the one XML file,
37 under one {@code &lt;resources>} element.</p>
56 &lt;<a href="#bool-resources-element">resources</a>&gt;
60 &lt;/resources>
68 <dt id="bool-resources-element"><code>&lt;resources&gt;</code></dt>
88 &lt;resources&gt;
91 &lt;/resources>
[all …]
Dproviding-resources.jd10 <li>Different types of resources belong in different subdirectories of {@code res/}</li>
11 <li>Alternative resources provide configuration-specific resource files</li>
12 <li>Always include default resources so your app does not depend on specific
21 <li><a href="#AliasResources">Creating alias resources</a></li>
36 <li><a href="accessing-resources.html">Accessing Resources</a></li>
37 <li><a href="available-resources.html">Resource Types</a></li>
44 <p>You should always externalize application resources such as images and strings from your
45 code, so that you can maintain them independently. You should also provide alternative resources for
51 <p>Once you externalize your application resources, you can access them
53 resources in your application is discussed in <a href="accessing-resources.html">Accessing
[all …]
Dstyle-resource.jd3 parent.link=available-resources.html
25 such, you can combine style resources with other simple resources in the one XML file,
26 under one {@code &lt;resources>} element.</p>
43 &lt;<a href="#resources-element">resources</a>>
51 &lt;/resources>
59 <dt id="resources-element"><code>&lt;resources&gt;</code></dt>
101 &lt;resources>
106 &lt;/resources>
Daccessing-resources.jd12 <li>Resources can be referenced from resources using a special XML syntax, such as {@code
14 <li>You can also access your app resources with methods in
36 <li><a href="providing-resources.html">Providing Resources</a></li>
37 <li><a href="available-resources.html">Resource Types</a></li>
46 href="providing-resources.html">Providing Resources</a>), you can apply it by
51 resource IDs for all the resources in your {@code
53 {@code R.drawable} for all drawable resources) and for each resource of that type, there is a static
62 href="available-resources.html">Resource Types</a>.
75 Android APIs that can access your resources when you provide a resource ID in this format. See
99 <p>You can also retrieve individual resources using methods in {@link
[all …]
Dstring-resource.jd3 parent.link=available-resources.html
7 with optional text styling and formatting. There are three types of resources that can provide
33 combine string resources with other simple resources in the one XML file,
34 under one {@code &lt;resources>} element.</p>
56 &lt;<a href="#string-resources-element">resources</a>>
60 &lt;/resources>
68 <dt id="string-resources-element"><code>&lt;resources&gt;</code></dt>
91 &lt;resources>
93 &lt;/resources>
130 such, you can combine string array resources with other simple resources in the one XML file,
[all …]
Dlocalization.jd15 <li>If locale-specific resources are not available, Android falls back to
31 <li><a href="#referring-to-resources">Referring to Resources in Java</a></li>
51 …<li><a href="{@docRoot}guide/topics/resources/providing-resources.html">Providing Resources</a></l…
79 href="{@docRoot}guide/topics/resources/providing-resources.html">Providing Resources</a>.</li>
96 sets of resources, each customized for a different device configuration. When a
98 resources that best match the device.</p>
103 href="{@docRoot}guide/topics/resources/providing-resources.html#AlternativeResources">Providing
111 You create a set of default resources, plus alternatives to be used in
114 …<p style="border:0; padding:0"><img src="../../../images/resources/right-arrow.png" alt="right-arr…
118 <br><br>The Android system selects which resources to load, based on the
[all …]
/frameworks/native/libs/utils/
DREADME28 resources in other packages. When an application requests resources,
51 This section provides generic background material on resources in
55 How resources are bundled in .apk files
58 certificates and resources, though packages containing resources but
74 format in a named file resources.arsc, bundled as part of the .apk.
78 During compilation, the aapt tool gathers application resources and
79 generates a resources.arsc file. Each resource name is assigned an
89 * iiii: sequential number, assigned in the order resources are found.
98 Parsing of resources.arsc is handled by ResourceTypes.cpp; this utility
99 is governed by AssetManager.cpp, which tracks loaded resources per
[all …]
/frameworks/base/
DAndroid.mk448 resources/samples/AccelerometerPlay "Accelerometer Play" \
450 resources/samples/ActionBarCompat "Action Bar Compatibility" \
452 resources/samples/AndroidBeamDemo "Android Beam Demo" \
454 resources/samples/ApiDemos "API Demos" \
456 resources/samples/Support4Demos "API 4+ Support Demos" \
458 resources/samples/Support13Demos "API 13+ Support Demos" \
460 resources/samples/BackupRestore "Backup and Restore" \
462 resources/samples/BluetoothChat "Bluetooth Chat" \
464 resources/samples/BluetoothHDP "Bluetooth HDP Demo" \
466 resources/samples/BusinessCard "Business Card" \
[all …]
/frameworks/base/graphics/java/android/renderscript/
DScriptC.java56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument
58 int id = internalCreate(rs, resources, resourceID); in ScriptC()
66 …private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceI… in internalCreate() argument
69 InputStream is = resources.openRawResource(resourceID); in internalCreate()
95 String resName = resources.getResourceEntryName(resourceID); in internalCreate()
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
DScriptC.java56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument
58 int id = internalCreate(rs, resources, resourceID); in ScriptC()
66 …private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceI… in internalCreate() argument
69 InputStream is = resources.openRawResource(resourceID); in internalCreate()
95 String resName = resources.getResourceEntryName(resourceID); in internalCreate()
/frameworks/base/docs/html/training/basics/supporting-devices/
Dlanguages.jd21 <li><a href="{@docRoot}guide/topics/resources/localization.html">Localization</a></li>
27 in an external file. Android makes this easy with a resources directory in each Android
43 resourcess for the Locales with the language code "es". Android loads the appropriate resources
62 <p>At runtime, the Android system uses the appropriate set of string resources based on the
72 &lt;resources>
75 &lt;/resources>
83 &lt;resources>
86 &lt;/resources>
94 &lt;resources>
97 &lt;/resources>
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java52 import com.android.resources.ResourceType;
53 import com.android.resources.ScreenOrientation;
179 RenderResources resources = getParams().getResources(); in init() local
183 mIsAlphaChannelImage = getBooleanThemeValue(resources, in init()
186 mWindowIsFloating = getBooleanThemeValue(resources, "windowIsFloating", in init()
189 findBackground(resources); in init()
190 findStatusBar(resources, metrics); in init()
191 findActionBar(resources, metrics); in init()
192 findNavigationBar(resources, metrics); in init()
1018 private void findBackground(RenderResources resources) { in findBackground() argument
[all …]
/frameworks/base/core/java/android/view/
DPointerIcon.java195 public static PointerIcon loadCustomIcon(Resources resources, int resourceId) { in loadCustomIcon() argument
196 if (resources == null) { in loadCustomIcon()
201 icon.loadResource(resources, resourceId); in loadCustomIcon()
376 private void loadResource(Resources resources, int resourceId) { in loadResource() argument
377 XmlResourceParser parser = resources.getXml(resourceId); in loadResource()
384 TypedArray a = resources.obtainAttributes( in loadResource()
400 Drawable drawable = resources.getDrawable(bitmapRes); in loadResource()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DThinPatchesActivity.java53 final Resources resources = activity.getResources(); in PatchView() local
54 mPatch1 = resources.getDrawable(R.drawable.patch); in PatchView()
55 mPatch2 = resources.getDrawable(R.drawable.btn_toggle_on); in PatchView()
56 mPatch3 = resources.getDrawable(R.drawable.patch2); in PatchView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationPanelView.java52 Resources resources = getContext().getResources(); in onFinishInflate() local
53 mHandleBar = resources.getDrawable(R.drawable.status_bar_close); in onFinishInflate()
54 mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height); in onFinishInflate()
57 setContentDescription(resources.getString(R.string.accessibility_desc_notification_shade)); in onFinishInflate()
DSettingsPanelView.java57 Resources resources = getContext().getResources(); in onFinishInflate() local
58 mHandleBar = resources.getDrawable(R.drawable.status_bar_close); in onFinishInflate()
59 mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height); in onFinishInflate()
62 setContentDescription(resources.getString(R.string.accessibility_desc_quick_settings)); in onFinishInflate()
/frameworks/base/docs/html/guide/topics/ui/
Dbinding.jd16 <li><a href="{@docRoot}resources/tutorials/views/hello-spinner.html">Spinner</a></li>
17 <li><a href="{@docRoot}resources/tutorials/views/hello-listview.html">List View</a></li>
18 <li><a href="{@docRoot}resources/tutorials/views/hello-gridview.html">Grid View</a></li>
85 <a href="{@docRoot}resources/tutorials/views/hello-spinner.html">Hello Spinner</a>,
86 <a href="{@docRoot}resources/tutorials/views/hello-listview.html">Hello ListView</a>, and
87 <a href="{@docRoot}resources/tutorials/views/hello-gridview.html">Hello GridView</a>.
/frameworks/base/docs/html/guide/appendix/faq/
Dindex.jd4 document.location=toRoot+"resources/faq/index.html"
8 <a href="{@docRoot}resources/faq/index.html">this link</a>.</p>
Dlicensingandoss.jd4 document.location=toRoot+"resources/faq/licensingandoss.html"
8 <a href="{@docRoot}resources/faq/licensingandoss.html">this link</a>.</p>
Dframework.jd4 document.location=toRoot+"resources/faq/framework.html"
8 <a href="{@docRoot}resources/faq/framework.html">this link</a>.</p>
Dcommontasks.jd4 document.location=toRoot+"resources/faq/commontasks.html"
8 <a href="{@docRoot}resources/faq/commontasks.html">this link</a>.</p>
Dtroubleshooting.jd4 document.location=toRoot+"resources/faq/troubleshooting.html"
8 <a href="{@docRoot}resources/faq/troubleshooting.html">this link</a>.</p>
Dsecurity.jd4 document.location=toRoot+"resources/faq/security.html"
8 <a href="{@docRoot}resources/faq/security.html">this link</a>.</p>

12345678910>>...14