小编hem*_*ant的帖子

在横向模式下启动(启动图像)?

我正在开发一种仅在横向模式下工作的游戏.当我将启动图像(Default.png)导入到我的xcode proj并运行它时,图像以纵向模式显示,然后视图以横向模式启动.如何才能使我的启动/启动图像仅以横向模式显示?

iphone iphone-sdk-3.0 ios4 ios

7
推荐指数
1
解决办法
8939
查看次数

在android中的按钮上设置图像?

我一直试图使用以下代码在按钮上设置图像,但它似乎不起作用...我认为我做错了是我正在使用的图像的路径,但我尝试了不同的路径,它不会工作...我已将我的图像复制到res文件夹中的drawable文件夹...我在这里做错了什么?

final Button next = (Button) findViewById(R.id.Button02) ;
 Drawable d = Drawable.createFromPath("@drawable/finalarrow1");
  next.setBackgroundDrawable(d);
Run Code Online (Sandbox Code Playgroud)

android button

7
推荐指数
2
解决办法
4万
查看次数

标签 统计

android ×1

button ×1

ios ×1

ios4 ×1

iphone ×1

iphone-sdk-3.0 ×1