/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/ |
D | CardFlip.java | 67 RelativeLayout mLayout; field in CardFlip 91 mLayout = (RelativeLayout)findViewById(R.id.main_relative_layout); in onCreate() 92 ViewTreeObserver observer = mLayout.getViewTreeObserver(); in onCreate() 97 mLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onCreate() 99 mLayout.getViewTreeObserver().removeGlobalOnLayoutListener(this); in onCreate() 102 mCardHeight = mLayout.getHeight(); in onCreate() 103 mCardWidth = mLayout.getWidth() / 2; in onCreate() 128 mLayout.addView(view, params); in addNewCard() 186 mLayout.bringChildToFront(cardView); in rotateCardView() 187 mLayout.requestLayout(); in rotateCardView() [all …]
|
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/ |
D | MainActivity.java | 60 private View mLayout; field in MainActivity 66 mLayout = findViewById(R.id.main_layout); in onCreate() 86 Snackbar.make(mLayout, "Camera permission was granted. Starting preview.", in onRequestPermissionsResult() 92 Snackbar.make(mLayout, "Camera permission request was denied.", in onRequestPermissionsResult() 106 Snackbar.make(mLayout, in showCameraPreview() 129 Snackbar.make(mLayout, "Camera access is required to display the camera preview.", in requestCameraPermission() 141 Snackbar.make(mLayout, in requestCameraPermission()
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | CardStreamFragment.java | 41 private CardStreamLinearLayout mLayout = null; field in CardStreamFragment 61 mLayout = (CardStreamLinearLayout) view.findViewById(R.id.card_stream); in onCreateView() 62 mLayout.setOnDismissListener(mCardDismissListener); in onCreateView() 107 mLayout.removeView(card.getView()); in removeCard() 139 mLayout.addCard(card.getView(), dismissible); in showCard() 161 mLayout.removeView(card.getView()); in hideCard() 216 mLayout.setFirstVisibleCard(tag); in setFirstVisibleCard() 249 mLayout.setFirstVisibleCard(firstShown); in restoreState() 252 mLayout.triggerShowInitialAnimation(); in restoreState() 259 final String firstVisible = mLayout.getFirstVisibleCardTag(); in dumpState()
|
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/ |
D | SamplePresentation.java | 39 private LinearLayout mLayout; field in SamplePresentation 54 mLayout = (LinearLayout) findViewById(R.id.display_layout); in onCreate() 71 mLayout.setBackgroundColor(color); in setColor()
|
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/ |
D | MainActivity.java | 110 private View mLayout; field in MainActivity 153 Snackbar.make(mLayout, R.string.permission_camera_rationale, in requestCameraPermission() 217 Snackbar.make(mLayout, R.string.permission_contacts_rationale, in requestContactsPermissions() 276 Snackbar.make(mLayout, R.string.permision_available_camera, in onRequestPermissionsResult() 280 Snackbar.make(mLayout, R.string.permissions_not_granted, in onRequestPermissionsResult() 293 Snackbar.make(mLayout, R.string.permision_available_contacts, in onRequestPermissionsResult() 298 Snackbar.make(mLayout, R.string.permissions_not_granted, in onRequestPermissionsResult() 370 mLayout = findViewById(R.id.sample_main_layout); in onCreate()
|
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
D | MainActivity.java | 66 private View mLayout; field in MainActivity 76 mLayout = findViewById(R.id.main_layout); in onCreate() 157 Snackbar.make(mLayout, R.string.permissions_rationale, in requestCalendarAndContactPermissions() 321 Snackbar.make(mLayout, R.string.permisions_granted, Snackbar.LENGTH_SHORT).show(); in onRequestPermissionsResult() 327 Snackbar.make(mLayout, R.string.permissions_denied, Snackbar.LENGTH_SHORT).show(); in onRequestPermissionsResult()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ExternalStorage.java | 50 ViewGroup mLayout; field in ExternalStorage 67 mLayout = (ViewGroup)findViewById(R.id.layout); in onCreate() 84 mLayout.addView(mExternalStoragePublicPicture.mRoot); in onCreate() 100 mLayout.addView(mExternalStoragePrivatePicture.mRoot); in onCreate() 116 mLayout.addView(mExternalStoragePrivateFile.mRoot); in onCreate()
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
D | InsertingCells.java | 67 RelativeLayout mLayout = (RelativeLayout)findViewById(R.id.relative_layout); in onCreate() local 75 mListView.setLayout(mLayout); in onCreate()
|
D | InsertionListView.java | 62 private RelativeLayout mLayout; field in InsertionListView 157 Point layoutLoc = getLocationOnScreen(mLayout); in addRow() 185 mLayout.addView(copyImgView, params); in addRow() 275 mLayout.removeView(copyImgView); in addRow() 351 mLayout = layout; in setLayout()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | CalendarWatchFaceService.java | 75 DynamicLayout mLayout; field in CalendarWatchFaceService.Engine 175 if (mLayout == null || mLayoutWidth != bounds.width()) { in onDraw() 177 mLayout = new DynamicLayout(mEditable, mTextPaint, mLayoutWidth, in onDraw() 194 mLayout.draw(canvas); in onDraw()
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
D | LocalPlayer.java | 379 private final FrameLayout mLayout; field in LocalPlayer.SurfaceViewPlayer 385 mLayout = (FrameLayout)((Activity)context).findViewById(R.id.player); in SurfaceViewPlayer() 417 mLayout.setVisibility(View.GONE); in release() 483 int surfaceWidth = mLayout.getWidth(); in updateSize() 484 int surfaceHeight = mLayout.getHeight(); in updateSize() 511 mLayout.setVisibility(View.GONE); in updateContents() 514 mLayout.setVisibility(View.VISIBLE); in updateContents()
|
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | LocalPlayer.java | 390 private final FrameLayout mLayout; field in LocalPlayer.SurfaceViewPlayer 396 mLayout = (FrameLayout)((Activity)context).findViewById(R.id.player); in SurfaceViewPlayer() 428 mLayout.setVisibility(View.GONE); in release() 494 int surfaceWidth = mLayout.getWidth(); in updateSize() 495 int surfaceHeight = mLayout.getHeight(); in updateSize() 522 mLayout.setVisibility(View.GONE); in updateContents() 525 mLayout.setVisibility(View.VISIBLE); in updateContents()
|