Lines Matching defs:LayoutParams
47 * Views given to the Gallery should use {@link Gallery.LayoutParams} as their
304 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
305 return p instanceof LayoutParams;
309 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {
310 return new LayoutParams(p);
314 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) {
315 return new LayoutParams(getContext(), attrs);
319 protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
321 * Gallery expects Gallery.LayoutParams.
323 return new Gallery.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
324 ViewGroup.LayoutParams.WRAP_CONTENT);
769 Gallery.LayoutParams lp = (Gallery.LayoutParams)
772 lp = (Gallery.LayoutParams) generateDefaultLayoutParams();
1379 * Gallery extends LayoutParams to provide a place to hold current
1384 public static class LayoutParams extends ViewGroup.LayoutParams {
1385 public LayoutParams(Context c, AttributeSet attrs) {
1389 public LayoutParams(int w, int h) {
1393 public LayoutParams(ViewGroup.LayoutParams source) {