怎样让显示区域大于屏幕? 怎样让显示区域大于屏幕?类似 愤怒的小鸟 里面的游戏画面比屏幕的区域大,这个是怎么做到的@@另外怎么移动屏幕?bow~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 例如在自定义view的draw函数,可以自己指定draw的区域,把draw的区域设置为大于屏幕区域的值,这样就可以让显示区域大于屏幕吧。 在你的布局文件里可以设置控件View的大小例如:<ImageView android:src="@drawable/image" android:id="@+id/scale" android:layout_width="2100dip" android:layout_height="wrap_content"/>一般的设置的宽度或者是高度超出屏幕的分辨率的时候,就会大出屏幕大小的。根据的layout_width和layout_height进行设置的 有没有动态设置的方法?给段代码瞅瞅吧~~~~(>_<)~~~~ bow~ 我的那个activity的布局文件里头没有关于view的信息...只有一个linearlayout...估计view是属于这个linearlayout的...这个该怎么搞呢@@<?xml version="1.0" encoding="utf-8"?><AbsoluteLayoutandroid:id="@+id/widget0"android:layout_width="fill_parent"android:layout_height="fill_parent"android:background="@drawable/back2"xmlns:android="http://schemas.android.com/apk/res/android"><LinearLayoutandroid:id="@+id/widget30"android:layout_width="fill_parent"android:layout_height="fill_parent"android:orientation="horizontal"android:layout_x="0dip"android:layout_y="0dip"></LinearLayout></AbsoluteLayout> 对啊!ViewonDraw()方法的确可行但是加载图片信息等,很影响性能啊! Java程序移植到Android上容易吗? listview嵌套gridview 关于修改开机画面的问题 应用程序卸载问题 声控 背景透明 有java经验 转安卓行吗? 调用完doInBackground 后,不调用 onPostExecute 大家开发机什么配置 eclipse每次新建一个项目都有多余的代码 怎么引用 hide的包啊? socket传递字符流等待问题
例如:<ImageView android:src="@drawable/image"
android:id="@+id/scale"
android:layout_width="2100dip"
android:layout_height="wrap_content"/>
一般的设置的宽度或者是高度超出屏幕的分辨率的时候,就会大出屏幕大小的。根据的layout_width和layout_height进行设置的
给段代码瞅瞅吧~~~~(>_<)~~~~
bow~
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:id="@+id/widget0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/back2"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<LinearLayout
android:id="@+id/widget30"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:layout_x="0dip"
android:layout_y="0dip"
></LinearLayout>
</AbsoluteLayout>