京东首页面框架

这篇博客详细介绍了京东首页面的布局结构,包括mian_activity、divider、各模块布局(layout_fl, layout_fx, layout_gwc, layout_spalsh, layout_sy, layout_wd)等,并探讨了按钮切换的实现,如main_nav_系列选择器。此外,还涵盖了功能部分,如MainActivity、SplashActivity以及各个关键Fragment的实现,如BeanActivity、BeanFragment、FaXianFragment、FenLeiFragment、GouWuCheFragmnet和ShouYeFragment、WoDeFragment。同时,提到了相关的清单文件配置。" 109170130,7734540,Hive 1.1.1安装教程:MySQL作为元数据库,"['Hive', '大数据开发', '数据库', 'Hadoop']
摘要由CSDN通过智能技术生成


布局========================================================================

mian_actitvity================================================================

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:orientation="vertical"
    tools:context="com.daydayup.myjddemo.view.activities.MainActivity">

    <FrameLayout
        android:id="@+id/main_content"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"></FrameLayout>

    <include layout="@layout/divider1" />

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

        <TextView
            android:id="@+id/main_sy"
            android:layout_width="0dp"
            android:layout_height="@dimen/nav_width"
            android:layout_weight="1"
            android:background="@drawable/main_nav_sy_selector" />

        <TextView
            android:id="@+id/main_fl"

            android:layout_width="0dp"
            android:layout_height="@dimen/nav_width"
            android:layout_weight="1"
            android:background="@drawable/main_nav_fl_selector" />

        <TextView
            android:id="@+id/main_fx"
            android:layout_width="0dp"
            android:layout_height="@dimen/nav_width"
            android:layout_weight="1"
            android:background="@drawable/main_nav_fx_selector" />

        <TextView
            android:id="@+id/main_gwc"
            android:layout_width="0dp"
            android:layout_height="@dimen/nav_width"
            android:layout_weight="1"
            android:background="@drawable/main_nav_gwc_selector" />

        <TextView
            android:id="@+id/main_wd"
            android:layout_width="0dp"
            android:layout_height="@dimen/nav_width"
            android:layout_weight="1"
            android:background="@drawable/main_nav_wd_selector" />

    </LinearLayout>

</LinearLayout>

divider=======================================================================

<?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="@dimen/divider_height"
    android:background="#999999"
    android:orientation="vertical">

</LinearLayout>

layout_fl===================================================================

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


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:gravity="center"
        android:text="分类"
        android:textSize="30sp" />

</RelativeLayout>

layout_fx=====================================================================

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


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:gravity=
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值