zoukankan      html  css  js  c++  java
  • 团队冲刺07

    团队冲刺07

    今天继续完成昨天的页面

    成果展示:

    package fragment;
    
    import android.app.Fragment;
    import android.content.Intent;
    import android.os.Bundle;
    import android.support.annotation.Nullable;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.ViewGroup;
    import android.widget.LinearLayout;
    
    import com.example.animator.knowledge_circle.QuestionActivity;
    import com.example.animator.knowledge_circle.R;
    
    /**
     * Created by animator on 2020/4/5.
     */
    public class NewQFragment extends Fragment {
        @Nullable
        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            View view = inflater.inflate(R.layout.fragment_new_question,null);
            LinearLayout l = (LinearLayout) view.findViewById(R.id.new_question_l1);
            l.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), QuestionActivity.class);
                    startActivity(intent);
                }
            });
            return view;
        }
    }
    package fragment;
    
    import android.app.Fragment;
    import android.content.Intent;
    import android.os.Bundle;
    import android.support.annotation.Nullable;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.ViewGroup;
    import android.widget.LinearLayout;
    
    import com.example.animator.knowledge_circle.AttentionActivity;
    import com.example.animator.knowledge_circle.CollectActivity;
    import com.example.animator.knowledge_circle.FansActivity;
    import com.example.animator.knowledge_circle.HelpActivity;
    import com.example.animator.knowledge_circle.LookActivity;
    import com.example.animator.knowledge_circle.MoneyActivity;
    import com.example.animator.knowledge_circle.R;
    import com.example.animator.knowledge_circle.SelfInfoActivity;
    import com.example.animator.knowledge_circle.SetActivity;
    import com.example.animator.knowledge_circle.ZanActivity;
    
    /**
     * Created by animator on 2020/4/5.
     */
    public class MineFragment extends Fragment {
        @Nullable
        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            View view = inflater.inflate(R.layout.fragment_mine,null);
            LinearLayout money = (LinearLayout) view.findViewById(R.id.mine_money_l);
            money.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), MoneyActivity.class);
                    startActivity(intent);
                }
            });
            LinearLayout info = (LinearLayout) view.findViewById(R.id.info_enter);
            info.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), SelfInfoActivity.class);
                    startActivity(intent);
                }
            });
    
            LinearLayout attention = (LinearLayout) view.findViewById(R.id.attention_enter);
            LinearLayout fans = (LinearLayout) view.findViewById(R.id.fans_enter);
            attention.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), AttentionActivity.class);
                    startActivity(intent);
                }
            });
            fans.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), FansActivity.class);
                    startActivity(intent);
                }
            });
            LinearLayout zan = (LinearLayout) view.findViewById(R.id.zan_enter);
            LinearLayout collect = (LinearLayout) view.findViewById(R.id.collect_enter);
            LinearLayout look = (LinearLayout) view.findViewById(R.id.look_enter);
            zan.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), ZanActivity.class);
                    startActivity(intent);
                }
            });
            collect.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), CollectActivity.class);
                    startActivity(intent);
                }
            });
            look.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), LookActivity.class);
                    startActivity(intent);
                }
            });
            LinearLayout help = (LinearLayout) view.findViewById(R.id.help_enter);
            help.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), HelpActivity.class);
                    startActivity(intent);
                }
            });
            LinearLayout set = (LinearLayout) view.findViewById(R.id.set_enter);
            set.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), SetActivity.class);
                    startActivity(intent);
                }
            });
            return view;
        }
    }
  • 相关阅读:
    velocity模板引擎学习(2)-velocity tools 2.0
    silverlight: http请求的GET及POST示例
    职责链(Chain of Responsibility)模式在航空货运中的运用实例
    H2 Database入门
    velocity模板引擎学习(1)
    Struts2、Spring MVC4 框架下的ajax统一异常处理
    企业应用通用架构图
    nginx学习(2):启动gzip、虚拟主机、请求转发、负载均衡
    nginx学习(1):编译、安装、启动
    eclipse/intellij Idea集成jetty
  • 原文地址:https://www.cnblogs.com/xueqiuxiang/p/12763562.html
Copyright © 2011-2022 走看看