title_bar.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2011, The Android Open Source Project
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <RelativeLayout
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:id="@+id/titlebar"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content">
  19. <include
  20. layout="@layout/title_bar_nav"
  21. android:id="@+id/taburlbar"
  22. android:layout_width="match_parent"
  23. android:layout_height="@dimen/toolbar_height" />
  24. <ViewStub
  25. android:id="@+id/snapshotbar_stub"
  26. android:layout="@layout/title_bar_snapshot"
  27. android:layout_width="match_parent"
  28. android:layout_height="@dimen/toolbar_height" />
  29. <ViewStub
  30. android:id="@+id/autologin_stub"
  31. android:layout="@layout/title_bar_autologin"
  32. android:paddingTop="3dip"
  33. android:layout_below="@id/taburlbar"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content" />
  36. <com.android.browser.PageProgressView
  37. android:id="@+id/progress"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:background="@null"
  41. android:layout_below="@id/taburlbar"
  42. android:src="@drawable/progress"
  43. android:layout_marginTop="@dimen/progress_bar_margin"
  44. android:visibility="gone" />
  45. </RelativeLayout>