<span role="heading" aria-level="2">明日计划:团队开发Fooks第二天</span>

一、明日计划

实现书籍列表按照数据条数生成列表数

二、今日成果

代码

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="140dp"
            android:text="读书"
            android:textSize="60sp"
            android:textColor="#0A0A0A"/>

    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="90dp">

        <ListView
            android:id="@+id/book_list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#FFFFFF">

        </ListView>
    </LinearLayout>


    <TextView
        android:layout_marginTop="88dp"
        android:layout_width="match_parent"
        android:layout_height="1sp"
        android:background="#9FA3A5"></TextView>

    <TextView
        android:layout_marginTop="640dp"
        android:layout_width="match_parent"
        android:layout_height="1sp"
        android:background="#9FA3A5"></TextView>

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="600dp"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp">

        <Button
            android:id="@+id/btn_home"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:background="@drawable/ic_home_black_24dp"/>

        <Button
            android:id="@+id/btn_book"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_marginLeft="88dp"
            android:background="@drawable/ic_library_books_black_24dp" />

        <Button
            android:id="@+id/btn_person"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_marginLeft="77dp"
            android:background="@drawable/ic_person_black_24dp" />

    </LinearLayout>


</RelativeLayout>
activity_read.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#FFFFFF">


        <TextView
            android:id="@+id/book_show"
            android:layout_width="match_parent"
            android:text="@string/app_name"
            android:textSize="33dp"
            android:layout_height="80dp"
            android:gravity="center_vertical">

        </TextView>
</LinearLayout>
booklist.xml

 

全部评论

相关推荐

2025-12-14 11:43
黑龙江大学 Java
用微笑面对困难:确实比较烂,可以这么修改:加上大学的qs排名,然后大学简介要写一些,然后硕士大学加大加粗,科研经历第一句话都写上在复旦大学时,主要负责xxxx,简历左上角把学校logo写上,建议用复旦大学的简历模板
点赞 评论 收藏
分享
01-15 13:45
门头沟学院 Java
牛客92772631...:boss招聘挂岗位是要花钱的,花了钱不挂白不挂,别那么焦虑,但是也要做好跳槽的准备
找实习记录
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务