解决方案 »
- Android如何实现蓝牙自动配对
- [急 ]系统启动错误:Could not stat dex cache directory '/data/dalvik-cache'
- android gdbserver调试问题GDBserver will reopen the connection.
- 发送彩信失败,对方接收不到?
- 想业余做ANDROID的开发,有经验的人来指点指点,谢谢。
- 编译android源码时,意外中断,如何能让其接着编译?
- 关于ListView 显示的问题 在线等!!!!!
- PC与Android的UDP通信
- 请教各位专家:安卓webview能否使用jwplayer 最好demo,如果否能否不使用webview APP嵌入网页
- 有没有熟悉移动端模拟炒股平台开发的朋友?请教问题
- 怎样用Comparator比较文件的大小
- onTouch事件错误
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/new_linearlayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/notices_list"
android:clickable="true"
android:orientation="horizontal"
android:weightSum="4" > <RelativeLayout
android:layout_width="110dp"
android:layout_height="match_parent"
> <ImageView
android:id="@+id/new_item_image"
android:layout_width="90dp"
android:layout_height="45dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_marginLeft="6dp" />
</RelativeLayout> <RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/notices_list"
android:orientation="vertical" > <LinearLayout
android:id="@+id/qwer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" > <RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/new_item_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:gravity="top"
android:text="asdfasd"
android:textSize="15dp" />
</RelativeLayout> <RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" > <TextView
android:id="@+id/new_item_content"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:ellipsize="end"
android:maxLines="2"
android:singleLine="false"
android:textColor="@color/small_text_color"
android:textSize="13dp" /> <RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/new_item_content" > <Button
android:id="@+id/new_item_comment"
android:layout_width="45dp"
android:layout_height="30dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:background="@color/touming"
android:drawableLeft="@drawable/comment_b"
android:gravity="center_vertical"
android:paddingLeft="1dp"
android:text="40"
android:textColor="#999999"
android:textSize="11sp" />
</RelativeLayout> <Button
android:id="@+id/new_item_people"
android:layout_width="45dp"
android:layout_height="30dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginRight="44dp"
android:background="@color/touming"
android:drawableLeft="@drawable/new_people"
android:gravity="center_vertical"
android:paddingLeft="0dp"
android:text="13"
android:textColor="#999999"
android:textSize="11sp" />
</RelativeLayout> </LinearLayout>
</RelativeLayout>
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/background" >
</LinearLayout></LinearLayout>
给个思路吧,做个异步加载工具类,开启新线程去加载Item。