print_activity.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2013 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <com.android.printspooler.widget.PrintContentView
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:id="@+id/options_content"
  16. android:layout_width="fill_parent"
  17. android:layout_height="fill_parent">
  18. <!-- Destination -->
  19. <FrameLayout
  20. android:id="@+id/static_content"
  21. android:layout_width="fill_parent"
  22. android:layout_height="wrap_content"
  23. android:paddingStart="8dip"
  24. android:layout_marginEnd="16dp"
  25. android:elevation="@dimen/preview_controls_elevation"
  26. style="?android:actionBarStyle">
  27. <com.android.printspooler.widget.ClickInterceptSpinner
  28. android:id="@+id/destination_spinner"
  29. android:layout_width="wrap_content"
  30. android:minWidth="@dimen/preview_destination_spinner_width"
  31. android:layout_height="wrap_content"
  32. android:layout_marginTop="4dip"
  33. android:dropDownWidth="wrap_content"
  34. android:minHeight="?android:attr/listPreferredItemHeightSmall">
  35. </com.android.printspooler.widget.ClickInterceptSpinner>
  36. </FrameLayout>
  37. <!-- Summary -->
  38. <LinearLayout
  39. android:id="@+id/summary_content"
  40. android:layout_width="fill_parent"
  41. android:layout_height="wrap_content"
  42. android:paddingTop="2dip"
  43. android:paddingStart="16dip"
  44. android:paddingEnd="16dip"
  45. android:paddingBottom="8dip"
  46. android:orientation="horizontal"
  47. android:elevation="@dimen/preview_controls_elevation"
  48. style="?android:actionBarStyle">
  49. <TextView
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_marginStart="12dip"
  53. android:textAppearance="?android:attr/textAppearanceSmall"
  54. android:labelFor="@+id/copies_count_summary"
  55. android:text="@string/label_copies_summary">
  56. </TextView>
  57. <TextView
  58. android:id="@+id/copies_count_summary"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_marginStart="16dip"
  62. android:textAppearance="?android:attr/textAppearanceMedium"
  63. android:textColor="?android:attr/textColorPrimary"
  64. android:singleLine="true"
  65. android:ellipsize="end">
  66. </TextView>
  67. <TextView
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_marginStart="32dip"
  71. android:textAppearance="?android:attr/textAppearanceSmall"
  72. android:labelFor="@+id/paper_size_summary"
  73. android:text="@string/label_paper_size_summary">
  74. </TextView>
  75. <TextView
  76. android:id="@+id/paper_size_summary"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:layout_marginStart="16dip"
  80. android:textAppearance="?android:attr/textAppearanceMedium"
  81. android:textColor="?android:attr/textColorPrimary"
  82. android:singleLine="true"
  83. android:ellipsize="end">
  84. </TextView>
  85. </LinearLayout>
  86. <!-- Print button -->
  87. <ImageButton
  88. android:id="@+id/print_button"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:layout_marginStart="16dip"
  92. android:elevation="@dimen/preview_controls_elevation"
  93. android:tint="@android:color/white"
  94. android:background="@drawable/print_button">
  95. </ImageButton>
  96. <!-- Controls -->
  97. <include layout="@layout/print_activity_controls"/>
  98. <!-- Content -->
  99. <com.android.printspooler.widget.EmbeddedContentContainer
  100. android:id="@+id/embedded_content_container"
  101. android:layout_width="fill_parent"
  102. android:layout_height="fill_parent"
  103. android:animateLayoutChanges="true"
  104. android:gravity="center">
  105. <!-- Error message added here -->
  106. <android.support.v7.widget.RecyclerView
  107. android:id="@+id/preview_content"
  108. android:layout_width="match_parent"
  109. android:layout_height="match_parent"
  110. android:clipToPadding="false"
  111. android:orientation="vertical">
  112. </android.support.v7.widget.RecyclerView>
  113. <!-- Scrim -->
  114. <View
  115. android:id="@+id/embedded_content_scrim"
  116. android:layout_width="fill_parent"
  117. android:layout_height="fill_parent">
  118. </View>
  119. </com.android.printspooler.widget.EmbeddedContentContainer>
  120. </com.android.printspooler.widget.PrintContentView>