我正在挖掘形状,发现一些难以找到答案的问题。希望你能帮助我:关于形状创建的一些问题
1 - shape =“0”是什么意思?
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="0"
>
2 - 为什么要设置如此精确的拐角值?是否有一些工具可能将形状转换为XML,这就是这种精度的原因?
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="0"
>
<gradient
...
>
<corners
android:topLeftRadius="0.100000024dip"
android:topRightRadius="0.100000024dip"
android:bottomLeftRadius="10.0dip"
android:bottomRightRadius="10.0dip"
>
</corners>
</shape>
3 - 什么是背景渐变的最佳半径?我看到有些人使用300以上的价值。
由于形状上的
我从我的同事从大型Android开发公司获得的应用程序代码。他们真的很庞大,我怀疑他们没有理由使用它。我不知道。 – sandalone
即使在由“专业”开发人员编写代码时,您也会感到惊讶吗? – CaseyB