大佬教程收集整理的这篇文章主要介绍了这个Android Lint意味着什么:“错误的方向?”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://scheR_37_11845@as.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="@dimen/cell_height_1_of_3" > <ImageView android:id="@+id/item_cover" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="left" android:layout_marginLeft="8dp" android:scaleType="fitCenter" android:src="@drawable/doc_item_icon" /> <ImageView android:layout_width="fill_parent" android:layout_height="@dimen/cell_height_1_of_3" android:BACkground="#0000" android:padding="5dp" android:scaleType="centerInside" android:visibility="gone" /> <TextView android:id="@+id/item_title" android:layout_width="fill_parent" android:layout_height="fill_parent" android:ellipsize="end" android:gravity="center" android:maxLines="1" android:text="Add new" android:textColor="@color/office_color" android:textSize="@dimen/textview_small_size" /> </LinearLayout>
这是什么意思?如果我忽略这个lint错误会怎么样?
http://developer.android.com/tools/help/lint.html.
您必须指定布局的方向.
<LinearLayout xmlns:android="http://scheR_37_11845@as.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="vertical" //specify vertical or horizontal depending on your need android:layout_height="@dimen/cell_height_1_of_3" >
http://tools.android.com/tips/lint-checks.lint执行的检查清单.
以上是大佬教程为你收集整理的这个Android Lint意味着什么:“错误的方向?”全部内容,希望文章能够帮你解决这个Android Lint意味着什么:“错误的方向?”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。