Android 绿色机器人:如何为GdaActivity设置背景图片
有谁能给出一个清晰的例子,说明如何在其构造函数方法(或其他方法)中设置Android 绿色机器人:如何为GdaActivity设置背景图片,android,android-activity,background,image,greendroid,Android,Android Activity,Background,Image,Greendroid,有谁能给出一个清晰的例子,说明如何在其构造函数方法(或其他方法)中设置GDActivity中的背景图片吗 GDActivity使用特殊的布局结构: <?xml version="1.0" encoding="utf-8"?> <view android:layout_width="fill_parent" android:layout_height="fill_parent" class="greendroid.widget.A
GDActivity
中的背景图片吗
GDActivity使用特殊的布局结构:
<?xml version="1.0" encoding="utf-8"?>
<view
android:layout_width="fill_parent"
android:layout_height="fill_parent"
class="greendroid.widget.ActionBarHost"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gd_action_bar_host">
<view
android:layout_width="fill_parent"
android:layout_height="fill_parent"
class="greendroid.widget.ActionBar"
android:id="@+id/gd_action_bar"
/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/gd_action_bar_content_view"/>
</view>
我们必须使用标准的窗口访问权限
Drawable mBackgroundDrawable = getResources().getDrawable(R.drawable.splash);
getWindow().setBackgroundDrawable(mBackgroundDrawable);
如有任何更正,将不胜感激
Drawable mBackgroundDrawable = getResources().getDrawable(R.drawable.splash);
getWindow().setBackgroundDrawable(mBackgroundDrawable);