• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2024 The Android Open Source Project
4     Copyright (C) 2024 Mopria Alliance, Inc.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10          http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17-->
18
19<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:orientation="vertical"
24    android:paddingEnd="@dimen/mopria_padding_10dp"
25    android:paddingStart="@dimen/mopria_padding_10dp">
26
27    <TextView
28        android:id="@+id/printerNameLabel"
29        style="@style/TextAppearance.AppCompat.Medium"
30        android:layout_width="wrap_content"
31        android:layout_height="wrap_content"
32        android:layout_marginTop="@dimen/mopria_padding_18dp"
33        android:textColor="?android:attr/textColorPrimary"
34        android:text="@string/printer_name"
35        app:layout_constraintLeft_toLeftOf="parent"
36        app:layout_constraintTop_toBottomOf="@+id/printerIcon" />
37
38    <TextView
39        android:id="@+id/printerName"
40        style="@style/TextAppearance.AppCompat.Small"
41        android:layout_width="0dp"
42        android:layout_height="wrap_content"
43        android:layout_marginEnd="@dimen/mopria_padding_10dp"
44        android:textColor="?android:attr/textColorSecondary"
45        app:layout_constraintStart_toStartOf="parent"
46        app:layout_constraintTop_toBottomOf="@+id/printerNameLabel" />
47
48    <TextView
49        android:id="@+id/mediaReadyLabel"
50        style="@style/TextAppearance.AppCompat.Medium"
51        android:layout_width="wrap_content"
52        android:layout_height="wrap_content"
53        android:layout_marginTop="@dimen/mopria_padding_18dp"
54        android:textColor="?android:attr/textColorPrimary"
55        android:text="@string/media_ready"
56        app:layout_constraintLeft_toLeftOf="parent"
57        app:layout_constraintTop_toBottomOf="@id/printerStatusLayout" />
58
59    <TextView
60        android:id="@+id/mediaReady"
61        style="@style/TextAppearance.AppCompat.Small"
62        android:layout_width="0dp"
63        android:layout_height="wrap_content"
64        android:layout_marginEnd="@dimen/mopria_padding_10dp"
65        android:textColor="?android:attr/textColorSecondary"
66        app:layout_constraintStart_toStartOf="parent"
67        app:layout_constraintTop_toBottomOf="@+id/mediaReadyLabel" />
68
69    <TextView
70        android:id="@+id/inkLevelsLabel"
71        style="@style/TextAppearance.AppCompat.Medium"
72        android:layout_width="wrap_content"
73        android:layout_height="wrap_content"
74        android:layout_marginTop="@dimen/mopria_padding_18dp"
75        android:textColor="?android:attr/textColorPrimary"
76        android:text="@string/supply_levels"
77        app:layout_constraintLeft_toLeftOf="parent"
78        app:layout_constraintTop_toBottomOf="@+id/mediaReady" />
79
80    <androidx.appcompat.widget.AppCompatImageView
81        android:id="@+id/printerIcon"
82        android:layout_width="142dp"
83        android:layout_height="142dp"
84        android:layout_margin="@dimen/mopria_padding_10dp"
85        app:layout_constraintEnd_toEndOf="parent"
86        app:layout_constraintStart_toStartOf="parent"
87        app:layout_constraintTop_toTopOf="parent" />
88
89    <androidx.constraintlayout.widget.ConstraintLayout
90        android:id="@+id/printerStatusLayout"
91        android:layout_width="0dp"
92        android:layout_height="wrap_content"
93        android:layout_marginTop="@dimen/mopria_padding_18dp"
94        app:layout_constraintEnd_toEndOf="parent"
95        app:layout_constraintStart_toStartOf="parent"
96        app:layout_constraintTop_toBottomOf="@id/printerName">
97
98        <ProgressBar
99            android:id="@+id/progressBarPrinterStatus"
100            style="?android:attr/progressBarStyleHorizontal"
101            android:layout_width="@dimen/linear_progress_bar_width"
102            android:layout_height="@dimen/linear_progress_bar_height"
103            android:indeterminate="true"
104            app:layout_constraintLeft_toLeftOf="parent"
105            app:layout_constraintTop_toBottomOf="@id/printerStatusLabel" />
106
107        <TextView
108            android:id="@+id/printerStatus"
109            style="@style/TextAppearance.AppCompat.Small"
110            android:layout_width="0dp"
111            android:layout_height="wrap_content"
112            android:layout_marginEnd="@dimen/mopria_padding_10dp"
113            android:textColor="?android:attr/textColorSecondary"
114            app:layout_constraintEnd_toEndOf="parent"
115            app:layout_constraintStart_toStartOf="parent"
116            app:layout_constraintTop_toBottomOf="@id/printerStatusLabel" />
117
118        <TextView
119            android:id="@+id/printerStatusLabel"
120            style="@style/TextAppearance.AppCompat.Medium"
121            android:layout_width="wrap_content"
122            android:layout_height="wrap_content"
123            android:text="@string/status"
124            android:textColor="?android:attr/textColorPrimary"
125            app:layout_constraintLeft_toLeftOf="parent"
126            app:layout_constraintTop_toTopOf="parent" />
127    </androidx.constraintlayout.widget.ConstraintLayout>
128
129    <androidx.recyclerview.widget.RecyclerView
130        android:id="@+id/inkLevelsRecyclerView"
131        android:layout_width="match_parent"
132        android:layout_height="wrap_content"
133        app:layout_constraintLeft_toLeftOf="parent"
134        app:layout_constraintTop_toBottomOf="@id/inkLevelsLabel" />
135
136</androidx.constraintlayout.widget.ConstraintLayout>