欢迎使用 Typecho欢迎使用 Typecho欢迎使用 Typecho欢迎使用 Typecho如果您看到这篇文章,表示您的 blog 已经安装成功.
请输入图片描述

欢迎使用 Typecho欢迎使用 Typecho欢迎使用 Typecho欢迎使用 Typecho如果您看到这篇文章,表示您的 blog 已经安装成功.

欢迎使用 Typecho欢迎使用 Typecho欢迎使用 Typecho欢迎使用 Typecho如果您看到这篇文章,表示您的 blog 已经安装成功.

lxml和Requests

每个item的布局如下:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/recycler_view_test_item_person_view" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="15dp" android:background="#aabbcc"
        >
    <TextView android:id="@+id/recycler_view_test_item_person_name_tv" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="18sp" android:background="#ccbbaa"
            />
    <TextView android:id="@+id/recycler_view_test_item_person_age_tv" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="5dp" android:background="#aaccbb" android:textSize="15sp"
            />
</LinearLayout>

item的布局很简单,只有两个TextView,一个用来显示名字,一个用来显示年龄。

Person的实体类就不贴代码了,两个属性:名字和年龄。

然后需要使用到RecyclerView,所以需要把support v7添加到class path,并在布局中添加该控件:

<android.support.v7.widget.RecyclerView android:id="@+id/recycler_view_test_rv" android:scrollbars="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#bbccaa"
                />

然后在onCreate中:
4、FULL OUTER JOIN

SELECT Websites.name, access_log.count, access_log.date

FROM Websites

FULL OUTER JOIN access_log

ON Websites.id=access_log.site_id


IdLastNameFirstNameAddressCity
1AdamsJohnOxford StreetLondon
2BushGeorgeFifth AvenueNew York
3CarterThomasChangan StreetBeijing