Home
last modified time | relevance | path

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

12345678910>>...30

/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/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()
DControls1.java39 setContentView(R.layout.controls_1); in onCreate()
46 android.R.layout.simple_spinner_item, mStrings); in onCreate()
47 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()
DAutoComplete6.java31 setContentView(R.layout.autocomplete_6); 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()
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/ApiDemos/src/com/example/android/apis/preference/
DLaunchingPreferences.java54 LinearLayout layout = new LinearLayout(this); in onCreate() local
55 layout.setOrientation(LinearLayout.VERTICAL); in onCreate()
56 setContentView(layout); in onCreate()
62 layout.addView(launchPreferences, new LayoutParams(LayoutParams.MATCH_PARENT, in onCreate()
66 layout.addView(mCounterText, new LayoutParams(LayoutParams.MATCH_PARENT, in onCreate()
/development/samples/browseable/AdapterTransition/src/com.example.android.adaptertransition/
DAdapterTransitionFragment.java100 return inflater.inflate(R.layout.fragment_adapter_transition, container, false); in onCreateView()
185 mAbsListView = (AbsListView) inflater.inflate(R.layout.fragment_meat_list, in inflateAbsList()
187 mAdapter = new MeatAdapter(inflater, R.layout.item_meat_list); in inflateAbsList()
189 mAbsListView = (AbsListView) inflater.inflate(R.layout.fragment_meat_grid, in inflateAbsList()
191 mAdapter = new MeatAdapter(inflater, R.layout.item_meat_grid); in inflateAbsList()
253 FrameLayout layout = new FrameLayout(getActivity()); in copyVisibleViews() local
255 layout.setId(ROOT_ID); in copyVisibleViews()
267 View destination = mAdapter.getView(first + index, null, layout); in copyVisibleViews()
274 layout.addView(destination, params); in copyVisibleViews()
277 return layout; in copyVisibleViews()
/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/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/ndk/platforms/android-18/samples/MoreTeapots/assets/Shaders/
DVS_ShaderPlainES3.vsh10 layout(location=%LOCATION_VERTEX%) in highp vec3 myVertex;
11 layout(location=%LOCATION_NORMAL%) in highp vec3 myNormal;
13 layout(std140) uniform ParamBlock {
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
DListViewDraggingAnimation.java38 setContentView(R.layout.activity_list_view); in onCreate()
45 StableArrayAdapter adapter = new StableArrayAdapter(this, R.layout.text_view, mCheeseList); in onCreate()

12345678910>>...30