user2635435
user2635435

Reputation:

android - Manually set ninepatch size

How can I manually set the size of the fixed parts of a NinePatch in Android?

I want to resize the not-stretchable parts

Upvotes: 1

Views: 146

Answers (1)

kabuko
kabuko

Reputation: 36302

From the documentation:

The NinePatch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges are scaled in one axis, and the middle is scaled in both axes.

The edges are not intended to be arbitrarily scaled. This is not what nine patches are designed to do.

Upvotes: 1

Related Questions