irobotxx
irobotxx

Reputation: 6063

Icon size to design for ImageViews in Custom Layouts

Good day, Just a quick Question here. I have ready the icon design guidelines, but would like to be clear on what i want to do. For a custom Layout (sw-360dp) which has an ImageView

<ImageView
    android:id="@+id/header"
    android:src="@my icon here"
    android:layout_width="160dp"
    android:layout_height="160dp"
    android:adjustViewBounds="true"
    android:scaleType="fitXY"/>

what will be the best size to design an icon so that i don't lose sharpness, taking into consideration that in other layouts which use ListView or other ImageViews, the ImageView could be smaller or bigger.What am asking is, can i just design one big enough icon and let android do the sizing on the ImageViews as required by the different layouts or should i target a specific size. Also taking into consideration, designing for different screen sizes and densities. Hope i am clear on this. Many Thanks in Advance

Upvotes: 0

Views: 223

Answers (1)

Quamber Ali
Quamber Ali

Reputation: 2171

Try nine patch as they are normally used for icons you wouldn't need large images and worry about large screen displays at the same time

enter image description here

Upvotes: 0

Related Questions