diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/BankListAdapter.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/BankListAdapter.kt index 7b8b7bc6..ee546231 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/BankListAdapter.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/BankListAdapter.kt @@ -11,6 +11,7 @@ import net.dankito.banking.fints4java.android.R import net.dankito.banking.fints4java.android.ui.adapter.filter.BankInfoFilter import net.dankito.fints.banks.BankFinder import net.dankito.fints.model.BankInfo +import net.dankito.utils.android.extensions.setTintColor import net.dankito.utils.android.ui.adapter.ListAdapter @@ -24,7 +25,14 @@ open class BankListAdapter(protected val bankFinder: BankFinder = BankFinder()) val view = convertView ?: inflater?.inflate(R.layout.list_item_bank_info, parent, false) view?.let { - // view.imgSupportsFints30.setImageResource(if (item.supportsFinTs3_0) ) // TODO + if (item.supportsFinTs3_0) { + view.imgSupportsFints30.setImageResource(R.drawable.ic_check_circle_white_48dp) + view.imgSupportsFints30.setTintColor(R.color.list_item_bank_info_bank_supported) + } + else { + view.imgSupportsFints30.setImageResource(R.drawable.ic_clear_white_48dp) + view.imgSupportsFints30.setTintColor(R.color.list_item_bank_info_bank_not_supported) + } view.txtvwBankName.text = item.name diff --git a/fints4javaAndroidApp/src/main/res/drawable-hdpi/ic_check_circle_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-hdpi/ic_check_circle_white_48dp.png new file mode 100755 index 00000000..4f967453 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-hdpi/ic_check_circle_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-hdpi/ic_clear_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-hdpi/ic_clear_white_48dp.png new file mode 100755 index 00000000..6b717e0d Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-hdpi/ic_clear_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-mdpi/ic_check_circle_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-mdpi/ic_check_circle_white_48dp.png new file mode 100755 index 00000000..d36d696e Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-mdpi/ic_check_circle_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-mdpi/ic_clear_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-mdpi/ic_clear_white_48dp.png new file mode 100755 index 00000000..b7c7ffd0 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-mdpi/ic_clear_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-xhdpi/ic_check_circle_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-xhdpi/ic_check_circle_white_48dp.png new file mode 100755 index 00000000..2c6e4741 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-xhdpi/ic_check_circle_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-xhdpi/ic_clear_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-xhdpi/ic_clear_white_48dp.png new file mode 100755 index 00000000..39641921 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-xhdpi/ic_clear_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-xxhdpi/ic_check_circle_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-xxhdpi/ic_check_circle_white_48dp.png new file mode 100755 index 00000000..980d10b4 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-xxhdpi/ic_check_circle_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-xxhdpi/ic_clear_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-xxhdpi/ic_clear_white_48dp.png new file mode 100755 index 00000000..4927bc24 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-xxhdpi/ic_clear_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-xxxhdpi/ic_check_circle_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-xxxhdpi/ic_check_circle_white_48dp.png new file mode 100755 index 00000000..60463c56 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-xxxhdpi/ic_check_circle_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/drawable-xxxhdpi/ic_clear_white_48dp.png b/fints4javaAndroidApp/src/main/res/drawable-xxxhdpi/ic_clear_white_48dp.png new file mode 100755 index 00000000..bb21ce03 Binary files /dev/null and b/fints4javaAndroidApp/src/main/res/drawable-xxxhdpi/ic_clear_white_48dp.png differ diff --git a/fints4javaAndroidApp/src/main/res/layout/list_item_bank_info.xml b/fints4javaAndroidApp/src/main/res/layout/list_item_bank_info.xml index 5df879d7..64cc38f3 100644 --- a/fints4javaAndroidApp/src/main/res/layout/list_item_bank_info.xml +++ b/fints4javaAndroidApp/src/main/res/layout/list_item_bank_info.xml @@ -16,55 +16,62 @@ android:layout_alignParentStart="true" android:layout_alignParentBottom="true" android:layout_centerVertical="true" - android:src="@android:drawable/ic_delete" /> - + > + android:gravity="center_vertical" + android:textSize="@dimen/list_item_bank_info_bank_name_text_size" + /> - + android:layout_marginBottom="@dimen/list_item_bank_info_bank_name_margin_bottom" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentBottom="true" + style="@style/TextAppearance.AppCompat.Small" + android:gravity="center_vertical" + /> - + - - - - - + \ No newline at end of file diff --git a/fints4javaAndroidApp/src/main/res/values/colors.xml b/fints4javaAndroidApp/src/main/res/values/colors.xml index a7ed4f4b..f792bb38 100644 --- a/fints4javaAndroidApp/src/main/res/values/colors.xml +++ b/fints4javaAndroidApp/src/main/res/values/colors.xml @@ -6,4 +6,7 @@ @android:color/darker_gray + #ff669900 + #ffcc0000 + diff --git a/fints4javaAndroidApp/src/main/res/values/dimens.xml b/fints4javaAndroidApp/src/main/res/values/dimens.xml index 72f9a0c7..5823c689 100644 --- a/fints4javaAndroidApp/src/main/res/values/dimens.xml +++ b/fints4javaAndroidApp/src/main/res/values/dimens.xml @@ -25,9 +25,10 @@ 60dp 60dp 60dp - 12dp - 30dp - 80dp + 16sp + 4dp + 18dp + 74dp 12dp 12dp