本文介绍了透明9patch形象:行通过展示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了它具有9patch线呈现一个低谷TRANSPARANT 9patch形象。

I got a transparant 9patch image which has the 9patch lines showing trough.

这是输出:

This is the output:

显然,我不希望水平线可见。

Obviously I don't want the horizontal lines to be visible.

这是我创建的9patch:

This is how I created the 9patch:

这是在应用程序中使用的最终图像:

This is the final image that is used in the application:

据我所知的9patch是正确的。我需要做什么才能改变水平线消失?

AFAIK the 9patch is correct. What do I need to change in order for the horizontal lines to disappear?

推荐答案

不需要的行来自ninepatch重叠的固定(非拉伸)的部件。这是发生,因为你是在像素的高度比固定部分的高度之和较小绘制它。

The unwanted lines come from the fixed (non-stretched) parts of the ninepatch overlapping. This is happening because you are drawing it at a pixel height that is smaller than the sum of the heights of the fixed sections.

由于@kcoppock上面再缩回好奇地说,左手边缘应该是纯黑色的地方是垂直拉伸的。

As @kcoppock said above and then curiously retracted, the left hand edge should be solid black where it is vertically stretchable.

这篇关于透明9patch形象:行通过展示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 21:57