본문 바로가기
728x90
반응형

전체 글186

layout에 view 동적으로 생성하기 (Add imageView and textView to linearLayout programmatically) 1. textView 동적 생성 // textView가 추가될 linearLayoutLinearLayout layout = (LinearLayout) layout.findViewById(R.id.linearLayout); // layout param 생성LayoutParams layoutParams = new LayoutParams(LayoutParams.MATCH_PARENT /* layout_width */, LayoutParams.WRAP_CONTENT /* layout_height */, 1f /* layout_weight */); TextView tv = new TextView(this); // 새로 추가할 textView 생성tv.setText("new TextView"); // textVie.. 2016. 9. 22.
git error : pathspec 'application/libraries/FileName' did not match any file(s) known to git. 파일명 리네임으로 git commit 시 해당 에러가 발생하였을 때 did not match any file(s) known to git. 1. 변경 전 파일이름을 git에서 un-add 한다. 1git reset HEAD oldFileName.filecs 2. 새로 변경 된 파일이름을 git에 add 한다. 1git add newFileName.filecs 3.다시 commit을 한다. 2016. 9. 19.
Unable to build apk: The number of method references cannot exceed 64K build.gradle 파일 내 defaultConfig 에 multiDexEnabled true 를 입력하면 해결 12345678910111213141516171819android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.gkwak.***" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true // 이곳에 추가 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android... 2016. 9. 16.
Repository Pattern Repository는 특정 타입의 모든 객체를 하나의 개념적 집합으로 나타낸다. [참고] 도메인 주도 설계 / 위키북스 - 에릭 에반스 2016. 8. 12.
728x90
반응형