我从早上起就一直在尝试这个,但我无法让它发挥作用.
我想要做的是为TextView创建一个有点长的阴影,类似于以下内容:
http://www.iceflowstudios.com/v3/wp-content/uploads/2013/07/long_shadow_banner.jpg http://web3canvas.com/wp-content/uploads/2013/07/lsd-ps-action-720x400巴纽
到目前为止,我的解决方案是创建大量的TextView并将它们相互层叠,但如果我按照当前的方式使用它会有很多性能问题.
另一个解决方案是使用具有类似吸引力的自定义字体,但我找不到任何与我当前使用的字体相匹配的字体.
所以我想知道,是否可以使用:(我必须提一下,textview是动态创建的)
TV.setShadowLayer(1f, 5f, 5f, Color.GREY);
Run Code Online (Sandbox Code Playgroud)
要在一行中创建多个(作为级联图层),使阴影看起来很平滑?或者你们建议任何其他解决方案?
提前致谢.
我已经创建了一个游戏,其中包含了许多在另一个类中列出的方法...所以我想全局使用这个类,所以我将它存储在DLL中(以便能够在其他几个项目中使用它)
但不知何故,Visual Studio找不到我引用的DLL的命名空间!

有什么我做错了吗?'fncs'DLL的命名空间也称为'fncs'...它们都是在同一版本的.NET中创建的......提前感谢!
DLL:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
using System.Runtime.InteropServices;
namespace fncs {
class io {
public static bool write(string dir, object[] obj) {
try {
File.WriteAllLines(dir, ((System.Collections.IEnumerable)obj).Cast<object>().Select(x => x.ToString()).ToArray());
} catch (Exception e) {
return false;
} return true;
}
public static string read(string dir) {
StreamReader r = new StreamReader(dir);
return r.ReadToEnd();
}
public static void saveToServer(string x, string y) {
// hidden
}
}
class rc {
public …Run Code Online (Sandbox Code Playgroud) 我似乎无法打开CD托盘.它突然出现了'extern C'的错误,extern意味着什么呢?
谢谢!这是图像! C++打开CD托盘时出错