/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewGroupChildrenTest.java | 140 final View[] views = new View[24]; in testRemoveChildren() local 142 for (int i = 0; i < views.length; i++) { in testRemoveChildren() 143 views[i] = createView(String.valueOf(i + 1)); in testRemoveChildren() 144 mGroup.addView(views[i]); in testRemoveChildren() 147 for (int i = views.length - 1; i >= 0; i--) { in testRemoveChildren() 150 ViewAsserts.assertGroupNotContains(mGroup, views[i]); in testRemoveChildren() 151 assertNull(views[i].getParent()); in testRemoveChildren() 161 final View[] views = new View[24]; in testRemoveChildrenBulk() local 163 for (int i = 0; i < views.length; i++) { in testRemoveChildrenBulk() 164 views[i] = createView(String.valueOf(i + 1)); in testRemoveChildrenBulk() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SuggestionsAdapter.java | 309 ChildViewCache views = (ChildViewCache) view.getTag(); in bindView() local 315 if (views.mText1 != null) { in bindView() 317 setViewText(views.mText1, text1); in bindView() 319 if (views.mText2 != null) { in bindView() 331 if (views.mText1 != null) { in bindView() 332 views.mText1.setSingleLine(false); in bindView() 333 views.mText1.setMaxLines(2); in bindView() 336 if (views.mText1 != null) { in bindView() 337 views.mText1.setSingleLine(true); in bindView() 338 views.mText1.setMaxLines(1); in bindView() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 331 public void updateAppWidget(int[] appWidgetIds, RemoteViews views) { in updateAppWidget() argument 333 sService.updateAppWidgetIds(appWidgetIds, views); in updateAppWidget() 399 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument 400 updateAppWidget(new int[] { appWidgetId }, views); in updateAppWidget() 424 public void partiallyUpdateAppWidget(int[] appWidgetIds, RemoteViews views) { in partiallyUpdateAppWidget() argument 426 sService.partiallyUpdateAppWidgetIds(appWidgetIds, views); in partiallyUpdateAppWidget() 452 public void partiallyUpdateAppWidget(int appWidgetId, RemoteViews views) { in partiallyUpdateAppWidget() argument 453 partiallyUpdateAppWidget(new int[] { appWidgetId }, views); in partiallyUpdateAppWidget() 469 public void updateAppWidget(ComponentName provider, RemoteViews views) { in updateAppWidget() argument 471 sService.updateAppWidgetProvider(provider, views); in updateAppWidget()
|
D | AppWidgetHost.java | 54 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument 57 msg.obj = views; in updateAppWidget() 232 RemoteViews views; in createView() local 234 views = sService.getAppWidgetViews(appWidgetId); in createView() 238 view.updateAppWidget(views); in createView() 277 void updateAppWidgetView(int appWidgetId, RemoteViews views) { in updateAppWidgetView() argument 283 v.updateAppWidget(views); in updateAppWidgetView()
|
/frameworks/base/tests/appwidgets/AppWidgetProviderTest/src/com/android/tests/appwidgetprovider/ |
D | TestAppWidgetProvider.java | 50 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.test_appwidget); in onReceive() local 51 views.setTextViewText(R.id.oh_hai_text, "hai: " + SystemClock.elapsedRealtime()); in onReceive() 53 gm.updateAppWidget(appWidgetIds, views); in onReceive() 56 "com.android.tests.appwidgetprovider.TestAppWidgetProvider"), views); in onReceive()
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
D | TestAppWidgetProvider.java | 58 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.test_appwidget); in onReceive() local 59 views.setTextViewText(R.id.oh_hai_text, prefix + ": " + SystemClock.elapsedRealtime()); in onReceive() 61 gm.updateAppWidget(appWidgetIds, views); in onReceive() 64 "com.android.tests.appwidgethost.TestAppWidgetProvider"), views); in onReceive()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | AdjacentListsWithAdjacentISVsInside.java | 85 private static View combineAdjacent(View... views) { in combineAdjacent() argument 86 if (views.length < 2) { in combineAdjacent() 90 final LinearLayout ll = new LinearLayout(views[0].getContext()); in combineAdjacent() 95 for (View view : views) { in combineAdjacent()
|
/frameworks/base/docs/html/design/patterns/ |
D | swipe-views.jd | 6 vertical hierarchies and make access to related data items faster and more enjoyable. Swipe views 9 <h2 id="detail-views">Swiping Between Detail Views</h2> 17 Master (left) and detail (right) views. 50 <p>If your app uses action bar tabs, use swipe to navigate between the different views.</p> 57 <p>Use swipe to quickly navigate between detail views or tabs.</p> 60 <p>Transition between the views as the user performs the swipe gesture. Do not wait for the 61 gesture to complete and then transition between views.</p>
|
D | app-structure.jd | 10 <li>Apps such as Gmail or the Play Store that combine a broad set of data views with deep navigatio… 15 <p>A typical Android app consists of top level and detail/edit views. If the navigation hierarchy is 16 deep and complex, category views connect top level and detail views.</p> 26 <h4>Top level views</h4> 27 …he top level of the app typically consists of the different views that your app supports. The views 32 <h4>Category views</h4> 33 <p>Category views allow you to drill deeper into your data.</p> 80 <li>If your top level consists of multiple views, or if switching between data from different user 109 monotony of simple list views.</p> 128 <p>Even though the number of vertical navigation steps from the top level down to the detail views … [all …]
|
D | multi-pane-layouts.jd | 7 …ls</em> are a great way for your app to achieve this. They allow you to combine multiple views into 10 <h2 id="combining-views">Combining Multiple Views Into One</h2> 19 list and detail views into a single compound view. This uses the additional space more efficiently 100 <p>Identify the most appropriate method for the panels in your compound views to reorganize 104 <p>Look for opportunities to consolidate your views into multi-panel compound views.</p>
|
D | actionbar.jd | 54 If your app displays data in different views, this segment of the action bar allows users to switch 55 views. Examples of view-switching controls are drop-down menus or tab controls. 60 If your app doesn't support different views, you can also use this space to display non-interactive 110 <p>To allow the user to quickly switch between the views your app provides, use tabs or a spinner in 148 <p><em>Tabs</em> display app views concurrently and make it easy to explore and switch between them… 149 if you expect your users to switch views frequently.</p> 162 <p>Use scrollable tabs if you have a large number of views or if you're unsure how many views will … 163 displayed because your app inserts views dynamically (for example, open chats in a messaging app 165 between the views by swiping left or right on the content area as well as swiping the tabs 206 <p>A <em>spinner</em> is a drop-down menu that allows users to switch between views of your app. </… [all …]
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | binding.jd | 16 <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/core/java/com/android/internal/appwidget/ |
D | IAppWidgetService.aidl | 45 void updateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); in updateAppWidgetIds() argument 48 void partiallyUpdateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); in partiallyUpdateAppWidgetIds() argument 49 void updateAppWidgetProvider(in ComponentName provider, in RemoteViews views); in updateAppWidgetProvider() argument
|
D | IAppWidgetHost.aidl | 25 void updateAppWidget(int appWidgetId, in RemoteViews views); in updateAppWidget() argument
|
/frameworks/base/services/java/com/android/server/ |
D | AppWidgetService.java | 87 RemoteViews views; field in AppWidgetService.AppWidgetId 312 public void partiallyUpdateAppWidgetIds(int[] appWidgetIds, RemoteViews views) in partiallyUpdateAppWidgetIds() argument 314 getImplForUser().partiallyUpdateAppWidgetIds(appWidgetIds, views); in partiallyUpdateAppWidgetIds() 328 public void updateAppWidgetIds(int[] appWidgetIds, RemoteViews views) throws RemoteException { in updateAppWidgetIds() argument 329 getImplForUser().updateAppWidgetIds(appWidgetIds, views); in updateAppWidgetIds() 333 public void updateAppWidgetProvider(ComponentName provider, RemoteViews views) in updateAppWidgetProvider() argument 335 getImplForUser().updateAppWidgetProvider(provider, views); in updateAppWidgetProvider()
|
D | AppWidgetServiceImpl.java | 115 RemoteViews views; field in AppWidgetServiceImpl.AppWidgetId 329 if (id.views != null) { in dumpAppWidgetId() 330 pw.print(" views="); pw.println(id.views); in dumpAppWidgetId() 796 return id.views; in getAppWidgetViews() 817 public void updateAppWidgetIds(int[] appWidgetIds, RemoteViews views) { in updateAppWidgetIds() argument 822 int bitmapMemoryUsage = views.estimateMemoryUsage(); in updateAppWidgetIds() 839 updateAppWidgetInstanceLocked(id, views); in updateAppWidgetIds() 876 public void partiallyUpdateAppWidgetIds(int[] appWidgetIds, RemoteViews views) { in partiallyUpdateAppWidgetIds() argument 889 updateAppWidgetInstanceLocked(id, views, true); in partiallyUpdateAppWidgetIds() 912 public void updateAppWidgetProvider(ComponentName provider, RemoteViews views) { in updateAppWidgetProvider() argument [all …]
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | NotificationCompat.java | 194 public Builder setContent(RemoteViews views) { in setContent() argument 195 mNotification.contentView = views; in setContent() 257 public Builder setTicker(CharSequence tickerText, RemoteViews views) { in setTicker() argument 259 mTickerView = views; in setTicker()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DelegateViewHelper.java | 115 public void setInitialTouchRegion(View ... views) { 118 for (int i = 0; i < views.length; i++) { 119 View view = views[i];
|
/frameworks/base/docs/html/guide/topics/graphics/ |
D | hardware-accel.jd | 56 globally for your entire application. If your application uses only standard views and {@link 59 operations, turning it on might affect some of your applications that use custom views or drawing 147 accelerated, especially for things such as custom views. This is particularly useful if your 175 draws views without hardware acceleration as well. The following sections describe the 179 <p>In the software drawing model, views are drawn with the following two steps:</p> 198 Android system redraws views when they intersect the dirty region, a view whose content you 203 views whenever you modify data or state that affects the view’s drawing code.</li> 206 <p class="note"><strong>Note</strong>: Android views automatically call {@link 212 android.view.View#draw draw()} to request screen updates and to render views, but handles the 216 display lists for views marked dirty by an {@link android.view.View#invalidate invalidate()} [all …]
|
/frameworks/base/docs/html/guide/topics/ui/layout/ |
D | relative.jd | 21 <p>{@link android.widget.RelativeLayout} is a view group that displays child views in relative 36 <p>{@link android.widget.RelativeLayout} lets child views specify their position relative to the 39 views are drawn at the top-left of the layout, so you must define the position of each view 43 <p>Some of the many layout properties available to views in a {@link android.widget.RelativeLayout} 71 <p>In your XML layout, dependencies against other views in the layout can be declared in any order.
|
/frameworks/base/docs/html/design/style/ |
D | devices-displays.jd | 22 <p>On larger devices, take advantage of extra screen real estate. Create compound views that combine 23 multiple views to reveal more content and ease navigation.</p>
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AlertController.java | 620 View[] views = new View[4]; in setBackground() local 627 views[pos] = topPanel; in setBackground() 637 views[pos] = (contentPanel.getVisibility() == View.GONE) in setBackground() 642 views[pos] = customPanel; in setBackground() 647 views[pos] = buttonPanel; in setBackground() 652 for (pos=0; pos<views.length; pos++) { in setBackground() 653 View v = views[pos]; in setBackground()
|
/frameworks/base/docs/html/training/implementing-navigation/ |
D | lateral.jd | 25 <li><a href="{@docRoot}design/patterns/swipe-views.html">Android Design: Swipe Views</a></li> 40 …l navigation patterns are tabs and horizontal paging (also known as swipe views). This pattern and… 46 …get.TabHost}. For details, see the <a href="{@docRoot}resources/tutorials/views/hello-tabwidget.ht… 122 <p>Horizontal paging, or swipe views, allow users to <a href="{@docRoot}design/patterns/swipe-views… 217 …ns in Android 4.0 for tabs is to <a href="{@docRoot}design/patterns/swipe-views.html">allow swipin…
|
/frameworks/base/docs/html/training/custom-views/ |
D | index.jd | 43 sometimes your app has unique needs that aren’t covered by the built-in views. This class shows you 45 own views that are robust and reusable.</p>
|
/frameworks/base/docs/html/design/building-blocks/ |
D | grid-lists.jd | 6 <p>Grid lists are an alternative to standard list views. They are best suited for showing data sets 52 <p>Don't use scrolling tabs as a means to switch views in conjunction with horizontally scrolling g…
|