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

    团队冲刺05

    昨天的忘了写了

    今日并未有突破性进展,仍在学习需要的知识

    继续昨天的任务,完成页面和各页面的跳转

    成果展示:

    package com.example.animator.knowledge_circle;
    
    import android.app.Activity;
    import android.support.v7.app.ActionBarActivity;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.ImageView;
    
    public class AddHobbyActivity extends Activity {
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_add_hobby);
            ImageView back = (ImageView) findViewById(R.id.back_from_add_more);
            back.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    finish();
                }
            });
        }
    }
    package fragment;
    
    import android.app.Fragment;
    import android.content.Intent;
    import android.media.Image;
    import android.os.Bundle;
    import android.support.annotation.Nullable;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.ViewGroup;
    import android.widget.ImageView;
    import android.widget.LinearLayout;
    
    import com.example.animator.knowledge_circle.AddHobbyActivity;
    import com.example.animator.knowledge_circle.EssayActivity;
    import com.example.animator.knowledge_circle.MainActivity;
    import com.example.animator.knowledge_circle.R;
    
    /**
     * Created by animator on 2020/4/4.
     */
    public class EssayFragment extends Fragment {
        @Nullable
        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            View view = inflater.inflate(R.layout.fragment_essay,null);
            LinearLayout l = (LinearLayout) view.findViewById(R.id.essay_l1);
            l.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), EssayActivity.class);
                    startActivity(intent);
                }
            });
            ImageView more = (ImageView) view.findViewById(R.id.open_to_add_more);
            more.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), AddHobbyActivity.class);
                    startActivity(intent);
                }
            });
            return view;
        }
    }

    截图:

  • 相关阅读:
    SharePoint 2010 Managed Metadata Columns and Metadata Navigation Settings
    SharePoint 知识整理1
    印度HCL揭秘云计算五大盈利模式
    云计算盈利模式都有什么?
    IaaS
    Salesforce
    走近云计算:解密IaaS PaaS SaaS的关系
    sasdas
    解析salesforce
    Salesforce成功的秘密
  • 原文地址:https://www.cnblogs.com/xueqiuxiang/p/12740690.html
Copyright © 2011-2022 走看看