/frameworks/base/core/tests/coretests/src/android/view/ |
BigCacheTest.java | 17 package android.view; 19 import android.view.BigCache; 24 import android.view.View; 25 import android.view.ViewConfiguration; 34 private View mTiny; 35 private View mLarge; 71 private Bitmap createCacheForView(final View view) { 75 view.setDrawingCacheEnabled(true) [all...] |
Disabled.java | 17 package android.view; 23 import android.view.View; 24 import android.view.View.OnClickListener; 28 * Exercise View's disabled state. 45 public void onClick(View v) {
|
DisabledLongpressTest.java | 17 package android.view; 19 import android.view.Longpress; 27 import android.view.View; 28 import android.view.View.OnLongClickListener; 31 * Exercises {@link android.view.View}'s longpress plumbing by testing the 35 private View mSimpleView; 49 public boolean onLongClick(View v) [all...] |
IncludeTest.java | 17 package android.view; 19 import android.view.Include; 24 import android.view.View; 25 import android.view.ViewGroup; 41 final View button1 = activity.findViewById(R.id.included_button); 44 final View button2 = activity.findViewById(R.id.included_button_overriden); 52 final View button1 = activity.findViewById(R.id.included_button); 53 final View button2 = activity.findViewById(R.id.included_button_overriden); 64 final View button1 = activity.findViewById(R.id.included_button_visibility) [all...] |
/packages/apps/AlarmClock/src/com/android/alarmclock/ |
ClockPicker.java | 22 import android.view.LayoutInflater; 23 import android.view.View; 24 import android.view.ViewGroup; 25 import android.view.Window; 40 private View mClock; 62 mClockLayout.setOnClickListener(new View.OnClickListener() { 63 public void onClick(View v) { 71 public void onItemSelected(AdapterView parent, View v, int position, long id) { 80 public void onItemClick(AdapterView parent, View v, int position, long id) [all...] |
/frameworks/base/core/java/android/widget/ |
ViewAnimator.java | 23 import android.view.View; 24 import android.view.ViewGroup; 25 import android.view.animation.Animation; 26 import android.view.animation.AnimationUtils; 89 * Sets which child view will be displayed. 91 * @param whichChild the index of the child view to display 110 * Returns the index of the currently displayed child view. 140 final View child = getChildAt(i); 146 child.setVisibility(View.VISIBLE) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
DensityActivity.java | 33 import android.view.LayoutInflater; 34 import android.view.View; 115 private View scrollWrap(View view) { 117 scroller.addView(view, new ScrollView.LayoutParams(ScrollView.LayoutParams.MATCH_PARENT, 138 View view = new View(this) local 150 View view = new View(this); local 164 ScaledBitmapView view = new ScaledBitmapView(this, bitmap); local 172 View view = new View(this); local [all...] |
/frameworks/base/core/java/android/view/ |
TouchDelegate.java | 17 package android.view; 20 import android.view.MotionEvent; 21 import android.view.View; 22 import android.view.ViewConfiguration; 25 * Helper class to handle situations where you want a view to have a larger touch area than its 26 * actual view bounds. The view whose touch area is changed is called the delegate view. This 29 * view itself [all...] |
FocusFinder.java | 17 package android.view; 24 * The algorithm used for finding the next focusable view in a given direction 25 * from a view that currently has focus. 52 * Find the next view to take focus in root's descendants, starting from the view 57 * @return The next focusable view, or null if none exists. 59 public final View findNextFocus(ViewGroup root, View focused, int direction) { 63 View userSetNextFocus = focused.findUserSetNextFocus(root, direction); 77 case View.FOCUS_RIGHT [all...] |
ViewManager.java | 17 package android.view; 24 public void addView(View view, ViewGroup.LayoutParams params); 25 public void updateViewLayout(View view, ViewGroup.LayoutParams params); 26 public void removeView(View view);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListOfItemsTallerThanScreenTest.java | 23 import android.view.View; 24 import android.view.KeyEvent; 55 final View view = mListView.getSelectedView(); local 56 assertTrue(view.isSelected()); 59 view.getTop()); 61 assertTrue("view must be taller than screen for this test to be worth anything", 62 view.getBottom() > mListView.getBottom()); 64 // scroll down until next view is peeking ahea [all...] |
/frameworks/base/docs/html/guide/topics/ui/ |
index.jd | 9 <li>{@link android.view.View}</li> 10 <li>{@link android.view.ViewGroup}</li> 16 <li><a href="#ViewHierarchy">View Hierarchy</a></li> 31 <p>In an Android application, the user interface is built using {@link android.view.View} and 32 {@link android.view.ViewGroup} objects. There are many types of views and view groups, each of which 33 is a descendant of the {@link android.view.View} class.</p [all...] |
ui-events.jd | 25 the specific View object that the user interacts with. The View class provides the means to do so.</p> 27 <p>Within the various View classes that you'll use to compose your layout, you may notice several public callback 29 respective action occurs on that object. For instance, when a View (such as a Button) is touched, 31 the class and override the method. However, extending every View object 32 in order to handle such an event would not be practical. This is why the View class also contains 37 come a time when you do want to extend a View class, in order to build a custom component. 45 <p>An event listener is an interface in the {@link android.view.View} class that contains a single 46 callback method. These methods will be called by the Android framework when the View to which the listener ha [all...] |
/external/webkit/WebCore/platform/mac/ |
WidgetMac.mm | 67 static void safeRemoveFromSuperview(NSView *view) 69 // If the the view is the first responder, then set the window's first responder to nil so 70 // we don't leave the window pointing to a view that's no longer in it. 71 NSWindow *window = [view window]; 73 if ([firstResponder isKindOfClass:[NSView class]] && [(NSView *)firstResponder isDescendantOf:view]) 79 [view removeFromSuperview]; 83 Widget::Widget(NSView *view) 86 init(view); 106 NSView *view = [platformWidget() _webcore_effectiveFirstResponder]; 108 page->chrome()->focusNSView(view); [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
HorizontalFocusSearchTest.java | 25 import android.view.View; 74 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_UP)); 76 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_DOWN)); 78 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_LEFT)); 82 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_RIGHT)); 87 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_UP)); 90 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_DOWN)); 93 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_LEFT)); 96 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_RIGHT)) [all...] |
ScrollingThroughListOfFocusablesTest.java | 23 import android.view.KeyEvent; 76 InternalSelectionView view = mActivity.getSelectedView(); local 78 assertInternallySelectedRowOnScreen(view, i); 89 InternalSelectionView view = (InternalSelectionView) local 94 assertTrue("bottom of view should be just above fading edge", 95 view.getBottom() >= fadingEdge - 1 && 96 view.getBottom() <= fadingEdge); 100 // make sure fading edge is the expected view 102 assertEquals("should be a second view visible due to the fading edge", 139 InternalSelectionView view = mActivity.getSelectedView() local 167 InternalSelectionView view = mActivity.getSelectedView(); local 174 InternalSelectionView view = mActivity.getSelectedView(); local 188 InternalSelectionView view = mActivity.getSelectedView(); local 200 final InternalSelectionView view = local [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
ViewHelper.java | 19 import android.view.View; 26 private View mView; 28 void setView(View view) { 29 mView = view; 35 if (v != null) v.setVisibility(View.VISIBLE);
|
/packages/apps/Settings/src/com/android/settings/ |
DateTimeSettingsSetupWizard.java | 20 import android.view.View; 21 import android.view.Window; 22 import android.view.View.OnClickListener; 26 private View mNextButton; 37 public void onClick(View v) {
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
TextSwitcher1.java | 17 package com.example.android.apis.view; 23 import android.view.Gravity; 24 import android.view.View; 25 import android.view.animation.Animation; 26 import android.view.animation.AnimationUtils; 36 View.OnClickListener { 64 public void onClick(View v) { 73 public View makeView() {
|
InternalSelectionFocus.java | 17 package com.example.android.apis.view; 21 import android.view.ViewGroup; 25 * {@link android.view.View#requestFocus(int, android.graphics.Rect)} 27 * {@link android.view.View#onFocusChanged(boolean, int, android.graphics.Rect)} 29 * rectangle of the previously focused view. The view taking focus can use this 36 * Were {@link InternalSelectionView} not to override {@link android.view.View#getFocusedRect}, o [all...] |
/frameworks/base/core/java/android/webkit/ |
PluginStub.java | 19 import android.view.View; 31 * Return a custom embedded view to draw the plugin. 34 * @return A custom View that will be managed by WebView. 36 public abstract View getEmbeddedView(int NPP, Context context); 39 * Return a custom full-screen view to be displayed when the user requests 41 * to display this View as completely full-screen. 44 * @return A custom View that will be managed by the application. 46 public abstract View getFullScreenView(int NPP, Context context);
|
/packages/apps/Music/src/com/android/music/ |
DeleteItems.java | 22 import android.view.View; 23 import android.view.Window; 24 import android.view.WindowManager; 48 ((Button)findViewById(R.id.cancel)).setOnClickListener(new View.OnClickListener() { 49 public void onClick(View v) { 61 private View.OnClickListener mButtonClicked = new View.OnClickListener() { 62 public void onClick(View v) {
|
/packages/apps/Stk/src/com/android/stk/ |
StkMenuAdapter.java | 22 import android.view.LayoutInflater; 23 import android.view.View; 24 import android.view.ViewGroup; 32 * Icon list view adapter to show the list of STK items. 46 public View getView(int position, View convertView, ViewGroup parent) { 59 imageView.setVisibility(View.GONE); 62 imageView.setVisibility(View.VISIBLE);
|
/frameworks/base/core/java/android/text/style/ |
package.html | 4 <p>Provides classes used to view or change the style of a span of text in a View object. 7 SpannableStringBuilder.setSpan()} to add a new styled span to a string in a View object.
|
/frameworks/base/core/java/android/view/inputmethod/ |
package.html | 4 as soft keyboards). See {@link android.view.inputmethod.InputMethodManager} for 9 {@link android.view.inputmethod.InputConnection} class to allow the current 10 input method to interact with your view.
|