Android的9补丁工具:什么是新的布局界限的功能? [英] Android 9 Patch tool: What is the new layout bounds feature?

查看:106
本文介绍了Android的9补丁工具:什么是新的布局界限的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新了Android SDK的R20,开始了9修补工具。

I've updated r20 of the Android SDK and started the 9 Patch tool.

似乎有一个新的功能 - 在按住Ctrl键并单击增加了其被称为红色像素布局界限。

There seems to be a new feature - Holding Control and clicking adds layout bounds which are referred to as red pixels.

我已经看到了在文档但似乎过时了。

I've taken a look at the documentation but it seems out of date.

我的问题是,使用什么样的布局界限,什么是使用它们的最好方法是什么?

My question is, what are layout bounds used for and what is the best way to use them?

感谢。

推荐答案

编辑:支持Android中4.3(API等级18)。请参见韦恩href="http://stackoverflow.com/a/18479445/517561">更近的回答 。

Supported in Android 4.3 (API level 18). See more recent answer by wayne.

原文:它不记录,因为它不是操作系统的一部分,然而,只有工具。红色的像素设置布局界限不使用Android框架(如杰利贝恩4.1.1),所以不要将它们设置在这个时候。你可以推测这是什么意思声明凡在图像控件的布局界限应该的。看着 http://android-developers.blogspot.com/ 获得通知。

Original: It's not documented because it's not part of the OS yet, only the tools. The red pixels for setting layout bounds are not used by the Android framework (as of Jellybean 4.1.1), so don't set them at this time. You may speculate about what it means to declare where on your image the layout bounds of the control should be. And watch http://android-developers.blogspot.com/ for announcements.

这篇关于Android的9补丁工具:什么是新的布局界限的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆