is hard, because there are lots of different devices, and you have to test your app on every single one of them.” — People who never develop for Android Mike Castleman (Meetup) Android Resources DevFest 2013 2 / 16
for different devices Let the platform choose the right one Set things up declaritively: don’t write any extra code! Mike Castleman (Meetup) Android Resources DevFest 2013 3 / 16
ldpi: 75% of base mdpi: base image size hdpi: 150% of base xhdpi: 200% of base ldpi mdpi hdpi xhdpi 48×48 64×64 96×96 128×128 Mike Castleman (Meetup) Android Resources DevFest 2013 12 / 16
— physical device pixels dp — “density-independent pixel” On mdpi, 1 px = 1 dp. Not so on other densities! Devices vary both in their density and in their size in dp. Mike Castleman (Meetup) Android Resources DevFest 2013 13 / 16
scale if you don’t have appropriate files. ldpi maybe irrelevant. Maybe just xhdpi if you’re feeling brave. Mike Castleman (Meetup) Android Resources DevFest 2013 14 / 16