13659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu/* 23659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * Copyright (C) 2014 The Android Open Source Project 33659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * 43659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 53659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * in compliance with the License. You may obtain a copy of the License at 63659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * 73659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * http://www.apache.org/licenses/LICENSE-2.0 83659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * 93659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * Unless required by applicable law or agreed to in writing, software distributed under the License 103659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 113659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * or implied. See the License for the specific language governing permissions and limitations under 123659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu * the License. 133659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu */ 143659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gupackage android.support.v17.leanback.widget; 153659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu 163659dc62f9e55b1043edb4105c311c8ef997f2aeDake Guimport android.content.Context; 173659dc62f9e55b1043edb4105c311c8ef997f2aeDake Guimport android.util.AttributeSet; 183659dc62f9e55b1043edb4105c311c8ef997f2aeDake Guimport android.widget.LinearLayout; 193659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu 20ceb7ab2ddd6e157cd4ade0f14a382c39428163c4Dake Guclass NonOverlappingLinearLayout extends LinearLayout { 213659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu 22ceb7ab2ddd6e157cd4ade0f14a382c39428163c4Dake Gu public NonOverlappingLinearLayout(Context context) { 233659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu this(context, null); 243659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu } 253659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu 26ceb7ab2ddd6e157cd4ade0f14a382c39428163c4Dake Gu public NonOverlappingLinearLayout(Context context, AttributeSet attrs) { 273659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu this(context, attrs, 0); 283659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu } 293659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu 30ceb7ab2ddd6e157cd4ade0f14a382c39428163c4Dake Gu public NonOverlappingLinearLayout(Context context, AttributeSet attrs, int defStyle) { 313659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu super(context, attrs, defStyle); 323659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu } 333659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu 343659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu /** 35a00bada00bff4a58436a39472ab14ccb7a8f619dCraig Stout * Avoids creating a hardware layer when animating alpha. 363659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu */ 373659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu @Override 383659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu public boolean hasOverlappingRendering() { 393659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu return false; 403659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu } 413659dc62f9e55b1043edb4105c311c8ef997f2aeDake Gu}