
This results in a slightly larger apk (e.g. 500KiB), but it reduces the scope for bugs greatly. We still get all the benefits of only having to maintain a single density-independent vector (rather than several density dependent PNGs and all the work that involves). The class of bugs that it solves is that there are several places where vectors cannot be used, and you wont notice when developing on a device newer than 5.0. For example, notification icons, `TextView` and its `android:drawableStart` attribute. Fixes #913.
12 lines
491 B
XML
12 lines
491 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ImageView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="80dp"
|
|
android:layout_height="20dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:src="@drawable/donation_option_bitcoin"
|
|
android:contentDescription="@string/menu_bitcoin" /> |