Home
last modified time | relevance | path

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

/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/
DPlayerSetupActivity.java137 final Button buttonCopy = new Button(this); in buttonClick() local
139 buttonCopy.setBackground(child.getBackground()); in buttonClick()
140 buttonCopy.setText(((Button) child).getText()); in buttonClick()
147 buttonCopy.setLayoutParams(params); in buttonClick()
148 buttonCopy.setPadding(child.getPaddingLeft(), child.getPaddingTop(), in buttonClick()
150 buttonCopy.setTextSize(TypedValue.COMPLEX_UNIT_PX, child.getTextSize()); in buttonClick()
151 buttonCopy.setTypeface(child.getTypeface(), Typeface.BOLD); in buttonClick()
153 buttonCopy.setTextColor(colors.getDefaultColor()); in buttonClick()
156 mContainer.addView(buttonCopy); in buttonClick()
157 buttonCopy.getViewTreeObserver().addOnPreDrawListener( in buttonClick()
[all …]