Я хотел бы иметь возможность использовать один и тот же drawable для представления обоих:
и
как один и тот же чертеж, и перекрасьте выделение на основе некоторых программных значений, чтобы конечный пользователь мог повторно настроить интерфейс.
Каков наилучший способ сделать это? Я попытался (и повторно использовал значки из) этого предыдущего S.O. вопрос, но я не могу представить изменение как простое изменение оттенка, так как оно также изменяется в насыщении и значении.
Лучше ли сохранить значок как все белые в области, которую я хочу изменить? или прозрачным? или какой-либо другой сплошной цвет?
Есть ли какой-нибудь метод, который позволяет вам вычислить матрицу, основанную на различии между цветом red_icon и цветом blue_icon?