Home
last modified time | relevance | path

Searched refs:mButton (Results 1 – 6 of 6) sorted by relevance

/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DCurvedMotion.java43 Button mButton; field in CurvedMotion
50 mButton = (Button) findViewById(R.id.button); in onCreate()
51 mButton.setOnClickListener(new View.OnClickListener() { in onCreate()
56 final int oldLeft = mButton.getLeft(); in onCreate()
57 final int oldTop = mButton.getTop(); in onCreate()
63 mButton.getViewTreeObserver().addOnPreDrawListener( in onCreate()
66 mButton.getViewTreeObserver().removeOnPreDrawListener(this); in onCreate()
69 int left = mButton.getLeft(); in onCreate()
70 int top = mButton.getTop(); in onCreate()
96 LayoutParams params = (LayoutParams) mButton.getLayoutParams(); in moveButton()
[all …]
/development/samples/JetBoy/src/com/example/android/jetboy/
DJetBoy.java41 private Button mButton; field in JetBoy
67 mButton = (Button)findViewById(R.id.Button01); in onCreate()
68 mButton.setOnClickListener(this); in onCreate()
93 mButton.setText("PLAY!"); in onClick()
102 mButton.setVisibility(View.INVISIBLE); in onClick()
113 mButton.setText("PLAY!"); in onClick()
118 mButton.setText("PLAY!"); in onClick()
119 mButton.setVisibility(View.VISIBLE); in onClick()
/development/samples/ApiDemos/tests/src/com/example/android/apis/app/
DForwardingTest.java51 private Button mButton; field in ForwardingTest
75 mButton = (Button) getActivity().findViewById(R.id.go); in testPreconditions()
78 assertNotNull(mButton); in testPreconditions()
88 mButton = (Button) activity.findViewById(R.id.go); in testSubLaunch()
92 mButton.performClick(); in testSubLaunch()
/development/samples/Home/src/com/example/android/home/
DApplicationsStackLayout.java65 private View mButton; field in ApplicationsStackLayout
113 mButton = mInflater.inflate(R.layout.all_applications_button, this, false); in initLayout()
114 addView(mButton); in initLayout()
182 LayoutParams layoutParams = mButton.getLayoutParams(); in onLayout()
185 mButton.measure(widthSpec, heightSpec); in onLayout()
198 int childWidth = mButton.getMeasuredWidth(); in layoutVertical()
199 int childHeight = mButton.getMeasuredHeight(); in layoutVertical()
202 mButton.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in layoutVertical()
221 int childWidth = mButton.getMeasuredWidth(); in layoutHorizontal()
222 int childHeight = mButton.getMeasuredHeight(); in layoutHorizontal()
[all …]
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertingCells.java44 private Button mButton; field in InsertingCells
70 mButton = (Button)findViewById(R.id.add_row_button); in onCreate()
80 mButton.setEnabled(false); in addRow()
106 mButton.setEnabled(false); in onRowAdditionAnimationStart()
111 mButton.setEnabled(true); in onRowAdditionAnimationEnd()
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/
DMainActivity.java75 mButton = (Button) findViewById(R.id.button1); in onCreate()
76 mButton.setOnClickListener(new View.OnClickListener() { in onCreate()
170 mButton.setEnabled(false); in updatePresentation()
192 mButton.setEnabled(true); in updatePresentation()
213 mButton.setEnabled(false); in onResume()
281 private Button mButton; field in MainActivity