Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 793) 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/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/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/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()
DLayoutAnimation3.java30 setContentView(R.layout.layout_animation_3); in onCreate()
32 android.R.layout.simple_list_item_1, mStrings)); in onCreate()
DLinearLayout9.java35 setContentView(R.layout.linear_layout_9); in onCreate()
38 android.R.layout.simple_list_item_1, AutoComplete1.COUNTRIES)); in onCreate()
DAutoComplete2.java32 setContentView(R.layout.autocomplete_2); in onCreate()
35 android.R.layout.simple_dropdown_item_1line, in onCreate()
DAutoComplete1.java31 setContentView(R.layout.autocomplete_1); in onCreate()
34 android.R.layout.simple_dropdown_item_1line, COUNTRIES); in onCreate()
DFocus1.java35 setContentView(R.layout.focus_1); in onCreate()
44 android.R.layout.simple_list_item_1, in onCreate()
DAutoComplete6.java31 setContentView(R.layout.autocomplete_6); in onCreate()
34 android.R.layout.simple_dropdown_item_1line, COUNTRIES); in onCreate()
DAutoComplete3.java32 setContentView(R.layout.autocomplete_3); in onCreate()
35 android.R.layout.simple_dropdown_item_1line, 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()
/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/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/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/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/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()

12345678910>>...32