Lines Matching defs:LayoutParams
47 * Views given to the Gallery should use {@link Gallery.LayoutParams} as their
307 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
308 return p instanceof LayoutParams;
312 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {
313 return new LayoutParams(p);
317 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) {
318 return new LayoutParams(getContext(), attrs);
322 protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
324 * Gallery expects Gallery.LayoutParams.
326 return new Gallery.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
327 ViewGroup.LayoutParams.WRAP_CONTENT);
772 Gallery.LayoutParams lp = (Gallery.LayoutParams)
775 lp = (Gallery.LayoutParams) generateDefaultLayoutParams();
1382 * Gallery extends LayoutParams to provide a place to hold current
1387 public static class LayoutParams extends ViewGroup.LayoutParams {
1388 public LayoutParams(Context c, AttributeSet attrs) {
1392 public LayoutParams(int w, int h) {
1396 public LayoutParams(ViewGroup.LayoutParams source) {