Code Monkey home page Code Monkey logo

codetour's People

Contributors

fuwhqv avatar lljtoll avatar sally0226 avatar taehyunnn avatar

Watchers

 avatar

Forkers

sally0226

codetour's Issues

Tmap POI를 이용한 장소검색 View 추가

  1. View
  • SearchView
    : EditText와 RecyclerView 존재.
  1. Class
  • RecyclerViewAdapter
    : RecyclerView의 Adapter
  • TmapPOI
    : TmapAPI에 장소검색한 후 결과 받아옴
    -PosItem
    : 검색결과로 받은 장소 하나하나
    3.layout
  • activity_search_view.xml
  • item_list.xml
    : RecyclerView에 표시될 PosItem객체 하나에 대한 layout

주석 읽어보고 추가로 궁금한 점 있으면 질문주세요 !
해야할 일

  • SearchView랑 SePosSetting 연결하기

출발도착지 주소 Tour API지역코드로 변경

입력받은 날짜별 출발도착지 주소를 지역코드로 바꾸어 TripSchedule 객체에 2차원 배열 형태로 저장했습니다 .

areacode[2][difdays]
sigungu[2][difdays]

*[0: 출발지, 1: 도착지][n일차]

input activity 예외처리 추가

input을 제출할 때 일어날 수 있는 예외들을 처리해주었다

  1. 출발날짜가 도착날짜보다 뒤일 경우
  2. 활동 시작시간이 종료시간보다 앞일 경우
  3. 입력을 안한 부분이 있을 경우

input->SePosSetting 화면 데이터 넘기기

input -> SePosSetting으로 TripSchedule 객체를 넘길 때 발생하는 오류를 해결했다.
NullPointerException 은 try-catch로 해결하고
그 외에 CourseManager과 Course가 Serializeble하지 않다는 오류가 떠서 해결해주었다.

  • 클래스들의 기본 생성자 추가

layout 수정 , difdays 수정

메인 화면, input화면의 레이아웃을 수정하였다.
그리고 difdays를 기존 값에 +1을 해주어서
일박이일 여행인데 하루만 일정이생기는 등의 상황을 수정해주었다.

SearchView AsyncTask 적용

delay를 이용해서 돌아가던 SearchView를 AsyncTask를 적용하였다

  • SearchView 에서 SePosSetting으로 장소의 point(위도,경도)도 intent로 넘겨주도록 설정해놓았음
    대양님이 이거 받아서 TripSchedule에 저장해주시면 되겠습니다

*TripSchedule에 리스트 형태의 필드로 저장할지,
TripSchedule 안의 Course들에게 각각 저장할지 선택 ㄱㄱ

못 올렸던거 한번에

  • 메인 UI 수정
  • 출발지/도착지 입력화면 UI 수정
  • 메인액티비티.java의 showSchedule 오타 수정
  • 스팟매니저.java에 tourAPI에서 리스트 받아오는 것까지 작성

여행 테마 spinner 수정

축제, 공연/행사 는 추천되지 않도록 하고,
레포츠 관련 항목과 쇼핑 항목을 추가하였다.

클래스 틀 제작

  1. Tour class (여행 일정)
  2. Course class (코스/하루단위)
  3. Spot class (장소)
  4. Map class
  5. SpotManager class
  6. TourManager class
    위 6개의 클래스의 java파일을 만들고, 기본 틀을 제작함

출발도착지 입력 화면 코드 변경

sePos 클래스 명세 변경: 시작점, 도착점이 String() => List으로

버튼 동작 추가
화면에서 버튼 하나 제거
받아온 정보를 토대로 화면에 띄우기 추가
화면에 입력된 정보를 저장하여 다음 액티비티에 인텐트로 전달 추가
화면의 EditText들의 id를 동적으로 관리

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.