/frameworks/base/docs/html/resources/tutorials/views/ |
D | hello-datepicker.jd | 3 parent.link=index.html 6 <p>To provide a widget for selecting a date, use the {@link android.widget.DatePicker} 9 <p>In this tutorial, you'll create a {@link android.app.DatePickerDialog}, which presents the 11 the user, a {@link android.widget.TextView} will update with the new date.</p> 32 <p>This creates a basic {@link android.widget.LinearLayout} with a {@link android.widget.TextView} 33 that will display the date and a {@link android.widget.Button} that will open the {@link 47 <p>The first group of members define variables for the layout {@link android.view.View}s and the 48 date items. The <code>DATE_DIALOG_ID</code> is a static integer that uniquely identifies the {@link 52 <li>Now add the following code for the {@link android.app.Activity#onCreate(Bundle) onCreate()} 81 <p>First, the content is set to the <code>main.xml</code> layout. Then the {@link [all …]
|
D | hello-tabwidget.jd | 3 parent.link=index.html 6 <p>To create a tabbed UI, you need to use a {@link android.widget.TabHost} and a {@link 7 android.widget.TabWidget}. The {@link android.widget.TabHost} must be the root node for the layout, 8 which contains both the {@link android.widget.TabWidget} for displaying the tabs and a {@link 12 {@link android.view.View}s within the same {@link android.app.Activity}, or use the tabs to change 15 a separate {@link android.app.Activity} for each tab, so that you can better manage the application 18 <p>In this tutorial, you'll create a tabbed UI that uses a separate {@link 23 <li>First, create three separate {@link android.app.Activity} classes in your project: 25 will each represent a separate tab. For now, make each one display a simple message using a {@link 38 <p>Notice that this doesn't use a layout file. Just create a {@link [all …]
|
D | hello-relativelayout.jd | 3 parent.link=index.html 6 <p>{@link android.widget.RelativeLayout} is a {@link android.view.ViewGroup} that displays 7 child {@link android.view.View} elements in relative positions. The position of a {@link 9 a given element) or in positions relative to the {@link android.widget.RelativeLayout} area (such as 12 <p>A {@link android.widget.RelativeLayout} is a very powerful utility for designing a user 13 interface because it can eliminate nested {@link android.view.ViewGroup}s. If you find 14 yourself using several nested {@link android.widget.LinearLayout} groups, you may be able to 15 replace them with a single {@link android.widget.RelativeLayout}.</p> 53 <code>layout_alignParentRight</code>, and <code>layout_toLeftOf</code>. When using a {@link 55 how you want to position each {@link android.view.View}. Each one of these attributes define a [all …]
|
D | hello-timepicker.jd | 3 parent.link=index.html 6 <p>To provide a widget for selecting a time, use the {@link android.widget.TimePicker} 9 <p>In this tutorial, you'll create a {@link android.app.TimePickerDialog}, which presents the 11 the user, a {@link android.widget.TextView} will update with the new date.</p> 32 <p>This is a basic {@link android.widget.LinearLayout} with a {@link android.widget.TextView} 33 that will display the time and a {@link android.widget.Button} that will open the {@link 50 <li>Now insert the following code for the {@link android.app.Activity#onCreate(Bundle) onCreate()} 79 <p>First, the content is set to the <code>main.xml</code> layout and then the {@link 80 android.widget.TextView} and {@link android.widget.Button} are captured with {@link 82 Then an {@link android.view.View.OnClickListener} is created for the {@link android.widget.Button}, [all …]
|
D | hello-gallery.jd | 3 parent.link=index.html 6 <p>{@link android.widget.Gallery} is a layout widget used to display items in a 30 {@link android.app.Activity#onCreate(Bundle) onCreate()} method: 48 {@link android.widget.Gallery} from 49 the layout with {@link 50 android.app.Activity#findViewById(int)}. A custom {@link android.widget.BaseAdapter} called 52 instantiated and applied to the {@link android.widget.Gallery} with {@link 55 Then an anonymous {@link android.widget.AdapterView.OnItemClickListener} is instantiated. The 56 {@link android.widget.AdapterView.OnItemClickListener#onItemClick(AdapterView,View,int,long)} 57 callback method receives the {@link android.widget.AdapterView} where the click occurred, the [all …]
|
D | hello-gridview.jd | 3 parent.link=index.html 6 <p>{@link android.widget.GridView} is a {@link android.view.ViewGroup} that displays items in a 8 scrollable grid. The grid items are automatically inserted to the layout using a {@link 36 <p>This {@link android.widget.GridView} will fill the entire screen. The attributes are rather 37 self explanatory. For more information about valid attributes, see the {@link 41 {@link android.app.Activity#onCreate(Bundle) onCreate()} method: 58 {@link android.widget.GridView} is captured from the layout with {@link 59 android.app.Activity#findViewById(int)}. The {@link 63 <p>To do something when an item in the grid is clicked, the {@link 65 method is passed a new {@link android.widget.AdapterView.OnItemClickListener}. This anonymous [all …]
|
D | hello-formstuff.jd | 3 parent.link=index.html 12 <li>Your <code>res/layout/main.xml</code> file should already have a basic {@link 22 <p>For each widget you want to add, just put the respective View inside this {@link 27 default implementation of the {@link android.app.Activity#onCreate(Bundle) onCreate()} method:</p> 49 <p>In this section, you will create a button with a custom image instead of text, using the {@link 79 drawable resource and when referenced by a {@link android.widget.Button} for its background, 86 <li>Open the <code>res/layout/main.xml</code> file and add the {@link 104 code at the end of the {@link android.app.Activity#onCreate(Bundle) onCreate()} method: 114 <p>This captures the {@link android.widget.Button} from the layout, then adds an {@link 115 android.view.View.OnClickListener}. The {@link android.view.View.OnClickListener} [all …]
|
D | hello-webview.jd | 3 parent.link=index.html 6 <p>{@link android.webkit.WebView} allows you to create your own window for viewing web pages (or ev… 7 develop a complete browser). In this tutorial, you'll create a simple {@link android.app.Activity} 24 At the top of the class, declare a {@link android.webkit.WebView} object: 26 <p>Then use the following code for the {@link android.app.Activity#onCreate(Bundle) onCreate()} 38 <p>This initializes the member {@link android.webkit.WebView} with the one from the 39 {@link android.app.Activity} layout; requests a {@link android.webkit.WebSettings} object with 40 {@link android.webkit.WebView#getSettings()}; and enables JavaScript for the {@link 41 android.webkit.WebView} with {@link android.webkit.WebSettings#setJavaScriptEnabled(boolean)}. 42 Finally, an initial web page is loaded with {@link [all …]
|
D | hello-spinner.jd | 3 parent.link=index.html 6 <p>{@link android.widget.Spinner} is a widget similar to a drop-down list for selecting items.</p> 36 <p>Notice that the {@link android.widget.TextView}'s <code>android:text</code> attribute and the 37 {@link android.widget.Spinner}'s <code>android:prompt</code> attribute both reference the same 38 string resource. This text behaves as a title for the widget. When applied to the {@link 61 <p>The {@code <string>} element defines the title string referenced by the {@link 62 android.widget.TextView} and {@link android.widget.Spinner} in the layout above. The {@code 64 the {@link android.widget.Spinner} widget.</p> 67 <li>Now open the <code>HelloSpinner.java</code> file and insert the following code for the {@link 82 <p>After the {@code main.xml} layout is set as the content view, the {@link [all …]
|
D | hello-listview.jd | 3 parent.link=index.html 6 <p>{@link android.widget.ListView} is a {@link android.view.ViewGroup} that creates a list of 7 scrollable items. The list items are automatically inserted to the list using a {@link 26 <p>This file defines the layout for each item that will be placed in the {@link 30 <li>Open the <code>HelloListView.java</code> and make the class extend {@link 31 android.app.ListActivity} (instead of {@link android.app.Activity}): 34 <li>Insert the following code for the {@link android.app.Activity#onCreate(Bundle) onCreate()} 56 <p>Notice that this does not load a layout file for the Activity (which you usually do with {@link 57 android.app.Activity#setContentView(int)}). Instead, {@link 59 adds a {@link android.widget.ListView} to fill the entire screen of the {@link [all …]
|
D | hello-linearlayout.jd | 3 parent.link=index.html 6 <p>{@link android.widget.LinearLayout} is a {@link android.view.ViewGroup} that displays child 7 {@link android.view.View} elements in a linear direction, either vertically or horizontally.</p> 9 <p>You should be careful about over-using the {@link android.widget.LinearLayout}. If you begin 10 nesting multiple {@link android.widget.LinearLayout}s, you may want to consider using a {@link 92 <p>Carefully inspect this XML. There is a root {@link android.widget.LinearLayout} that defines 93 its orientation to be vertical—all child {@link android.view.View}s (of which it has two) will 95 another {@link android.widget.LinearLayout} that uses a horizontal orientation and the second child 96 is a {@link android.widget.LinearLayout} that uses a vertical orientation. Each of these nested 97 {@link android.widget.LinearLayout}s contain several {@link android.widget.TextView} elements, which [all …]
|
D | hello-tablelayout.jd | 3 parent.link=index.html 7 <p>{@link android.widget.TableLayout} is a {@link android.view.ViewGroup} that 8 displays child {@link android.view.View} elements in rows and columns.</p> 91 <p>Notice how this resembles the structure of an HTML table. The {@link android.widget.TableLayout} 92 element is like the HTML <code><table></code> element; {@link android.widget.TableRow} is like 94 but for the cells, you can use any kind of {@link android.view.View} element. In this example, a 95 {@link android.widget.TextView} is used for each cell. In between some of the rows, there is also a 96 basic {@link android.view.View}, which is used to draw a horizontal line.</p> 100 {@link android.app.Activity#onCreate(Bundle) onCreate()} method: 107 <p>The {@link android.app.Activity#setContentView(int)} method loads the [all …]
|
/frameworks/base/docs/html/intl/ja/guide/topics/ |
D | fundamentals.jd | 8 <li>{@link android.app.Activity}</li> 9 <li>{@link android.app.Service}</li> 10 <li>{@link android.content.BroadcastReceiver}</li> 11 <li>{@link android.content.ContentProvider}</li> 12 <li>{@link android.content.Intent}</li> 83 …ィビティを組み合わせて全体としてのユーザー インターフェースを形成しますが、それぞれのアクティビティは相互に独立しています。各アクティビティは、{@link android.app.Activit… 94 ウィンドウの視覚的なコンテンツは、ビュー({@link android.view.View} 基本クラスの派生オブジェクト)の階層として提供されます。各ビューは、ウィンドウ内の特定の矩形領域を制御し… 98 ビューの階層は、<code>{@link android.app.Activity#setContentView Activity.setContentView()}</code> メソッドを使用し… 102 …ビス、ネットワーク経由でデータをフェッチするサービス、何かを計算してその結果をアクティビティに提供するサービスなどが考えられます。各サービスは、{@link android.app.Service… 120 アプリケーションでは、重要と思われるすべての連絡に応答できるよう、ブロードキャスト レシーバをいくつでも設定できます。すべてのレシーバは、{@link android.content.Broadca… [all …]
|
/frameworks/base/docs/html/guide/webapps/ |
D | webview.jd | 8 <li>Use {@link android.webkit.WebView} to display web pages in your Android application 31 <li>{@link android.webkit.WebView}</li> 32 <li>{@link android.webkit.WebSettings}</li> 33 <li>{@link android.webkit.WebViewClient}</li> 45 you can do it using {@link android.webkit.WebView}. The {@link android.webkit.WebView} class is an 46 extension of Android's {@link android.view.View} class that allows you to display web pages as a 48 browser, such as navigation controls or an address bar. All that {@link android.webkit.WebView} 51 <p>A common scenario in which using {@link android.webkit.WebView} is helpful is when you want to 53 or a user guide. Within your Android application, you can create an {@link android.app.Activity} 54 that contains a {@link android.webkit.WebView}, then use that to display your document that's [all …]
|
/frameworks/base/docs/html/guide/topics/fundamentals/ |
D | bound-services.jd | 3 parent.link=services.html 30 <li>{@link android.app.Service}</li> 31 <li>{@link android.content.ServiceConnection}</li> 32 <li>{@link android.os.IBinder}</li> 64 <p>A bound service is an implementation of the {@link android.app.Service} class that allows 66 service, you must implement the {@link android.app.Service#onBind onBind()} callback method. This 67 method returns an {@link android.os.IBinder} object that defines the programming interface that 76 started by calling {@link android.content.Context#startService startService()}, which allows the 77 service to run indefinitely, and also allow a client to bind to the service by calling {@link 81 explicitly stop the service, by calling {@link android.app.Service#stopSelf stopSelf()} or {@link [all …]
|
D | loaders.jd | 3 parent.link=activities.html 27 <li>{@link android.app.LoaderManager}</li> 28 <li>{@link android.content.Loader}</li> 47 <li>They are available to every {@link android.app.Activity} and {@link 68 <td>{@link android.app.LoaderManager}</td> 69 <td>An abstract class associated with an {@link android.app.Activity} or 70 {@link android.app.Fragment} for managing one or more {@link 72 longer-running operations in conjunction with the {@link android.app.Activity} 73 or {@link android.app.Fragment} lifecycle; the most common use of this is with a 74 {@link android.content.CursorLoader}, however applications are free to write [all …]
|
D | services.jd | 40 <li>{@link android.app.Service}</li> 41 <li>{@link android.app.IntentService}</li> 67 <p>A {@link android.app.Service} is an application component that can perform 80 calling {@link android.content.Context#startService startService()}. Once started, a service 86 <dd>A service is "bound" when an application component binds to it by calling {@link 96 It's simply a matter of whether you implement a couple callback methods: {@link 97 android.app.Service#onStartCommand onStartCommand()} to allow components to start it and {@link 102 an activity—by starting it with an {@link android.content.Intent}. However, you can declare 127 a thread in {@link android.app.Activity#onCreate onCreate()}, start running it in {@link 128 android.app.Activity#onStart onStart()}, then stop it in {@link android.app.Activity#onStop [all …]
|
/frameworks/base/docs/html/sdk/ |
D | android-4.0.jd | 140 <p>The contact APIs defined by the {@link android.provider.ContactsContract} provider have been 149 {@link android.provider.ContactsContract.Profile} table. Social apps that maintain a user identity 150 can contribute to the user's profile data by creating a new {@link 151 android.provider.ContactsContract.RawContacts} entry within the {@link 153 not belong in the traditional raw contacts table defined by the {@link 155 the table at {@link android.provider.ContactsContract.Profile#CONTENT_RAW_CONTACTS_URI}. Raw 158 <p>Adding a new raw contact for the profile requires the {@link 160 table, you must request the {@link android.Manifest.permission#READ_PROFILE} permission. However, 168 <p>The {@link android.provider.ContactsContract.Intents#INVITE_CONTACT} intent action allows an app 177 app responds to the {@link android.provider.ContactsContract.Intents#INVITE_CONTACT} intent by [all …]
|
D | android-3.1.jd | 183 <p>The USB APIs are available in the package {@link android.hardware.usb}. The 184 central class is {@link android.hardware.usb.UsbManager}, which provides 187 {@link android.hardware.usb.UsbManager} and then query for the list of attached 189 {@link android.hardware.usb.UsbManager} also declares intent actions that the 196 <li>{@link android.hardware.usb.UsbDevice}, a class representing external 199 <li>{@link android.hardware.usb.UsbAccessory}, representing external hardware 202 <li>{@link android.hardware.usb.UsbInterface} and {@link 205 <li>{@link android.hardware.usb.UsbDeviceConnection} and {@link 208 <li>{@link android.hardware.usb.UsbConstants}, which provides constants for 255 <p>The MTP API is available in the {@link android.mtp} package and provides [all …]
|
D | android-2.3.jd | 66 function toggleDiv(link) { 67 var toggleable = $(link).parent(); 135 <p>The SIP API is available in the {@link android.net.sip android.net.sip} 136 package. The key class is {@link android.net.sip.SipManager}, which applications 140 {@link android.net.sip.SipManager} to create generic SIP connections.</p> 144 applications should use the {@link android.net.sip.SipManager#isApiSupported 177 <p>The NFC API is available in the {@link android.nfc} package. The key classes are: </p> 179 <ul><li>{@link android.nfc.NfcAdapter}, which represents the NFC hardware on the device.</li> 180 <li>{@link android.nfc.NdefMessage}, which represents an NDEF data message, 182 devices and tags. Applications can receive these messages from {@link [all …]
|
D | android-3.0.jd | 128 fragment, you must extend the {@link android.app.Fragment} class and implement several lifecycle 129 callback methods, similar to an {@link android.app.Activity}. You can then combine multiple 153 <p>To manage the fragments in your activity, you must use the {@link 158 <p>To perform a transaction, such as add or remove a fragment, you must create a {@link 159 android.app.FragmentTransaction}. You can then call methods such as {@link 160 android.app.FragmentTransaction#add add()} {@link android.app.FragmentTransaction#remove 161 remove()}, or {@link android.app.FragmentTransaction#replace replace()}. Once you've applied all 162 the changes you want to perform for the transaction, you must call {@link 199 which the system delivers to your activity's {@link android.app.Activity#onOptionsItemSelected 204 attribute, then call {@link android.app.ActionBar#setDisplayUseLogoEnabled [all …]
|
/frameworks/base/docs/html/guide/topics/wireless/ |
D | bluetooth.jd | 37 <li>{@link android.bluetooth.BluetoothAdapter}</li> 38 <li>{@link android.bluetooth.BluetoothDevice}</li> 39 <li>{@link android.bluetooth.BluetoothSocket}</li> 40 <li>{@link android.bluetooth.BluetoothServerSocket}</li> 78 <p>All of the Bluetooth APIs are available in the {@link android.bluetooth} 83 <dt>{@link android.bluetooth.BluetoothAdapter}</dt> 85 {@link android.bluetooth.BluetoothAdapter} is the entry-point for all Bluetooth 88 devices, instantiate a {@link android.bluetooth.BluetoothDevice} using a known 89 MAC address, and create a {@link android.bluetooth.BluetoothServerSocket} to 93 <dt>{@link android.bluetooth.BluetoothDevice}</dt> [all …]
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | drag-drop.jd | 3 parent.link=index.html 70 {@link android.view.View View} 73 {@link android.view.View.OnLongClickListener OnLongClickListener} 76 {@link android.view.View.OnDragListener OnDragListener} 79 {@link android.view.DragEvent DragEvent} 82 {@link android.view.View.DragShadowBuilder DragShadowBuilder} 85 {@link android.content.ClipData ClipData} 88 {@link android.content.ClipDescription ClipDescription} 133 drag event callback methods associated with the {@link android.view.View} objects in the layout. 138 {@link android.view.View.OnDragListener}. You set the drag event listener object for a View [all …]
|
/frameworks/base/docs/html/guide/topics/testing/ |
D | service_testing.jd | 3 parent.link=index.html 25 <li>{@link android.test.InstrumentationTestRunner}</li> 26 <li>{@link android.test.ServiceTestCase}</li> 27 <li>{@link android.test.mock.MockApplication}</li> 28 <li>{@link android.test.RenamingDelegatingContext}</li> 56 {@link android.test.ServiceTestCase}. Since the Service class assumes that it is separate 70 {@link android.app.Service#onCreate() onCreate()} or 71 {@link android.app.Service#onStartCommand(Intent, int, int) onStartCommand()} do not normally 76 Most other testing is facilitated by the methods in the {@link android.test.ServiceTestCase} 77 test case class. For example, the {@link android.test.ServiceTestCase#getService()} method [all …]
|
/frameworks/base/docs/html/guide/topics/graphics/ |
D | prop-animation.jd | 3 parent.link=animation.html 119 <p>The {@link android.animation.ValueAnimator} object keeps track of your animation's timing, 123 <p>The {@link android.animation.ValueAnimator} encapsulates a {@link 124 android.animation.TimeInterpolator}, which defines animation interpolation, and a {@link 126 animated. For example, in Figure 2, the {@link android.animation.TimeInterpolator} used would be 127 {@link android.view.animation.AccelerateDecelerateInterpolator} and the {@link 128 android.animation.TypeEvaluator} would be {@link android.animation.IntEvaluator}.</p> 130 <p>To start an animation, create a {@link android.animation.ValueAnimator} and give it the 132 the animation. When you call {@link android.animation.ValueAnimator#start start()} the animation 133 …begins. During the whole animation, the {@link android.animation.ValueAnimator} calculates an <em>… [all …]
|