Merge pull request #1640 from Andries-Smit/chore/fix-layout-lint-warning-2

Chore: fix layout lint warning part 2
This commit is contained in:
Milos Kozak 2022-04-19 12:33:12 +02:00 committed by GitHub
commit 49af54df94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 255 additions and 222 deletions

View file

@ -76,6 +76,10 @@ class QuickWizardListActivity : DaggerAppCompatActivityWithResult(), OnStartDrag
else -> R.drawable.ic_smartphone else -> R.drawable.ic_smartphone
} }
) )
holder.binding.device.contentDescription = when (quickWizard[position].device()) {
QuickWizardEntry.DEVICE_WATCH -> rh.gs(R.string.a11y_only_on_watch)
else -> rh.gs(R.string.a11y_only_on_phone)
}
} }
holder.binding.root.setOnClickListener { holder.binding.root.setOnClickListener {
if (actionHelper.isNoAction) { if (actionHelper.isNoAction) {

View file

@ -59,7 +59,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:text="24" /> tools:text="24" />
</LinearLayout> </LinearLayout>

View file

@ -27,8 +27,7 @@
android:gravity="center" android:gravity="center"
android:paddingStart="5dp" android:paddingStart="5dp"
android:paddingEnd="5dp" android:paddingEnd="5dp"
android:text="1" android:text="Profile 1" />
tools:ignore="HardcodedText" />
<TextView <TextView
android:id="@+id/menu2" android:id="@+id/menu2"
@ -38,8 +37,7 @@
android:gravity="center" android:gravity="center"
android:paddingStart="5dp" android:paddingStart="5dp"
android:paddingEnd="5dp" android:paddingEnd="5dp"
android:text="2" android:text="Profile 2" />
tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>

View file

@ -20,6 +20,7 @@
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:importantForAccessibility="no"
android:onClick="exitPressed" android:onClick="exitPressed"
app:srcCompat="@drawable/ic_exit_to_app" /> app:srcCompat="@drawable/ic_exit_to_app" />

View file

@ -35,6 +35,7 @@
android:id="@+id/otp_provisioning" android:id="@+id/otp_provisioning"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/a11y_otp_qr_code"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:scaleType="center" /> android:scaleType="center" />
@ -72,6 +73,7 @@
android:layout_width="140sp" android:layout_width="140sp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/smscommunicator_code_verify_hint" android:hint="@string/smscommunicator_code_verify_hint"
android:importantForAutofill="no"
android:inputType="number" android:inputType="number"
android:maxLength="12" android:maxLength="12"
android:textAlignment="center" android:textAlignment="center"

View file

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:card_view="http://schemas.android.com/tools" xmlns:card_view="http://schemas.android.com/tools"
xmlns:tools="http://schemas.android.com/tools"
style="@style/Widget.MaterialComponents.CardView" style="@style/Widget.MaterialComponents.CardView"
android:id="@+id/bg_card" android:id="@+id/bg_card"
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -36,8 +36,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_margin="4dp" android:layout_margin="4dp"
app:tint="?android:attr/colorAccent" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_visibility" /> app:srcCompat="@drawable/ic_visibility"
app:tint="?android:attr/colorAccent" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@ -45,4 +47,5 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" /> android:orientation="vertical" />
</LinearLayout> </LinearLayout>

View file

@ -38,7 +38,8 @@
android:layout_width="36dp" android:layout_width="36dp"
android:layout_height="36dp" android:layout_height="36dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginEnd="8dp" /> android:layout_marginEnd="8dp"
android:importantForAccessibility="no" />
<ImageView <ImageView
android:id="@+id/plugin_icon2" android:id="@+id/plugin_icon2"
@ -46,6 +47,7 @@
android:layout_height="36dp" android:layout_height="36dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:importantForAccessibility="no"
tools:visibility="gone" /> tools:visibility="gone" />
</LinearLayout> </LinearLayout>
@ -70,6 +72,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="12sp" android:textSize="12sp"
tools:text="A super exquisite plugin description" /> tools:text="A super exquisite plugin description" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
@ -80,6 +83,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:contentDescription="@string/a11y_open_settings"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?attr/selectableItemBackgroundBorderless"
app:srcCompat="@drawable/ic_settings" /> app:srcCompat="@drawable/ic_settings" />
@ -88,4 +92,5 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:saveEnabled="false" /> android:saveEnabled="false" />
</LinearLayout> </LinearLayout>

View file

@ -75,6 +75,7 @@
<TableLayout <TableLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingStart="0dp"
android:paddingEnd="5dp"> android:paddingEnd="5dp">
<TableRow <TableRow
@ -91,7 +92,7 @@
<TextView <TextView
android:id="@+id/time_label" android:id="@+id/time_label"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:width="120dp" android:width="120dp"
@ -267,6 +268,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:importantForAccessibility="no"
android:src="@drawable/ic_access_alarm_24dp" /> android:src="@drawable/ic_access_alarm_24dp" />
<CheckBox <CheckBox
@ -276,6 +278,7 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:checked="false" android:checked="false"
android:padding="2dp" /> android:padding="2dp" />
</LinearLayout> </LinearLayout>
<include <include

View file

@ -145,29 +145,28 @@
android:padding="5dp"> android:padding="5dp">
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
style="@style/GrayButton"
android:id="@+id/plus05" android:id="@+id/plus05"
style="@style/GrayButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:contentDescription="Increment insulin with 0.5" tools:text="+0.5" />
android:text="+0.5" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
style="@style/GrayButton"
android:id="@+id/plus10" android:id="@+id/plus10"
style="@style/GrayButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:text="+1.0" /> tools:text="+1.0" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
style="@style/GrayButton"
android:id="@+id/plus20" android:id="@+id/plus20"
style="@style/GrayButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:text="+2.0" /> tools:text="+2.0" />
</LinearLayout> </LinearLayout>

View file

@ -182,7 +182,7 @@
android:id="@+id/overview_resume" android:id="@+id/overview_resume"
style="@style/ButtonSmallFontStyle" style="@style/ButtonSmallFontStyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_height="0dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginEnd="-4dp" android:layout_marginEnd="-4dp"
android:layout_weight="0.5" android:layout_weight="0.5"
@ -291,7 +291,7 @@
android:id="@+id/overview_reconnect" android:id="@+id/overview_reconnect"
style="@style/ButtonSmallFontStyle" style="@style/ButtonSmallFontStyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginEnd="-4dp" android:layout_marginEnd="-4dp"
android:layout_weight="0.5" android:layout_weight="0.5"
@ -396,7 +396,7 @@
android:id="@+id/cancel" android:id="@+id/cancel"
style="@style/OkCancelButton.Text" style="@style/OkCancelButton.Text"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_weight="1" android:layout_weight="1"
android:text="@string/cancel" android:text="@string/cancel"
@ -404,4 +404,5 @@
android:textAlignment="textEnd" /> android:textAlignment="textEnd" />
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>

View file

@ -151,7 +151,8 @@
android:paddingStart="5dp" android:paddingStart="5dp"
android:paddingEnd="5dp" android:paddingEnd="5dp"
android:text="%" android:text="%"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>
@ -210,7 +211,7 @@
<CheckBox <CheckBox
android:id="@+id/tt" android:id="@+id/tt"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="1" android:layout_weight="1"

View file

@ -77,7 +77,8 @@
android:paddingStart="5dp" android:paddingStart="5dp"
android:paddingEnd="5dp" android:paddingEnd="5dp"
android:text="%" android:text="%"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>

View file

@ -48,8 +48,8 @@
<TableLayout <TableLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingEnd="5dp" android:paddingStart="0dp"
tools:ignore="RtlSymmetry"> android:paddingEnd="5dp">
<TableRow <TableRow
android:layout_width="match_parent" android:layout_width="match_parent"
@ -149,7 +149,8 @@
android:padding="2dp" android:padding="2dp"
android:text="%" android:text="%"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textStyle="bold" /> android:textStyle="bold"
tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>
@ -347,7 +348,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:checked="false" android:checked="false"
android:contentDescription="set carb timer alarm" android:contentDescription="@string/a11y_set_carb_timer"
android:drawableEnd="@drawable/ic_access_alarm_24dp" android:drawableEnd="@drawable/ic_access_alarm_24dp"
android:layoutDirection="rtl" android:layoutDirection="rtl"
android:padding="2dp" /> android:padding="2dp" />
@ -384,7 +385,8 @@
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:layout_weight="0.5" android:layout_weight="0.5"
android:hint="@string/profile" android:hint="@string/profile"
android:paddingStart="7dp"> android:paddingStart="7dp"
android:paddingEnd="0dp">
<com.google.android.material.textfield.MaterialAutoCompleteTextView <com.google.android.material.textfield.MaterialAutoCompleteTextView
android:id="@+id/profileList" android:id="@+id/profileList"

View file

@ -50,7 +50,7 @@
android:text="@string/reset" /> android:text="@string/reset" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="" /> android:text="" />
@ -76,10 +76,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:text="Question"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/exam_name" /> app:layout_constraintTop_toBottomOf="@id/exam_name"
tools:text="Question" />
<TextView <TextView
android:id="@+id/exam_hint" android:id="@+id/exam_hint"
@ -94,22 +94,22 @@
android:id="@+id/exam_name" android:id="@+id/exam_name"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Name"
android:textAppearance="@style/TextAppearance.AppCompat.Large" android:textAppearance="@style/TextAppearance.AppCompat.Large"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent"
tools:text="Name" />
<TextView <TextView
android:id="@+id/exam_disabledto" android:id="@+id/exam_disabledto"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:text="Disabled until:"
android:textColor="?attr/objectivesDisabledTextColor" android:textColor="?attr/objectivesDisabledTextColor"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/exam_hints" /> app:layout_constraintTop_toBottomOf="@+id/exam_hints"
tools:text="Disabled until:" />
<LinearLayout <LinearLayout
android:id="@+id/navigation" android:id="@+id/navigation"
@ -130,7 +130,7 @@
android:text="@string/previous_button" /> android:text="@string/previous_button" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="" /> android:text="" />

View file

@ -95,7 +95,7 @@
android:id="@+id/requestcode" android:id="@+id/requestcode"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Request code: XXXXX" /> tools:text="Request code: XXXXX" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -108,8 +108,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:ems="10" android:ems="10"
android:hint="XXXXXXXXXX" android:inputType="text"
android:inputType="text" /> tools:hint="XXXXXXXXXX"
android:importantForAutofill="no" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/enterbutton" android:id="@+id/enterbutton"

View file

@ -85,15 +85,16 @@
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center_horizontal|center_vertical" android:gravity="center_horizontal|center_vertical"
android:padding="10dp" android:padding="10dp"
android:text="08:20pm" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> tools:text="08:20pm" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="-" android:text="-"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> android:textAppearance="@style/TextAppearance.AppCompat.Medium"
tools:ignore="HardcodedText" />
<TextView <TextView
android:id="@+id/to" android:id="@+id/to"
@ -102,8 +103,8 @@
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center_horizontal|center_vertical" android:gravity="center_horizontal|center_vertical"
android:padding="10dp" android:padding="10dp"
android:text="08:20pm" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> tools:text="08:20pm" />
</LinearLayout> </LinearLayout>
@ -123,17 +124,17 @@
<RadioButton <RadioButton
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="All" /> android:text="@string/device_all" />
<RadioButton <RadioButton
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Phone" /> android:text="@string/device_phone" />
<RadioButton <RadioButton
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Watch" /> android:text="@string/device_watch" />
</RadioGroup> </RadioGroup>
@ -366,9 +367,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ems="10" android:ems="10"
android:importantForAutofill="no"
android:inputType="number" android:inputType="number"
android:maxLength="3" android:maxLength="3"/>
android:paddingStart="10dp" />
<include <include
android:id="@+id/okcancel" android:id="@+id/okcancel"

View file

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">

View file

@ -2,7 +2,6 @@
<com.google.android.material.card.MaterialCardView <com.google.android.material.card.MaterialCardView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:card_view="http://schemas.android.com/tools"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/Widget.MaterialComponents.CardView" style="@style/Widget.MaterialComponents.CardView"
android:id="@+id/card" android:id="@+id/card"
@ -30,6 +29,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:adjustViewBounds="false" android:adjustViewBounds="false"
android:cropToPadding="false" android:cropToPadding="false"
android:importantForAccessibility="no"
android:scaleType="fitStart" android:scaleType="fitStart"
app:srcCompat="@drawable/ic_quick_wizard" /> app:srcCompat="@drawable/ic_quick_wizard" />
@ -81,14 +81,15 @@
android:adjustViewBounds="false" android:adjustViewBounds="false"
android:cropToPadding="false" android:cropToPadding="false"
android:scaleType="fitStart" android:scaleType="fitStart"
app:srcCompat="@drawable/ic_smartphone" android:contentDescription="@string/a11y_only_on_phone"
tools:ignore="RtlSymmetry" /> app:srcCompat="@drawable/ic_smartphone" />
<ImageView <ImageView
android:id="@+id/sortHandle" android:id="@+id/sortHandle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:adjustViewBounds="false" android:adjustViewBounds="false"
android:contentDescription="@string/a11y_drag_and_drop_handle"
android:cropToPadding="false" android:cropToPadding="false"
android:scaleType="fitStart" android:scaleType="fitStart"
app:srcCompat="@drawable/ic_reorder_gray_24dp" /> app:srcCompat="@drawable/ic_reorder_gray_24dp" />

View file

@ -9,14 +9,16 @@
android:layout_marginBottom="3dp" android:layout_marginBottom="3dp"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingTop="4dp" android:paddingTop="4dp"
android:paddingBottom="4dp"> android:paddingBottom="4dp"
android:baselineAligned="false">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:focusable="true" android:focusable="true"
android:gravity="center_horizontal"> android:gravity="center_horizontal"
tools:ignore="UseCompoundDrawables">
<ImageView <ImageView
android:id="@+id/cannula_or_patch" android:id="@+id/cannula_or_patch"
@ -64,6 +66,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:lines="1" android:lines="1"
android:paddingStart="2dp" android:paddingStart="2dp"
android:paddingEnd="0dp"
tools:text="50+U" /> tools:text="50+U" />
</LinearLayout> </LinearLayout>
@ -73,7 +76,8 @@
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_weight="1" android:layout_weight="1"
android:focusable="true" android:focusable="true"
android:gravity="center_horizontal"> android:gravity="center_horizontal"
tools:ignore="UseCompoundDrawables">
<ImageView <ImageView
android:layout_width="28dp" android:layout_width="28dp"
@ -121,6 +125,7 @@
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:lines="1" android:lines="1"
android:paddingStart="2dp" android:paddingStart="2dp"
android:paddingEnd="0dp"
tools:text="100%" /> tools:text="100%" />
</LinearLayout> </LinearLayout>

View file

@ -1212,4 +1212,13 @@
<string name="show_hide_records">Hide loop records</string> <string name="show_hide_records">Hide loop records</string>
<string name="widget_description">AndroidAPS widget</string> <string name="widget_description">AndroidAPS widget</string>
<string name="configure">Configure opacity</string> <string name="configure">Configure opacity</string>
<string name="a11y_otp_qr_code">QR Code for setup one time password</string>
<string name="a11y_open_settings">open settings</string>
<string name="a11y_set_carb_timer">set carb timer alarm</string>
<string name="device_all">All</string>
<string name="device_phone">Phone</string>
<string name="device_watch">Watch</string>
<string name="a11y_only_on_watch">only on watch</string>
<string name="a11y_only_on_phone">only on phone</string>
<string name="a11y_drag_and_drop_handle">drag and drop handle</string>
</resources> </resources>

View file

@ -2,6 +2,7 @@
<RelativeLayout <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?attr/ribbonDefaultColor" android:background="?attr/ribbonDefaultColor"
@ -30,12 +31,14 @@
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_toStartOf="@id/automation_iconTrash" android:layout_toStartOf="@id/automation_iconTrash"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<ImageView <ImageView
android:id="@+id/automation_action_image" android:id="@+id/automation_action_image"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_action_orange_48dp" /> app:srcCompat="@drawable/ic_action_orange_48dp" />
<TextView <TextView

View file

@ -6,7 +6,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
tools:context=".plugins.general.automation.dialogs.EditActionDialog"> tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditActionDialog">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -2,12 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
tools:context=".plugins.general.automation.dialogs.EditEventDialog"> tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -6,7 +6,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
tools:context=".plugins.general.automation.dialogs.EditEventDialog"> tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -26,7 +26,7 @@
app:srcCompat="@drawable/ic_action_orange_48dp" /> app:srcCompat="@drawable/ic_action_orange_48dp" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
@ -66,6 +66,7 @@
android:id="@+id/imageButton" android:id="@+id/imageButton"
android:layout_width="27dp" android:layout_width="27dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:importantForAccessibility="no"
android:scaleX="0.7" android:scaleX="0.7"
android:scaleY="0.7" android:scaleY="0.7"
android:src="@drawable/ic_danar_useropt" /> android:src="@drawable/ic_danar_useropt" />
@ -93,6 +94,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_trigger_green_48dp" /> app:srcCompat="@drawable/ic_trigger_green_48dp" />
<TextView <TextView
@ -113,7 +115,8 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:background="?attr/activity_title_backgroundColor" android:background="?attr/activity_title_backgroundColor"
android:padding="8dp" android:padding="8dp"
android:text="@string/edit_short" /> android:text="@string/edit_short"
tools:ignore="RelativeOverlap" />
</RelativeLayout> </RelativeLayout>
@ -156,6 +159,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_action_orange_48dp" /> app:srcCompat="@drawable/ic_action_orange_48dp" />
<TextView <TextView
@ -176,7 +180,8 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:background="?attr/activity_title_backgroundColor" android:background="?attr/activity_title_backgroundColor"
android:padding="8dp" android:padding="8dp"
android:text="@string/add_short" /> android:text="@string/add_short"
tools:ignore="RelativeOverlap" />
</RelativeLayout> </RelativeLayout>

View file

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="2dp" android:orientation="horizontal"
android:orientation="horizontal"> android:paddingTop="2dp">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -24,10 +25,10 @@
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:background="@drawable/background_input_border" android:background="@drawable/background_input_border"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:clickable="true" android:clickable="true"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:padding="10dp" android:padding="10dp"
android:text="2017/05/05" /> tools:text="2017/05/05" />
<TextView <TextView
android:id="@+id/eventtime" android:id="@+id/eventtime"
@ -35,9 +36,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:background="@drawable/background_input_border" android:background="@drawable/background_input_border"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:clickable="true" android:clickable="true"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:padding="10dp" android:padding="10dp"
android:text="08:20pm" /> tools:text="08:20pm" />
</LinearLayout> </LinearLayout>

View file

@ -18,6 +18,7 @@
android:id="@+id/alertdialog_icon" android:id="@+id/alertdialog_icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:importantForAccessibility="no"
app:tint="?dialogTitleIconTint" /> app:tint="?dialogTitleIconTint" />
<TextView <TextView

View file

@ -27,7 +27,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:baselineAligned="true" android:baselineAligned="true"
android:orientation="horizontal"> android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<ImageView <ImageView
android:layout_width="18dp" android:layout_width="18dp"
@ -36,6 +37,7 @@
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginEnd="6dp" android:layout_marginEnd="6dp"
android:layout_marginBottom="1dp" android:layout_marginBottom="1dp"
android:contentDescription="@string/a11y_file"
app:srcCompat="@drawable/ic_meta_format" app:srcCompat="@drawable/ic_meta_format"
app:tint="?attr/importListFileNameColor" /> app:tint="?attr/importListFileNameColor" />
@ -46,6 +48,7 @@
android:layout_weight="1" android:layout_weight="1"
android:ellipsize="none" android:ellipsize="none"
android:maxLines="2" android:maxLines="2"
android:paddingStart="0dp"
android:paddingEnd="10dp" android:paddingEnd="10dp"
android:scrollHorizontally="false" android:scrollHorizontally="false"
android:text="File name here" android:text="File name here"
@ -53,7 +56,6 @@
android:textColor="?attr/importListFileNameColor" android:textColor="?attr/importListFileNameColor"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@ -70,7 +72,7 @@
android:layout_weight="1" android:layout_weight="1"
android:ellipsize="none" android:ellipsize="none"
android:maxLines="2" android:maxLines="2"
android:paddingStart="0dp"
android:paddingEnd="10dp" android:paddingEnd="10dp"
android:scrollHorizontally="false" android:scrollHorizontally="false"
android:text="File dir here" android:text="File dir here"
@ -79,7 +81,6 @@
android:textSize="11sp" android:textSize="11sp"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@ -87,16 +88,17 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="6dp" android:layout_marginTop="6dp"
android:orientation="horizontal"> android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<ImageView <ImageView
android:layout_width="16dp" android:layout_width="16dp"
android:layout_height="16dp" android:layout_height="16dp"
android:layout_marginStart="30dp" android:layout_marginStart="30dp"
android:layout_marginTop="1dp" android:layout_marginTop="1dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginBottom="1dp" android:layout_marginBottom="1dp"
android:contentDescription="@string/a11y_user"
app:srcCompat="@drawable/ic_meta_name" app:srcCompat="@drawable/ic_meta_name"
app:tint="?attr/importListAdditionalInfoColor" /> app:tint="?attr/importListAdditionalInfoColor" />
@ -110,17 +112,14 @@
android:textColor="?attr/importListAdditionalInfoColor" android:textColor="?attr/importListAdditionalInfoColor"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="3dp" android:layout_marginTop="3dp"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/meta_date_time_icon" android:id="@+id/meta_date_time_icon"
android:layout_width="16dp" android:layout_width="16dp"
@ -129,6 +128,7 @@
android:layout_marginTop="1dp" android:layout_marginTop="1dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginBottom="1dp" android:layout_marginBottom="1dp"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_meta_date" app:srcCompat="@drawable/ic_meta_date"
app:tint="?attr/importListAdditionalInfoColor" /> app:tint="?attr/importListAdditionalInfoColor" />

View file

@ -21,9 +21,11 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/password_hint" android:hint="@string/password_hint"
android:importantForAutofill="no"
android:inputType="textPassword"> android:inputType="textPassword">
<requestFocus /> <requestFocus />
</EditText> </EditText>
<EditText <EditText
@ -31,6 +33,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/password_hint" android:hint="@string/password_hint"
android:importantForAutofill="no"
android:inputType="textPassword" /> android:inputType="textPassword" />
</LinearLayout> </LinearLayout>

View file

@ -26,8 +26,9 @@
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginEnd="18dp" android:layout_marginEnd="18dp"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:text="Toast goes here..."
android:textColor="?attr/toastBaseTextColor" android:textColor="?attr/toastBaseTextColor"
android:textSize="18sp" android:textSize="18sp"
tools:ignore="HardcodedText,RtlHardcoded" /> tools:ignore="RtlHardcoded"
tools:text="Toast goes here..." />
</LinearLayout> </LinearLayout>

View file

@ -561,6 +561,8 @@
<string name="remove_items">Remove Items</string> <string name="remove_items">Remove Items</string>
<string name="sort_items">Sort Items</string> <string name="sort_items">Sort Items</string>
<string name="remove_selected_items">Remove Selected Items</string> <string name="remove_selected_items">Remove Selected Items</string>
<string name="a11y_file">file</string>
<string name="a11y_user">user</string>
<plurals name="days"> <plurals name="days">
<item quantity="one">%1$d day</item> <item quantity="one">%1$d day</item>

View file

@ -14,7 +14,6 @@
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
android:layout_gravity="center"> android:layout_gravity="center">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -26,7 +25,6 @@
android:baselineAligned="true" android:baselineAligned="true"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/time" android:id="@+id/time"
android:layout_width="120dp" android:layout_width="120dp"
@ -39,7 +37,7 @@
android:id="@+id/value" android:id="@+id/value"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="right" android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
android:text="0.25" android:text="0.25"
tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry" /> tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry" />
@ -64,7 +62,7 @@
android:id="@+id/duration" android:id="@+id/duration"
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="right" android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
android:text="30" android:text="30"
tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry" /> tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry" />
@ -73,7 +71,7 @@
android:id="@+id/daily_basal" android:id="@+id/daily_basal"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="right" android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
tools:ignore="RtlHardcoded,RtlSymmetry" /> tools:ignore="RtlHardcoded,RtlSymmetry" />
@ -81,7 +79,7 @@
android:id="@+id/daily_bolus" android:id="@+id/daily_bolus"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="right" android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
tools:ignore="RtlHardcoded,RtlSymmetry" /> tools:ignore="RtlHardcoded,RtlSymmetry" />
@ -89,7 +87,7 @@
android:id="@+id/daily_total" android:id="@+id/daily_total"
android:layout_width="56dp" android:layout_width="56dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="right" android:gravity="end"
android:paddingStart="10dp" android:paddingStart="10dp"
android:visibility="gone" android:visibility="gone"
tools:ignore="RtlHardcoded,RtlSymmetry" /> tools:ignore="RtlHardcoded,RtlSymmetry" />

View file

@ -8,7 +8,6 @@
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
tools:context="info.nightscout.androidaps.dana.activities.DanaUserOptionsActivity"> tools:context="info.nightscout.androidaps.dana.activities.DanaUserOptionsActivity">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -49,16 +48,16 @@
android:orientation="horizontal" android:orientation="horizontal"
android:padding="5dp" /> android:padding="5dp" />
<Switch <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/timeformat" android:id="@+id/timeformat"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="20dp" android:layout_marginStart="20dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:showText="true"
android:text="@string/danar_timedisplay" android:text="@string/danar_timedisplay"
android:textOff="@string/timeformat12h" android:textOff="@string/timeformat12h"
android:textOn="@string/timeformat24h" /> android:textOn="@string/timeformat24h"
app:showText="true" />
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -69,7 +68,7 @@
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" /> android:background="?android:attr/dividerHorizontal" />
<Switch <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/buttonscroll" android:id="@+id/buttonscroll"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -77,7 +76,8 @@
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:text="@string/danar_buttonscroll" android:text="@string/danar_buttonscroll"
android:textOff="@string/option_off" android:textOff="@string/option_off"
android:textOn="@string/option_on" /> android:textOn="@string/option_on"
app:showText="true" />
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -88,7 +88,7 @@
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" /> android:background="?android:attr/dividerHorizontal" />
<Switch <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/beep" android:id="@+id/beep"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -96,7 +96,8 @@
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:text="@string/danar_beep" android:text="@string/danar_beep"
android:textOff="@string/option_off" android:textOff="@string/option_off"
android:textOn="@string/option_on" /> android:textOn="@string/option_on"
app:showText="true" />
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -232,17 +233,17 @@
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" /> android:background="?android:attr/dividerHorizontal" />
<Switch <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/units" android:id="@+id/units"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="20dp" android:layout_marginStart="20dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:showText="true"
android:splitTrack="false" android:splitTrack="false"
android:text="@string/danar_glucoseunits" android:text="@string/danar_glucoseunits"
android:textOff="@string/mgdl" android:textOff="@string/mgdl"
android:textOn="@string/mmol" /> android:textOn="@string/mmol"
app:showText="true" />
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"

View file

@ -44,7 +44,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="15dp" android:layout_marginTop="15dp"
android:text="STATUS" /> tools:text="STATUS" />
<ProgressBar <ProgressBar
android:id="@+id/danars_pairingprogress_progressbar" android:id="@+id/danars_pairingprogress_progressbar"

View file

@ -1,18 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/Widget.MaterialComponents.CardView" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/danar_history_card" android:id="@+id/danar_history_card"
style="@style/Widget.MaterialComponents.CardView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
app:cardCornerRadius="4dp" app:cardCornerRadius="4dp"
app:contentPadding="2dp"
app:cardElevation="4dp" app:cardElevation="4dp"
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
android:layout_gravity="center"> app:contentPadding="2dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -20,73 +19,79 @@
android:baselineAligned="true" android:baselineAligned="true"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/diaconn_g8_history_time" android:id="@+id/diaconn_g8_history_time"
android:layout_width="120dp" android:layout_width="120dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="5dp" android:paddingStart="5dp"
android:text="27.06.2016 18:00" /> android:paddingEnd="0dp"
tools:text="27.06.2016 18:00" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_value" android:id="@+id/diaconn_g8_history_value"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
android:text="0.25" android:paddingEnd="0dp"
android:gravity="right" /> tools:text="0.25" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_bolustype" android:id="@+id/diaconn_g8_history_bolustype"
android:layout_width="20dp" android:layout_width="20dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="5dp" android:paddingStart="5dp"
android:text="E" android:paddingEnd="0dp"
/> tools:text="E" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_stringvalue" android:id="@+id/diaconn_g8_history_stringvalue"
android:layout_width="150dp" android:layout_width="150dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="5dp" android:paddingStart="5dp"
android:text="XXXXXXX" android:paddingEnd="0dp"
/> tools:text="XXXXXXX" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_duration" android:id="@+id/diaconn_g8_history_duration"
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
android:text="30" android:paddingEnd="0dp"
android:gravity="right" /> tools:text="30" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_dailybasal" android:id="@+id/diaconn_g8_history_dailybasal"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
android:gravity="right" /> android:paddingEnd="0dp" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_dailybolus" android:id="@+id/diaconn_g8_history_dailybolus"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end"
android:paddingStart="5dp" android:paddingStart="5dp"
android:gravity="right" /> android:paddingEnd="0dp" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_dailytotal" android:id="@+id/diaconn_g8_history_dailytotal"
android:layout_width="56dp" android:layout_width="56dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end"
android:paddingStart="10dp" android:paddingStart="10dp"
android:gravity="right" android:paddingEnd="0dp"
android:visibility="gone"/> android:visibility="gone" />
<TextView <TextView
android:id="@+id/diaconn_g8_history_alarm" android:id="@+id/diaconn_g8_history_alarm"
android:layout_width="100dp" android:layout_width="100dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="5dp" /> android:paddingStart="5dp"
android:paddingEnd="0dp" />
</LinearLayout> </LinearLayout>

View file

@ -8,7 +8,6 @@
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
tools:context="info.nightscout.androidaps.diaconn.activities.DiaconnG8UserOptionsActivity"> tools:context="info.nightscout.androidaps.diaconn.activities.DiaconnG8UserOptionsActivity">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -110,16 +109,11 @@
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal"
android:padding="5dp" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="20dp" android:layout_marginStart="20dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:gravity="center" android:gravity="center"
android:orientation="horizontal"> android:orientation="horizontal">
@ -191,17 +185,11 @@
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal"
android:padding="5dp" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="20dp" android:layout_marginStart="20dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:gravity="center" android:gravity="center"
android:orientation="horizontal"> android:orientation="horizontal">
@ -273,16 +261,11 @@
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal"
android:padding="5dp" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="20dp" android:layout_marginStart="20dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:gravity="center" android:gravity="center"
android:orientation="horizontal"> android:orientation="horizontal">
@ -306,7 +289,6 @@
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" /> android:background="?android:attr/dividerHorizontal" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -2,10 +2,11 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:paddingStart="16dp" android:layout_height="56dp"
android:textSize="20sp"
android:gravity="center_vertical"
android:textColor="#FFFFFF"
tools:text="Test"
android:background="?selectableItemBackground" android:background="?selectableItemBackground"
android:layout_height="56dp" /> android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="0dp"
android:textColor="#FFFFFF"
android:textSize="20sp"
tools:text="Test" />

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="horizontal"> android:orientation="horizontal">
@ -10,6 +11,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="end" android:gravity="end"
android:paddingStart="0dp"
android:paddingEnd="5dp" android:paddingEnd="5dp"
android:textSize="14sp" /> android:textSize="14sp" />
@ -21,7 +23,8 @@
android:paddingStart="2dp" android:paddingStart="2dp"
android:paddingEnd="2dp" android:paddingEnd="2dp"
android:text=":" android:text=":"
android:textSize="14sp" /> android:textSize="14sp"
tools:ignore="HardcodedText" />
<TextView <TextView
android:id="@+id/value" android:id="@+id/value"
@ -30,6 +33,8 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="start" android:gravity="start"
android:paddingStart="5dp" android:paddingStart="5dp"
android:paddingEnd="0dp"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="14sp" /> android:textSize="14sp" />
</LinearLayout> </LinearLayout>

View file

@ -4,14 +4,12 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context="info.nightscout.androidaps.plugins.pump.medtronic.MedtronicFragment"> tools:context="info.nightscout.androidaps.plugins.pump.medtronic.MedtronicFragment">
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_above="@+id/buttons" android:layout_above="@+id/buttons"
android:fillViewport="true"> android:fillViewport="true">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -38,7 +36,6 @@
android:textAppearance="?android:attr/textAppearanceSmall" /> android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="2dip" android:layout_height="2dip"
@ -86,10 +83,8 @@
android:textSize="14sp" android:textSize="14sp"
tools:ignore="HardcodedText,RtlSymmetry" /> tools:ignore="HardcodedText,RtlSymmetry" />
</LinearLayout> </LinearLayout>
<View <View
android:id="@+id/rl_battery_view" android:id="@+id/rl_battery_view"
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -141,10 +136,8 @@
android:textSize="14sp" android:textSize="14sp"
tools:ignore="RtlSymmetry" /> tools:ignore="RtlSymmetry" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="2dip" android:layout_height="2dip"
@ -192,7 +185,6 @@
android:textSize="14sp" android:textSize="14sp"
tools:ignore="HardcodedText,RtlSymmetry" /> tools:ignore="HardcodedText,RtlSymmetry" />
</LinearLayout> </LinearLayout>
<TextView <TextView
@ -249,7 +241,6 @@
android:textSize="14sp" android:textSize="14sp"
tools:ignore="RtlSymmetry" /> tools:ignore="RtlSymmetry" />
</LinearLayout> </LinearLayout>
<View <View
@ -348,7 +339,6 @@
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="2dip" android:layout_height="2dip"
@ -454,7 +444,6 @@
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" /> android:background="?android:attr/dividerHorizontal" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -494,7 +483,6 @@
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="2dip" android:layout_height="2dip"
@ -581,7 +569,6 @@
android:paddingEnd="0dp" android:paddingEnd="0dp"
android:text="@string/refresh" /> android:text="@string/refresh" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/history" android:id="@+id/history"
style="@style/ButtonSmallFontStyle" style="@style/ButtonSmallFontStyle"
@ -602,8 +589,7 @@
android:drawableTop="@drawable/ic_danarstats" android:drawableTop="@drawable/ic_danarstats"
android:paddingStart="0dp" android:paddingStart="0dp"
android:paddingEnd="0dp" android:paddingEnd="0dp"
android:text="RL Stats" /> android:text="@string/riley_statistics" />
</LinearLayout> </LinearLayout>

View file

@ -7,7 +7,6 @@
android:paddingTop="@dimen/activity_vertical_margin" android:paddingTop="@dimen/activity_vertical_margin"
tools:context="info.nightscout.androidaps.plugins.pump.medtronic.dialog.MedtronicHistoryActivity"> tools:context="info.nightscout.androidaps.plugins.pump.medtronic.dialog.MedtronicHistoryActivity">
<LinearLayout <LinearLayout
android:id="@+id/medtronic_historytop" android:id="@+id/medtronic_historytop"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -20,7 +19,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:text="Type:" android:text="@string/medtronic_history_type"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:textAppearance="?android:attr/textAppearanceSmall" />
<Spinner <Spinner
@ -30,16 +29,15 @@
android:layout_marginEnd="20dp" /> android:layout_marginEnd="20dp" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="right" android:layout_gravity="end"
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@drawable/pillborder" android:background="@drawable/pillborder"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:text="@string/medtronic_pump_history" /> android:text="@string/medtronic_pump_history" />
</LinearLayout> </LinearLayout>
<TextView <TextView

View file

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp" android:layout_height="40dp"
android:orientation="horizontal"
android:paddingStart="20dp"> android:paddingStart="20dp">
<TextView <TextView
android:id="@+id/medtronic_history_time" android:id="@+id/medtronic_history_time"
android:layout_width="88dp" android:layout_width="88dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="Date" android:textSize="12sp"
android:textSize="12dp" /> tools:text="Date" />
<TextView <TextView
android:id="@+id/medtronic_history_source" android:id="@+id/medtronic_history_source"
android:layout_width="132dp" android:layout_width="132dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="Source" android:textSize="12sp"
android:textSize="12dp" /> tools:text="Source" />
<TextView <TextView
android:id="@+id/medtronic_history_description" android:id="@+id/medtronic_history_description"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="Description"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="12dp" /> android:textSize="12sp"
tools:text="Description" />
</LinearLayout> </LinearLayout>

View file

@ -123,5 +123,7 @@
<string name="mdt_tbr_remaining">%1$.1f U/h (%2$d min remaining)</string> <string name="mdt_tbr_remaining">%1$.1f U/h (%2$d min remaining)</string>
<string name="sixdigitnumber" translatable="false">^\\d{6}</string> <string name="sixdigitnumber" translatable="false">^\\d{6}</string>
<string name="invalid_history_data">Invalid pump history data detected. Open new issue and provide logs.</string> <string name="invalid_history_data">Invalid pump history data detected. Open new issue and provide logs.</string>
<string name="riley_statistics">RL Stats</string>
<string name="medtronic_history_type">Type:</string>
</resources> </resources>

View file

@ -29,7 +29,7 @@
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="right" android:layout_gravity="end"
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@drawable/pillborder" android:background="@drawable/pillborder"

View file

@ -29,7 +29,7 @@
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="right" android:layout_gravity="end"
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@drawable/pillborder" android:background="@drawable/pillborder"

View file

@ -27,6 +27,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="10dp" android:paddingStart="10dp"
android:paddingEnd="0dp"
android:textSize="16sp" /> android:textSize="16sp" />
<TextView <TextView
@ -34,7 +35,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="10dp" android:paddingStart="10dp"
android:paddingEnd="0dp"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton

View file

@ -5,6 +5,7 @@
android:orientation="vertical" android:orientation="vertical"
android:paddingStart="10dp" android:paddingStart="10dp"
android:paddingTop="5dp" android:paddingTop="5dp"
android:paddingEnd="0dp"
android:paddingBottom="5dp"> android:paddingBottom="5dp">
<TextView <TextView

View file

@ -5,7 +5,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
tools:context="info.nightscout.androidaps.plugins.pump.common.hw.rileylink.dialog.RileyLinkStatusActivity"> tools:context="info.nightscout.androidaps.plugins.pump.common.hw.rileylink.dialog.RileyLinkStatusActivity">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout
@ -21,8 +20,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
</com.google.android.material.tabs.TabLayout> </com.google.android.material.tabs.TabLayout>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<androidx.viewpager.widget.ViewPager <androidx.viewpager.widget.ViewPager
@ -32,14 +31,13 @@
app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout_editor_absoluteY="55dp" /> tools:layout_editor_absoluteY="55dp" />
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/rileylink_settings_fab" android:id="@+id/rileylink_settings_fab"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end|bottom" android:layout_gravity="end|bottom"
android:contentDescription="@string/refresh"
android:layout_margin="@dimen/fab_margin" android:layout_margin="@dimen/fab_margin"
app:srcCompat="@drawable/ic_refresh" /> app:srcCompat="@drawable/ic_refresh" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -2,7 +2,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".plugins.pump.medtronic.dialog.RileyLinkStatusDevice"> tools:context="info.nightscout.androidaps.plugins.pump.common.hw.rileylink.dialog.RileyLinkStatusDevice">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -15,6 +15,7 @@
android:id="@+id/rileyLinkDeviceList" android:id="@+id/rileyLinkDeviceList"
tools:layout_editor_absoluteX="8dp" tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp" /> tools:layout_editor_absoluteY="8dp" />
</LinearLayout> </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -1,25 +1,27 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp" android:layout_height="40dp"
android:paddingStart="15dp"> android:orientation="horizontal"
android:paddingStart="15dp"
android:paddingEnd="0dp">
<TextView <TextView
android:id="@+id/rileylink_device_label" android:id="@+id/rileylink_device_label"
android:layout_width="184dp" android:layout_width="184dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="Command" android:textSize="12sp"
android:textSize="12dp" /> tools:text="Command" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
style="@style/GrayButton"
android:id="@+id/rileylink_device_action" android:id="@+id/rileylink_device_action"
style="@style/GrayButton"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="Description"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="12dp" /> android:textSize="12sp"
tools:text="Description" />
</LinearLayout> </LinearLayout>

View file

@ -12,16 +12,14 @@
<TextView <TextView
android:id="@+id/rileylink_historystatus" android:id="@+id/rileylink_historystatus"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="10px" android:layout_height="10dp"
android:layout_below="@+id/medtronic_historytop"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:gravity="center_horizontal" /> android:gravity="center_horizontal" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rileylink_history_list" android:id="@+id/rileylink_history_list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"/>
android:layout_below="@+id/rileylink_historystatus" />
</LinearLayout> </LinearLayout>

View file

@ -1,33 +1,34 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp" android:layout_height="40dp"
android:paddingStart="20dp"> android:orientation="horizontal"
android:paddingStart="20dp"
android:paddingEnd="0dp">
<TextView <TextView
android:id="@+id/rileylink_history_time" android:id="@+id/rileylink_history_time"
android:layout_width="100dp" android:layout_width="100dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="Date"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="12dp" /> android:textSize="12sp"
tools:text="Date" />
<TextView <TextView
android:id="@+id/rileylink_history_source" android:id="@+id/rileylink_history_source"
android:layout_width="80dp" android:layout_width="80dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="Source"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="12dp" /> android:textSize="12sp"
tools:text="Source" />
<TextView <TextView
android:id="@+id/rileylink_history_description" android:id="@+id/rileylink_history_description"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="Description"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="12dp" /> android:textSize="12sp"
tools:text="Description" />
</LinearLayout> </LinearLayout>