app第一阶段冲刺第三天

作者:@kuaiquxie
作者的github:https://github.com/bitebita
本文为作者原创,如需转载,请注明出处:https://www.cnblogs.com/dzwj/p/16167733.html


 

由于今天作业比较多,所以写的比较少,下面是布局代码

复制代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".activity.MainActivity">

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:background="@color/bottom_bg"
       android:orientation="horizontal">

      <TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_weight="10"
          android:gravity="center"
          android:padding="10dp"
          android:text="我的收藏"
          android:textColor="@color/gray_bg"
          android:textSize="25sp" />

   </LinearLayout>

         <com.linlang.grasharepro.view.ListViewCompat
             android:id="@+id/lv_mycollect"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:divider="#000040"
             android:dividerHeight="1dp"/>

</LinearLayout>
复制代码

 

布局展示

 

 

复制代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".activity.MainActivity">

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:background="@color/bottom_bg"
       android:orientation="horizontal">

      <TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_weight="10"
          android:gravity="center"
          android:padding="10dp"
          android:text="我的粉丝"
          android:textColor="@color/gray_bg"
          android:textSize="25sp" />

   </LinearLayout>

   <ScrollView
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_weight="1">

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

         <!-- 中间列表 -->
         <com.linlang.grasharepro.view.ListViewCompat
             android:id="@+id/lv_myfans"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:divider="#000040"
             android:dividerHeight="1dp"/>
      </LinearLayout>
   </ScrollView>

</LinearLayout>
复制代码

布局展示

 

 

复制代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".activity.MainActivity">

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:background="@color/bottom_bg"
       android:orientation="horizontal">

      <TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_weight="10"
          android:gravity="center"
          android:padding="10dp"
          android:text="我的关注"
          android:textColor="@color/gray_bg"
          android:textSize="25sp" />

   </LinearLayout>

   <ScrollView
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_weight="1">

      <LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content">
         <!-- 中间列表 -->
         <com.linlang.grasharepro.view.ListViewCompat
             android:id="@+id/lv_myfollow"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:divider="#000040"
             android:dividerHeight="1dp"/>
      </LinearLayout>
   </ScrollView>

</LinearLayout>
复制代码

 

 

布局展示

 

 

复制代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".activity.MainActivity">

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:background="@color/bottom_bg"
       android:orientation="horizontal">

      <TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_weight="10"
          android:gravity="center"
          android:padding="10dp"
          android:text="我发布的"
          android:textColor="@color/gray_bg"
          android:textSize="25sp" />

   </LinearLayout>

   <ScrollView
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_weight="1">

      <LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content">
         <!-- 中间列表 -->
         <com.linlang.grasharepro.view.ListViewCompat
             android:id="@+id/lv_myshare"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:divider="#000040"
             android:dividerHeight="1dp"/>
      </LinearLayout>
   </ScrollView>

</LinearLayout>
复制代码

 

 

布局展示

 

 

 

明天写个人设置,还有分享界面

 

posted @   kuaiquxie  阅读(41)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· AI 智能体引爆开源社区「GitHub 热点速览」
点击右上角即可分享
微信分享提示