zoukankan      html  css  js  c++  java
  • ListView

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent">
        <!-- 直接使用数组资源给出列表项 -->
        <!-- 设置使用红色的分隔条 -->
        <ListView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:entries="@array/books"
                android:divider="#f00"
                android:dividerHeight="2px"
                android:headerDividersEnabled="false"/>
    </LinearLayout>
    View Code
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <string-array name="books">
            <item>疯狂Java讲义</item>
            <item>疯狂前端开发讲义</item>
            <item>疯狂XML讲义</item>
            <item>疯狂Android讲义</item>
        </string-array>
    </resources>
  • 相关阅读:
    chrome.declarativeWebRequest
    webRequest模块的解读
    C#连接池
    sftp
    Lynx
    LD_PRELOAD & LD_LIBRARY_PATH 动态库路径
    libc.so.6 误删后修复
    man 转 pdf _____ jpg 转 pdf
    here文档
    lsof fuser
  • 原文地址:https://www.cnblogs.com/superxuezhazha/p/11480799.html
Copyright © 2011-2022 走看看