• 大小: 11KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: Java
  • 标签: interview  

资源简介

interview ready go, android , sort , bubble heap quilkc

资源截图

代码片段和文件信息

package com.example.shortvideosdk.sealdemo;

import android.provider.ContactsContract;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

import com.example.shortvideosdk.sealdemo.datastructure.sort.HeapSort;
import com.example.shortvideosdk.sealdemo.designpattern.observer.Observer;
import com.example.shortvideosdk.sealdemo.designpattern.observer.ObserverImp;
import com.example.shortvideosdk.sealdemo.designpattern.observer.Subject;
import com.example.shortvideosdk.sealdemo.designpattern.observer.SubjectImp;

import ViewUtils.SealView;

public class MainActivity extends AppCompatActivity {

    private ImageView mImageView;

    Observer observer = new ObserverImp();
    Subject subject = new SubjectImp();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mImageView = (ImageView)findViewById(R.id.iv_seal);

        drawSeal();

        //subject.registerObserver(observer);
        //subject.notifyObserver();
        int[]arr = {129613};
        HeapSort.sort(arr);
    }

    private void drawSeal(){
        mImageView.setImageBitmap(SealView.drawSeal(10“深圳量网科技股份有限公司“400));
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        subject.unregisterObserver(observer);
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-29 10:08  sealdemo\
     文件        6148  2018-12-29 10:08  sealdemo\.DS_Store
     目录           0  2018-12-29 10:08  __MACOSX\
     目录           0  2018-12-29 10:08  __MACOSX\sealdemo\
     文件         120  2018-12-29 10:08  __MACOSX\sealdemo\._.DS_Store
     目录           0  2018-12-29 10:08  sealdemo\datastructure\
     文件        6148  2018-12-29 10:08  sealdemo\datastructure\.DS_Store
     目录           0  2018-12-29 10:08  __MACOSX\sealdemo\datastructure\
     文件         120  2018-12-29 10:08  __MACOSX\sealdemo\datastructure\._.DS_Store
     目录           0  2018-12-29 10:08  sealdemo\datastructure\sort\
     文件        6148  2018-12-29 10:08  sealdemo\datastructure\sort\.DS_Store
     目录           0  2018-12-29 10:08  __MACOSX\sealdemo\datastructure\sort\
     文件         120  2018-12-29 10:08  __MACOSX\sealdemo\datastructure\sort\._.DS_Store
     文件         877  2018-12-14 10:47  sealdemo\datastructure\sort\BubbleSort.java
     文件        1656  2018-12-21 20:33  sealdemo\datastructure\sort\HeapSort.java
     文件        1913  2018-12-14 10:47  sealdemo\datastructure\sort\QuickSort.java
     目录           0  2018-12-26 12:41  sealdemo\datastructure\sort\tree\
     目录           0  2018-12-21 17:39  sealdemo\designpattern\
     目录           0  2018-12-21 19:03  sealdemo\designpattern\observer\
     文件         405  2018-12-21 19:03  sealdemo\designpattern\observer\Observer.java
     文件         237  2018-12-21 18:42  sealdemo\designpattern\observer\ObserverImp.java
     文件         360  2018-12-21 18:15  sealdemo\designpattern\observer\Subject.java
     文件         740  2018-12-21 19:03  sealdemo\designpattern\observer\SubjectImp.java
     文件         493  2018-12-21 17:39  sealdemo\designpattern\Singleton.java
     文件        1436  2018-12-21 20:33  sealdemo\MainActivity.java
     目录           0  2018-12-21 21:28  sealdemo\Test\
     文件          84  2018-12-21 21:02  sealdemo\Test\TestAbs.java
     文件         208  2018-12-21 21:28  sealdemo\Test\TestImp.java
     目录           0  2018-12-21 17:39  sealdemo\ui\
     文件         397  2018-12-21 17:39  sealdemo\ui\TestActivity.java

评论

共有 条评论