解决方案 »
- 我想问一下用eclipse开发android为什么鼠标光标是这样??
- 过线程下载图片压缩的时候出现这个错误at java.io.IOException: Mark has been invalidated.
- Android的Widget尺寸问题
- 跪求大神帮助,我在Android项目里面给button进行SetText的时候一直报错NulPointerException
- 如何实现MIUI联系人那样的右边那种按字母顺序的快速定位条
- service频繁bind unbind后forceclose
- Android怎样实现双缓冲?----绘制地图时怎样提高效率?
- android NDK开发,遇到 undefined reference to
- 去除自启动应用的问题
- Android JNI 中通过接收Bitmap对象获取像素,十万火急!!!!!
- 关于分辨率的问题
- dn't find class "jarservicetest.JarService"on path: /data/app/.servicetest-1.apk
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/dian" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/d_units_info1"
android:textColor="@color/d_units_info"
android:textSize="@dimen/d_units_info" />
</LinearLayout>
你的这种方法可行!!!
但是我的方法错误在哪?
请指教!!!!!主要是因为android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
这个属性,而且它的上一层又是 android:layout_width="wrap_content"
android:layout_height="wrap_content"
所有达不到你要的效果。
你的这种方法可行!!!
但是我的方法错误在哪?
请指教!!!!!主要是因为android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
这个属性,而且它的上一层又是 android:layout_width="wrap_content"
android:layout_height="wrap_content"
所有达不到你要的效果。
你觉得我应该怎么写?请指教!!!
你的这种方法可行!!!
但是我的方法错误在哪?
请指教!!!!!主要是因为android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
这个属性,而且它的上一层又是 android:layout_width="wrap_content"
android:layout_height="wrap_content"
所有达不到你要的效果。
你觉得我应该怎么写?请指教!!!
你把最上层布局的
android:layout_width="match_parent"
android:layout_height="match_parent"
改成wrap_content属性,你要全黑的效果可以在activity的style定义
你试试看行不行,能不能达到你的效果。