본문 바로가기
반응형

분류 전체보기138

[Android/Java] RecyclerView & Adapter 사용 순서 라이브러리 다운 -> RecyclerView 컴포넌트 붙이기 -> 액티비티와 연결하기 -> 어댑터 연결하기 RecycleView를 사용하기 위해 필요한 xml 1. RecyclerView 화면을 보여줄 액티비티 xml파일 2. RecyclerView의 리스트의 항목을 보여줄 xml파일 ( 각 아이템 하나씩 ) Adapter의 onCreateViewHolder 함수에 작성한다 나는 imageView_title와 첫 textView_title을 겹치게 하기 위해 RelativeLayout으로 한번 더 감싸줬다. 라이브러리 다운 implementation 'androidx.recyclerview:recyclerview:1.3.0-alpha01' build.gradle (:app) -> dependenci.. 2022. 1. 4.
[Android/Java] Design lib Design lib 사용하기 app:gradle에 dependencies 추가를 해보는데.... implementation 'com.android.support:design:28.0.0' 입력했는데 에러 발생 com.android.support:design:28.0.0 경로가 ▼ com.google.android.material:material:1.0.0-rc01 경로로 변경되었다. dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' implementation 'com.google.android.material:material:1... 2022. 1. 4.
[Android/Java] Intent 사용 Activity에서 Intent사용 Intent intent = new Intent(MainActivity.this, LoginActivity.class); intent.putExtra("email",email); intent.putExtra("password",password); startActivity(intent); 기본적인 Activity 전환을 할때는 putExtra를 하지 않아도 된다. 넘길 값이 있으면 putExtra에 name값과 value를 작성한다. Intent intent = getIntent(); Bundle bundle = intent.getExtras(); String email = bundle.getString("email"); String password = bundle.ge.. 2022. 1. 4.
[Android/Java] Git연동과 findViewById 에러 Git https://velog.io/@kiyoog02/Android-Studio%EC%99%80-GitHub-%EC%97%B0%EB%8F%99 Android Studio와 GitHub 연동 안드로이드 스튜디오와 GitHub을 연동하는 방법 velog.io 이와같이 gitbub과 연동했다 Cannot resolve method 'findViewById' 에러 cannot find symbol method findviewbyid(int) 오늘도 에러는 끊이지 않고 있다. 흔히 나오는 에러인데 또 자꾸 까먹어서 적어둔다. fragment에서 일반적으로 findViewById가 안 먹힌다. 이건 Activity에서 id로 View찾을 때 쓰는 메소드이기 때문이다. 1. getView().findViewById.. 2022. 1. 4.
git2 git --version 깃 버전 확인 git config --list 깃 설정 확인 git config --global -e 파일로 설정 열기 (editor) code . Visual Studio에서 열기 git config --global core.editor "code" git config --global -e code를 editor와 연결해서 사용하기 git config --global core.editor "code --wait" git config --global -e code를 editor와 연결해서 사용하기 (종료되기 전까지 터미널 사용불가) git config --global core.autocrlf Window -> true 붙이기 IOS -> input 붙이기 ( OS마다 줄바꿈 문자.. 2021. 5. 29.
Spring - mysql 연동 환경설정 ●Web.xml contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/spring/appServlet/servlet-context.xml 1 appServlet *.do encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true encodingFilter /* Spring MVC.. 2021. 5. 24.
반응형