怎样让显示区域大于屏幕? 怎样让显示区域大于屏幕?类似 愤怒的小鸟 里面的游戏画面比屏幕的区域大,这个是怎么做到的@@另外怎么移动屏幕?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()方法的确可行但是加载图片信息等,很影响性能啊! Android:ImgeView控件的相关方法是如何支持多种格式图片(如.png,.jpg)的? 关于android中断 HashSet 安卓框架怎么学习 关于intent-filter的问题,请教大家 怎么知道点在按钮的那个地方 qq阅读中的那种翻页效果怎么弄出来的啊? File Uri 关于安卓的问题 Android Studio 3.2.1最新版,更新后编译程序报错“Could not find method jackOptions() for argum” 怎么引用 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>