/androidsays/res/layout/downloader_title.xml

http://eyes-free.googlecode.com/ · XML · 55 lines · 35 code · 5 blank · 15 comment · 0 complexity · d991ad3787bd9d44b629aaead873f81e MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. * Copyright (C) 2008 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. -->
  17. <LinearLayout
  18. xmlns:android="http://schemas.android.com/apk/res/android"
  19. android:id="@+id/screen"
  20. android:layout_width="fill_parent"
  21. android:layout_height="?android:attr/windowTitleSize"
  22. android:orientation="horizontal">
  23. <TextView android:id="@+id/title_text"
  24. android:gravity="center_vertical"
  25. android:layout_width="0dip"
  26. android:layout_height="fill_parent"
  27. android:paddingLeft="5dip"
  28. style="?android:attr/windowTitleStyle"
  29. android:singleLine="true"
  30. android:layout_weight="1"
  31. android:ellipsize="end" />
  32. <LinearLayout android:id="@+id/loading_indicator"
  33. android:orientation="horizontal"
  34. android:gravity="center_vertical"
  35. android:layout_height="fill_parent"
  36. android:layout_width="wrap_content">
  37. <TextView android:text="@string/download_activity_title"
  38. android:gravity="center_vertical"
  39. android:layout_width="wrap_content"
  40. android:layout_height="fill_parent"
  41. android:paddingRight="5dip"
  42. style="?android:attr/windowTitleStyle" />
  43. <ProgressBar android:id="@android:id/progress"
  44. style="?android:attr/progressBarStyleSmallTitle"
  45. android:layout_gravity="center_vertical"
  46. android:paddingRight="5dip"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content" />
  49. </LinearLayout>
  50. </LinearLayout>