Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 794) sorted by relevance

12345678910>>...32

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DDensityActivity.java55 LinearLayout layout = new LinearLayout(this); in onCreate() local
56 addBitmapDrawable(layout, R.drawable.logo120dpi, true); in onCreate()
57 addBitmapDrawable(layout, R.drawable.logo160dpi, true); in onCreate()
58 addBitmapDrawable(layout, R.drawable.logo240dpi, true); in onCreate()
60 addChildToRoot(root, layout); in onCreate()
62 layout = new LinearLayout(this); in onCreate()
63 addBitmapDrawable(layout, R.drawable.logo120dpi, false); in onCreate()
64 addBitmapDrawable(layout, R.drawable.logo160dpi, false); in onCreate()
65 addBitmapDrawable(layout, R.drawable.logo240dpi, false); in onCreate()
67 addChildToRoot(root, layout); in onCreate()
[all …]
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DIntentFragment.java45 LinearLayout layout = (LinearLayout) inflater.inflate(R.layout.fragment_intent, container, in onCreateView() local
48 mActionTextView = layout.findViewById(R.id.intentAction); in onCreateView()
49 mUriTextView = layout.findViewById(R.id.intentUri); in onCreateView()
50 mTypeTextView = layout.findViewById(R.id.intentType); in onCreateView()
51 mPackageTextView = layout.findViewById(R.id.intentPackage); in onCreateView()
52 mCategoryListLayout = layout.findViewById(R.id.intentCategories); in onCreateView()
53 mFlagListLayout = layout.findViewById(R.id.intentFlags); in onCreateView()
54 return layout; in onCreateView()
76 R.layout.simple_list_item, in onResume()
81 R.layout.simple_list_item, flags); in onResume()
[all …]
DIntentBuilderView.java81 mLayout = (LinearLayout) mInflater.inflate(R.layout.view_build_intent, in IntentBuilderView()
130 R.layout.section_header, R.id.header_title, R.layout.checkbox_list_item, in setupViews()
143 .inflate(R.layout.activity_radio_list_item, null /* root */); in setupViews()
173 private void fillCheckBoxLayout(ViewGroup layout, Map<String, List<String>> categories, in fillCheckBoxLayout() argument
175 layout.removeAllViews(); in fillCheckBoxLayout()
177 View categoryLayout = mInflater.inflate(categoryLayoutRes, layout, in fillCheckBoxLayout()
181 layout.addView(categoryLayout); in fillCheckBoxLayout()
183 View itemLayout = mInflater.inflate(itemLayoutRes, layout, in fillCheckBoxLayout()
190 layout.addView(itemLayout); in fillCheckBoxLayout()
297 View layout = mLayout; in getAllCheckBoxes() local
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/inputmethod/
DHintLocales.java70 final LinearLayout layout = new LinearLayout(this); in onCreate() local
71 layout.setOrientation(VERTICAL); in onCreate()
75 layout.addView(createEditTextWithImeHintLocales(null)); in onCreate()
80 layout.addView(createEditTextWithImeHintLocales(LocaleList.forLanguageTags("en-US"))); in onCreate()
83 layout.addView(createEditTextWithImeHintLocales( in onCreate()
87 layout.addView(createEditTextWithImeHintLocales(LocaleList.forLanguageTags("fil-ph"))); in onCreate()
90 layout.addView(createEditTextWithImeHintLocales(LocaleList.forLanguageTags("fr"))); in onCreate()
91 layout.addView(createEditTextWithImeHintLocales(LocaleList.forLanguageTags("zh_CN"))); in onCreate()
92 layout.addView(createEditTextWithImeHintLocales(LocaleList.forLanguageTags("ja"))); in onCreate()
96 layout.addView(createEditTextWithImeHintLocales( in onCreate()
[all …]
DShowInputMethodAndSubtypeEnabler.java47 final LinearLayout layout = new LinearLayout(this); in onCreate() local
48 layout.setOrientation(VERTICAL); in onCreate()
59 layout.addView(button); in onCreate()
72 layout.addView(button); in onCreate()
74 setContentView(layout); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DInternalSelectionFocus.java46 final LinearLayout layout = new LinearLayout(this); in onCreate() local
47 layout.setOrientation(LinearLayout.HORIZONTAL); in onCreate()
48 layout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
58 layout.addView(leftColumn); in onCreate()
63 layout.addView(middleColumn); in onCreate()
68 layout.addView(rightColumn); in onCreate()
70 setContentView(layout); in onCreate()
DScrollView2.java35 setContentView(R.layout.scroll_view_2); in onCreate()
37 LinearLayout layout = (LinearLayout) findViewById(R.id.layout); in onCreate() local
45 layout.addView(textView, p); in onCreate()
49 layout.addView(buttonView, p); in onCreate()
DSpinner1.java42 setContentView(R.layout.spinner_1); in onCreate()
46 this, R.array.colors, android.R.layout.simple_spinner_item); in onCreate()
47 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
63 android.R.layout.simple_spinner_item); in onCreate()
64 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
DAnimation2.java39 setContentView(R.layout.animation_2); in onCreate()
46 android.R.layout.simple_spinner_item, mStrings); in onCreate()
47 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DDialogActivity.java55 setContentView(R.layout.dialog_activity); in onCreate()
69 LinearLayout layout = (LinearLayout)findViewById(R.id.inner_content);
73 layout.addView(iv);
79 LinearLayout layout = (LinearLayout)findViewById(R.id.inner_content);
80 int num = layout.getChildCount();
82 layout.removeViewAt(num-1);
DMenuInflateFromXml.java79 LinearLayout layout = new LinearLayout(this); in onCreate() local
80 layout.setOrientation(LinearLayout.VERTICAL); in onCreate()
84 android.R.layout.simple_spinner_item, sMenuExampleNames); in onCreate()
85 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
102 layout.addView(mSpinner, in onCreate()
117 layout.addView(mInstructionsText, lp); in onCreate()
120 setContentView(layout); in onCreate()
DSoftInputModes.java47 setContentView(R.layout.soft_input_modes); in onCreate()
51 android.R.layout.simple_spinner_item, mResizeModeLabels); in onCreate()
52 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
DScreenOrientation.java58 setContentView(R.layout.screen_orientation); in onCreate()
62 this, R.array.screen_orientations, android.R.layout.simple_spinner_item); in onCreate()
63 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
DNotificationBackgroundService.java43 .cancel(R.layout.notification_background_service); in onStartCommand()
65 setContentView(R.layout.notification_background_service); in onCreate()
88 mNM.notify(R.layout.notification_background_service, notification); in showNotification()
/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
DPolicySetupActivity.java70 setScreenContent(R.layout.activity_policy_setup); in onResume()
82 case R.layout.activity_policy_setup: in setScreenContent()
86 case R.layout.activity_view_policy: in setScreenContent()
96 if (mCurrentScreenId == R.layout.activity_policy_setup) writePolicy(); in onPause()
111 if (mCurrentScreenId == R.layout.activity_view_policy) { in onBackPressed()
112 setScreenContent(R.layout.activity_policy_setup); in onBackPressed()
124 R.array.password_types, android.R.layout.simple_spinner_item); in initPolicySetupScreen()
125 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in initPolicySetupScreen()
187 } else if (mCurrentScreenId == R.layout.activity_policy_setup) { in initNavigation()
194 setScreenContent(R.layout.activity_view_policy); in initNavigation()
/development/samples/browseable/CommitContentSampleApp/src/com.example.android.commitcontent.app/
DMainActivity.java60 setContentView(R.layout.commit_content); in onCreate()
62 final LinearLayout layout = in onCreate() local
67 layout.addView(createEditTextWithContentMimeTypes(null)); in onCreate()
71 layout.addView(createEditTextWithContentMimeTypes(new String[]{"image/gif"})); in onCreate()
75 layout.addView(createEditTextWithContentMimeTypes(new String[]{"image/png"})); in onCreate()
79 layout.addView(createEditTextWithContentMimeTypes(new String[]{"image/jpeg"})); in onCreate()
83 layout.addView(createEditTextWithContentMimeTypes(new String[]{"image/webp"})); in onCreate()
88 layout.addView(createEditTextWithContentMimeTypes( in onCreate()
/development/samples/training/basic/FragmentBasics/src/com/example/fragments/
DHeadlinesFragment.java39 int layout = Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB ? in onCreate() local
40 android.R.layout.simple_list_item_activated_1 : android.R.layout.simple_list_item_1; in onCreate()
43 setListAdapter(new ArrayAdapter<String>(getActivity(), layout, Ipsum.Headlines)); in onCreate()
/development/samples/training/ads-and-ux/src/com/example/training/ads/
DAdsCatalogActivity.java50 setContentView(R.layout.fragment_pager); in onCreate()
114 R.layout.ad_top, in onCreateView()
115 R.layout.ad_bottom, in onCreateView()
116 R.layout.ad_next_to_button, in onCreateView()
117 R.layout.ad_covers_content }; in onCreateView()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DTransitions.java42 setContentView(R.layout.transition); in onCreate()
53 mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.transition_scene1, this); in onCreate()
54 mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.transition_scene2, this); in onCreate()
55 mScene3 = Scene.getSceneForLayout(mSceneRoot, R.layout.transition_scene3, this); in onCreate()
/development/samples/browseable/CustomTransition/src/com.example.android.customtransition/
DCustomTransitionFragment.java53 return inflater.inflate(R.layout.fragment_custom_transition, container, false); in onCreateView()
66 Scene.getSceneForLayout(container, R.layout.scene1, context), in onViewCreated()
67 Scene.getSceneForLayout(container, R.layout.scene2, context), in onViewCreated()
68 Scene.getSceneForLayout(container, R.layout.scene3, context), in onViewCreated()
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherWidgetProvider.java160 rv = new RemoteViews(context.getPackageName(), R.layout.widget_layout); in buildLayout()
188 rv = new RemoteViews(context.getPackageName(), R.layout.widget_layout_small); in buildLayout()
210 RemoteViews layout = buildLayout(context, appWidgetIds[i], mIsLargeLayout); in onUpdate() local
211 appWidgetManager.updateAppWidget(appWidgetIds[i], layout); in onUpdate()
225 RemoteViews layout; in onAppWidgetOptionsChanged() local
231 layout = buildLayout(context, appWidgetId, mIsLargeLayout); in onAppWidgetOptionsChanged()
232 appWidgetManager.updateAppWidget(appWidgetId, layout); in onAppWidgetOptionsChanged()
/development/samples/browseable/CommitContentSampleIME/src/com.example.android.commitcontent.ime/
DImageKeyboard.java229 final LinearLayout layout = new LinearLayout(this); in onCreateInputView() local
230 layout.setOrientation(LinearLayout.VERTICAL); in onCreateInputView()
231 layout.addView(mGifButton); in onCreateInputView()
232 layout.addView(mPngButton); in onCreateInputView()
233 layout.addView(mWebpButton); in onCreateInputView()
234 return layout; in onCreateInputView()
/development/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/
DSoftInputWindow.java72 final LinearLayout layout = new LinearLayout(context); in SoftInputWindow() local
73 layout.setOrientation(LinearLayout.VERTICAL); in SoftInputWindow()
75 mKeyboardView = (KeyboardView) getLayoutInflater().inflate(R.layout.input, null); in SoftInputWindow()
81 layout.addView(mKeyboardView); in SoftInputWindow()
83 setContentView(layout, new ViewGroup.LayoutParams( in SoftInputWindow()
/development/samples/ContactManager/src/com/example/android/contactmanager/
DContactAdder.java76 setContentView(R.layout.contact_adder); in onCreate()
109 adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item); in onCreate()
110 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
123 adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item); in onCreate()
124 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
364 super(context, android.R.layout.simple_spinner_item, accountData); in AccountAdapter()
365 setDropDownViewResource(R.layout.account_entry); in AccountAdapter()
372 convertView = layoutInflater.inflate(R.layout.account_entry, parent, false); in getDropDownView()
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/
DMainActivity.java76 RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.notification); in createNotification()
97 new RemoteViews(getPackageName(), R.layout.notification_expanded); in createNotification()
112 setContentView(R.layout.sample_main); in onCreate()

12345678910>>...32