Home
last modified time | relevance | path

Searched refs:mLayout (Results 1 – 13 of 13) sorted by relevance

/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
DCardFlip.java67 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/
DMainActivity.java60 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/
DCardStreamFragment.java41 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/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/
DThemedNavBarKeyboard.java57 private KeyboardLayoutView mLayout; field in ThemedNavBarKeyboard
70 mLayout = new KeyboardLayoutView(this, getWindow().getWindow()); in onCreateInputView()
71 return mLayout; in onCreateInputView()
79 if (mLayout != null && mLayout.isFloatingMode()) { in onComputeInsets()
86 mLayout.getLocationInWindow(location); in onComputeInsets()
90 outInsets.touchableRegion.set(x, y, x + mLayout.getWidth(), y + mLayout.getHeight()); in onComputeInsets()
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/
DMainActivity.java110 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/BasicMediaRouter/src/com.example.android.basicmediarouter/
DSamplePresentation.java39 private LinearLayout mLayout; field in SamplePresentation
54 mLayout = (LinearLayout) findViewById(R.id.display_layout); in onCreate()
71 mLayout.setBackgroundColor(color); in setColor()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DIntentBuilderView.java64 private LinearLayout mLayout; field in IntentBuilderView
81 mLayout = (LinearLayout) mInflater.inflate(R.layout.view_build_intent, in IntentBuilderView()
83 addView(mLayout, new LayoutParams(LayoutParams.MATCH_PARENT, in IntentBuilderView()
126 LinearLayout flagBuilderLayout = mLayout.findViewById(R.id.build_intent_flags); in setupViews()
127 RadioGroup activityRadios = mLayout.findViewById(R.id.radioGroup_launchMode); in setupViews()
153 ((CompoundButton) mLayout.findViewById(R.id.suggestion_switch)) in setupViews()
208 LinearLayout flagBuilder = mLayout.findViewById(R.id.build_intent_flags); in currentIntent()
226 RadioButton startNormal = mLayout.findViewById(R.id.start_normal); in startForResult()
297 View layout = mLayout; in getAllCheckBoxes()
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
DMainActivity.java66 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/
DExternalStorage.java50 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/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DLocalPlayer.java379 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/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DCalendarWatchFaceService.java75 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/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertionListView.java62 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()
DInsertingCells.java67 RelativeLayout mLayout = (RelativeLayout)findViewById(R.id.relative_layout); in onCreate() local
75 mListView.setLayout(mLayout); in onCreate()