diff options
author | John Reck <jreck@google.com> | 2012-05-18 21:38:59 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-05-18 22:35:21 -0700 |
commit | 2711fab2fa2eb798e3aea90368f7ac5af1fbe523 (patch) | |
tree | bcabbd102e26fceaaa2ddf5eb971db3f1eacb679 /src/com/android/browser/view | |
parent | aae2c1308c81bf8a3dd900e2aeccb0e43da45fd7 (diff) | |
download | packages_apps_browser-2711fab2fa2eb798e3aea90368f7ac5af1fbe523.zip packages_apps_browser-2711fab2fa2eb798e3aea90368f7ac5af1fbe523.tar.gz packages_apps_browser-2711fab2fa2eb798e3aea90368f7ac5af1fbe523.tar.bz2 |
Fix portrait's fixed title bar
Bug: 6468013
Change-Id: Ia6ee9645df9ebb8aa98734efef45b57db94651f7
Diffstat (limited to 'src/com/android/browser/view')
-rw-r--r-- | src/com/android/browser/view/CustomScreenLinearLayout.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/com/android/browser/view/CustomScreenLinearLayout.java b/src/com/android/browser/view/CustomScreenLinearLayout.java new file mode 100644 index 0000000..f5341e8 --- /dev/null +++ b/src/com/android/browser/view/CustomScreenLinearLayout.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +package com.android.browser.view; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.LinearLayout; + + +public class CustomScreenLinearLayout extends LinearLayout { + + public CustomScreenLinearLayout(Context context) { + super(context); + setChildrenDrawingOrderEnabled(true); + } + + public CustomScreenLinearLayout(Context context, AttributeSet attrs) { + super(context, attrs); + setChildrenDrawingOrderEnabled(true); + } + + public CustomScreenLinearLayout(Context context, AttributeSet attrs, + int defStyle) { + super(context, attrs, defStyle); + setChildrenDrawingOrderEnabled(true); + } + + @Override + protected int getChildDrawingOrder(int childCount, int i) { + return childCount - i - 1; + } + +} |