Home
last modified time | relevance | path

Searched refs:views (Results 1 – 25 of 158) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupChildrenTest.java140 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/appwidget/
DAppWidgetHost.java60 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument
61 if (isLocalBinder() && views != null) { in updateAppWidget()
62 views = views.clone(); in updateAppWidget()
63 views.setUser(mUser); in updateAppWidget()
67 msg.obj = views; in updateAppWidget()
371 RemoteViews views; in createView() local
373 views = sService.getAppWidgetViews(appWidgetId); in createView()
374 if (views != null) { in createView()
375 views.setUser(mUser); in createView()
380 view.updateAppWidget(views); in createView()
[all …]
DAppWidgetManager.java363 public void updateAppWidget(int[] appWidgetIds, RemoteViews views) { in updateAppWidget() argument
365 sService.updateAppWidgetIds(appWidgetIds, views); in updateAppWidget()
431 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument
432 updateAppWidget(new int[] { appWidgetId }, views); in updateAppWidget()
459 public void partiallyUpdateAppWidget(int[] appWidgetIds, RemoteViews views) { in partiallyUpdateAppWidget() argument
461 sService.partiallyUpdateAppWidgetIds(appWidgetIds, views); in partiallyUpdateAppWidget()
491 public void partiallyUpdateAppWidget(int appWidgetId, RemoteViews views) { in partiallyUpdateAppWidget() argument
492 partiallyUpdateAppWidget(new int[] { appWidgetId }, views); in partiallyUpdateAppWidget()
508 public void updateAppWidget(ComponentName provider, RemoteViews views) { in updateAppWidget() argument
510 sService.updateAppWidgetProvider(provider, views); in updateAppWidget()
/frameworks/base/core/java/android/widget/
DSuggestionsAdapter.java309 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/tests/appwidgets/AppWidgetProviderTest/src/com/android/tests/appwidgetprovider/
DTestAppWidgetProvider.java50 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/docs/html/design/patterns/
Dswipe-views.jd6 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.
27 … addition, support the use of edge swipes to immediately navigate between views when content scrol…
54 <p>If your app uses action bar tabs, use swipe to navigate between the different views.</p>
60 <p>Use swipe to quickly navigate between detail views or tabs.</p>
63 <p>Transition between the views as the user performs the swipe gesture. Do not wait for the
64 gesture to complete and then transition between views.</p>
75 …<p>For more details on how to build swipe views, read the developer documentation on <a href="{@do…
84 <p>For information about how to create swipe views, read
Dapp-structure.jd10 <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
112 monotony of simple list views.</p>
131 <p>Even though the number of vertical navigation steps from the top level down to the detail views
[all …]
Dmulti-pane-layouts.jd7 …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
108 <p>Identify the most appropriate method for the panels in your compound views to reorganize
112 <p>Look for opportunities to consolidate your views into multi-panel compound views.</p>
Dactionbar.jd49 If your app displays data in different views, this segment of the action bar allows users to switch
50 views. Examples of view-switching controls are drop-down menus or tab controls.
55 If your app doesn't support different views, you can also use this space to display non-interactive
105 <p>To allow the user to quickly switch between the views your app provides, use tabs or a spinner in
143 <p>If your app displays data in different views, the action bar has three different controls to all…
146views concurrently and make it easy to explore and switch between them. Tabs may be fixed, where a…
152 <li>You expect your app's users to switch views frequently.</li>
153 <li>You want the user to be highly aware of the alternate views.</li>
162 …uick changes between two or three app views. Fixed tabs should always allow the user to navigate b…
179views or if you're unsure how many views will be displayed because your app inserts views dynamica…
[all …]
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetProvider.java58 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/
DAdjacentListsWithAdjacentISVsInside.java85 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/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/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl49 void updateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); in updateAppWidgetIds() argument
52 void partiallyUpdateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); in partiallyUpdateAppWidgetIds() argument
53 void updateAppWidgetProvider(in ComponentName provider, in RemoteViews views); in updateAppWidgetProvider() argument
DIAppWidgetHost.aidl25 void updateAppWidget(int appWidgetId, in RemoteViews views); in updateAppWidget() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DDelegateViewHelper.java115 public void setInitialTouchRegion(View ... views) {
118 for (int i = 0; i < views.length; i++) {
119 View view = views[i];
/frameworks/base/docs/html/training/animation/
Dindex.jd59 …Learn how to crossfade between two overlapping views. This lesson shows you how to crossfade a pro…
72 Learn how to animate between two views with a flipping motion.
78 Learn how to enlarge views with a touch-to-zoom animation.
84 …Learn how to enable built-in animations when adding, removing, or updating child views in a layout.
Dcrossfade.jd14 <a href="#views">Create the Views</a>
38 another. This animation is useful for situations where you want to switch content or views
74 <h2 id="views">
78 Create the two views that you want to crossfade. The following example creates a progress
115 <li>Create member variables for the views that you want to crossfade. You need
116 these references later when modifying the views during the animation.
163 Now that the views are properly set up, crossfade them by doing the following:
/frameworks/base/services/java/com/android/server/
DAppWidgetService.java313 public void partiallyUpdateAppWidgetIds(int[] appWidgetIds, RemoteViews views) in partiallyUpdateAppWidgetIds() argument
316 appWidgetIds, views); in partiallyUpdateAppWidgetIds()
347 public void updateAppWidgetIds(int[] appWidgetIds, RemoteViews views) throws RemoteException { in updateAppWidgetIds() argument
348 getImplForUser(getCallingOrCurrentUserId()).updateAppWidgetIds(appWidgetIds, views); in updateAppWidgetIds()
352 public void updateAppWidgetProvider(ComponentName provider, RemoteViews views) in updateAppWidgetProvider() argument
354 getImplForUser(getCallingOrCurrentUserId()).updateAppWidgetProvider(provider, views); in updateAppWidgetProvider()
DAppWidgetServiceImpl.java133 RemoteViews views; field in AppWidgetServiceImpl.AppWidgetId
376 if (id.views != null) { in dumpAppWidgetId()
377 pw.print(" views="); pw.println(id.views); in dumpAppWidgetId()
862 return cloneIfLocalBinder(id.views); in getAppWidgetViews()
884 public void updateAppWidgetIds(int[] appWidgetIds, RemoteViews views) { in updateAppWidgetIds() argument
888 if (DBG) log("updateAppWidgetIds views: " + views); in updateAppWidgetIds()
890 if (views != null) { in updateAppWidgetIds()
891 bitmapMemoryUsage = views.estimateMemoryUsage(); in updateAppWidgetIds()
909 updateAppWidgetInstanceLocked(id, views); in updateAppWidgetIds()
964 public void partiallyUpdateAppWidgetIds(int[] appWidgetIds, RemoteViews views) { in partiallyUpdateAppWidgetIds() argument
[all …]
/frameworks/base/docs/html/guide/topics/graphics/
Dhardware-accel.jd56 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/
Drelative.jd21 <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/support/v4/java/android/support/v4/app/
DNotificationCompat.java339 public Builder setContent(RemoteViews views) { in setContent() argument
340 mNotification.contentView = views; in setContent()
402 public Builder setTicker(CharSequence tickerText, RemoteViews views) { in setTicker() argument
404 mTickerView = views; in setTicker()
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java632 View[] views = new View[4]; in setBackground() local
639 views[pos] = topPanel; in setBackground()
649 views[pos] = (contentPanel.getVisibility() == View.GONE) in setBackground()
654 views[pos] = customPanel; in setBackground()
659 views[pos] = buttonPanel; in setBackground()
664 for (pos=0; pos<views.length; pos++) { in setBackground()
665 View v = views[pos]; in setBackground()
/frameworks/base/docs/html/design/style/
Ddevices-displays.jd22 <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/docs/html/training/implementing-navigation/
Dlateral.jd25 <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…

1234567