ShopXML

 

< RelativeLayout
xmlns: android = "http://schemas.android.com/apk/res/android"  
  android :orientation= "vertical"
android :layout_width= "match_parent"     
android :layout_height= "match_parent">
< TextView
android :id= "@+id/text_title"       
android :layout_width= "match_parent"       
android :layout_height= "wrap_content"       
android :gravity= "center"       
android :padding= "10dp"       
android :text= "购物车" />
< com.scwang.smartrefresh.layout.SmartRefreshLayout  
       android :layout_below= "@+id/text_title"       
android :layout_above= "@+id/linear_bottom"       
android :id= "@+id/smart_refresh"       
android :layout_width= "match_parent"       
android :layout_height= "match_parent">
< ScrollView          
android :layout_width= "match_parent"          
android :layout_height= "match_parent"          
android :scrollbars= "none">
< LinearLayout             
android :layout_width= "match_parent"             
android :layout_height= "match_parent"             
android :orientation= "vertical"> <!--二级列表登录的按钮--> < com.example.fangjingdong.view.activity.MyExpanableView                
android :id= "@+id/my_expanable_view"                
android :layout_width= "match_parent"                
android :layout_height= "wrap_content"                
android :visibility= "gone">
</ com.example.fangjingdong.view.activity.MyExpanableView>
< ImageView                
android :id= "@+id/empty_cart_image"                
android :visibility= "gone"                
android :src= "@drawable/empty_cart"                
android :scaleType= "fitXY"                
android :layout_width= "match_parent"                
android :layout_height= "200dp" />
< LinearLayout                
android :id= "@+id/linear_login"                
android :layout_width= "match_parent"                
android :layout_height= "wrap_content"                
android :layout_margin= "10dp"                
android :orientation= "horizontal">
< Button                       
android :id= "@+id/cart_login"                   
android :layout_width= "wrap_content"                   
android :layout_height= "wrap_content"                   
android :padding= "10dp"                   
android :text= "登录" />
< TextView                   
android :layout_width= "wrap_content"                   
android :layout_height= "wrap_content"                   
android :text= "登录后用于同步电脑和手机的商品" />
</ LinearLayout>            
<!--为你推荐-->
< LinearLayout                 
  android :layout_width= "match_parent"                
android :layout_height= "wrap_content"                
android :layout_marginTop= "20dp"                
android :orientation= "vertical">
< TextView                   
android :layout_width= "match_parent"                   
android :layout_height= "wrap_content"                   
android :background= "#F2F0F4"                   
android :gravity= "center"                   
android :padding= "10dp"                   
android :text= "为你推荐" />
< android.support.v7.widget.RecyclerView                   
android :id= "@+id/tui_jian_recycler"                   
android :layout_width= "match_parent"                   
android :layout_height= "wrap_content"                   
android :nestedScrollingEnabled= "false">
</ android.support.v7.widget.RecyclerView>
</ LinearLayout>
</ LinearLayout>
</ ScrollView>
</ com.scwang.smartrefresh.layout.SmartRefreshLayout>
< RelativeLayout android :layout_above= "@+id/linear_bottom"       
android :layout_below= "@+id/text_title"       
android :id= "@+id/relative_progress"       
android :layout_width= "match_parent"         
android :layout_height= "match_parent"       
android :visibility= "gone">
< ProgressBar          
android :layout_width= "wrap_content"          
android :layout_height= "wrap_content"          
android :layout_centerInParent= "true" />
</ RelativeLayout>
< LinearLayout       
android :id= "@+id/linear_bottom"        
android :layout_alignParentBottom= "true"
android :gravity= "center_vertical"        
android :orientation= "horizontal"
android :layout_width= "match_parent"       
android :layout_height= "50dp">
< CheckBox          
android :button= "@null"          
android :background= "@drawable/check_box_selector"          
android :layout_marginLeft= "10dp"          
android :id= "@+id/cart_check_all"          
android :layout_width= "wrap_content"          
android :layout_height= "wrap_content" />
< TextView android :layout_marginLeft= "5dp"  
android :text= "全选"          
android :layout_width= "wrap_content"            
android :layout_height= "wrap_content" />
< TextView          
android :textSize= "20sp"          
android :layout_marginLeft= "10dp"          
android :id= "@+id/text_total"          
android :text= "合计:¥0.00"          
android :layout_width= "0dp"          
android :layout_weight= "1"          
android :layout_height= "wrap_content" />
< TextView          
android :paddingLeft= "15dp"          
android :paddingRight= "15dp"          
android :paddingTop= "10dp"          
android :paddingBottom= "10dp"          
android :id= "@+id/text_buy"          
android :gravity= "center"          
android :background= "#ff0000"          
android :textColor= "#ffffff"            
android :text= "去结算(0)"            
android :layout_width= "wrap_content"          
android :layout_height= "match_parent" />
</ LinearLayout></ RelativeLayout>

group_xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:padding="10dp"
    android:orientation="horizontal"
    android:gravity="center_vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <CheckBox
        android:button="@null"
        android:background="@drawable/check_box_selector"
        android:id="@+id/group_check_box"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <TextView
        android:layout_marginLeft="10dp"
        android:id="@+id/group_shop_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</LinearLayout>
child_xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:padding="10dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <CheckBox
        android:button="@null"
        android:background="@drawable/check_box_selector"
        android:id="@+id/child_check_box"
        android:layout_centerVertical="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <ImageView
        android:layout_marginLeft="10dp"
        android:layout_toRightOf="@+id/child_check_box"
        android:id="@+id/child_image"
        android:layout_width="100dp"
        android:layout_height="100dp" />

    <TextView
        android:maxLines="2"
        android:minLines="2"
        android:layout_marginRight="5dp"
        android:layout_toLeftOf="@+id/child_text_delete"
        android:layout_marginLeft="10dp"
        android:layout_toRightOf="@+id/child_image"
        android:id="@+id/child_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <TextView
        android:layout_marginLeft="10dp"
        android:id="@+id/child_price"
        android:layout_marginBottom="5dp"
        android:layout_alignBottom="@+id/child_image"
        android:layout_toRightOf="@+id/child_image"
        android:textColor="#ff0000"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <LinearLayout
        android:layout_marginRight="5dp"
        android:layout_toLeftOf="@+id/child_text_delete"
        android:layout_alignBottom="@+id/child_image"
        android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <TextView
            android:padding="5dp"
            android:background="@drawable/cart_bian_kuang"
            android:id="@+id/child_text_jian"
            android:text="-"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <TextView
            android:paddingTop="5dp"
            android:paddingBottom="5dp"
            android:paddingRight="8dp"
            android:paddingLeft="8dp"
            android:background="@drawable/cart_bian_kuang"
            android:id="@+id/child_text_num"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <TextView
            android:padding="5dp"
            android:background="@drawable/cart_bian_kuang"
            android:id="@+id/child_text_add"
            android:text="+"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

    </LinearLayout>

    <TextView
        android:gravity="center"
        android:background="#ff0000"
        android:textColor="#ffffff"
        android:id="@+id/child_text_delete"
        android:layout_alignParentRight="true"
        android:layout_alignTop="@+id/child_image"
        android:layout_alignBottom="@id/child_image"
        android:text="删除"
        android:layout_width="40dp"
        android:layout_height="wrap_content" />

</RelativeLayout>


内容概要:本文介绍了Dify——一个用于开发大型语言模型(LLM)应用程序的开源平台。Dify融合了后端即服务(BaaS)和LLMOps理念,使开发者能快速构建生产级别的生成式AI应用。它支持多种LLM模型,包括GPT、Mistral、Llama3等,并兼容多种推理提供商。Dify内置了高质量的检索增强生成(RAG)引擎和灵活的Agent框架,支持聊天助手、文本生成、Agent应用和工作流等多种应用类型。通过丰富的功能组件,如数据集管理、可视化Prompt编排、应用运营工具和插件生态系统,Dify极大简化了AI应用的开发过程。文章还展示了Dify在电商智能客服、新媒体内容生成和企业办公自动化等实际场景中的应用案例,并与FastGPT进行了对比,突出了Dify在模型接入、应用构建和用户友好度等方面的优势。 适合人群:对AI应用开发感兴趣的研发人员,尤其是希望快速构建和部署AI应用的开发者和企业。 使用场景及目标:①通过Dify的强大模型支持和RAG引擎,快速构建智能客服、内容生成等AI应用;②利用Agent框架和工作流功能,实现复杂任务的自动化处理;③通过丰富的功能组件和插件生态系统,提升应用的灵活性和功能性。 其他说明:Dify不仅提供了便捷的安装和使用指南,还展望了未来的发展前景,强调其在降低AI应用开发门槛和推动AI技术创新方面的巨大潜力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值