
[Android Studio]이중 스크롤 (스크롤 안에 리사이클러뷰) 터치 대응 Double scroll view touch, scrollview in horizontal recyclerview 1. 화면 구성 NestedScrollView 안의 Horizontal 형태의 recyclerview 속성에 nestedScrollingEnabled="false"를 추가한다.
[Android Studio]Response JSON 결과값 받기 코틀린 return response kotlin open fun response_ui(response: Response){ //JSON 형태의 문자열 타입 val str = response.body()!!.string() as String try{ val jsonArray = JSONArray(str) for (i in 0 until jsonArray.length()){ val jsonObject = jsonArray.getJSONObject(i) Log.d("field value => ",jsonObject.get("filed_name").toString()) } }catch (e: Exception){ e.printStackTrace(..
[Android Studio] 함수(메서드)를 매개변수로 사용하기 코틀린 function(method) to parameter kotlin //메인 함수에서 호출 fun main(){ method_to_parameter(context, ::showLog) } //이후 실행시킬 함수를 파라미터로 받음 fun method_to_parameter(context: Context, method: (response: String) -> Unit){ method("example") } //결과 함수 fun showLog(str: String){ val TAG = "showLog" Log.d(TAG, str) }
[Android Studio] 비트맵 이미지 공유하기 코틀린 Bitmap Image Sharing Kotlin val bitmapPath = MediaStore.Images.Media.insertImage(context.contentResolver, bitmap, "Title", null) val bitmapUri = Uri.parse(bitmapPath) val intent = Intent(Intent.ACTION_SEND) intent.putExtra(Intent.EXTRA_STREAM, bitmapUri) intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) intent.type = "image/png" context!!.startActivity(inte..
[Android Studio] 비트맵 사진을 갤러리에 저장하기 코틀린 Bitmap To Gallery Kotlin 1. AndroidManifest.xml에 퍼미션 추가 2. AndroidManifest.xml -> application에 저장소 접근 허용 추가 android:requestLegacyExternalStorage="true" 3. MainActivity -> 이미지 저장 이벤트 함수 정의 private fun saveImageToGallery(){ button.setOnClickListener { //권한 체크 if(!checkPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) || !checkPermission(this, Manife..
- Total
- Today
- Yesterday
- next useEffect
- Build failed because of webpack errors
- react native oss
- kakao api notworking
- 깃랩 잔디 옮기기
- kotlin
- amplify build error
- non-zero exit code detected
- rn 오픈소스 라이센스
- amplify next.js
- rn oss
- 카카오 해시키
- 안드로이드 스튜디오 해시키
- Android Studio
- 안드로이드 스튜디오
- 안드로이드 해시키
- 깃랩에서 깃허브로
- room error
- 깃허브 잔디 옮기기
- 커밋 이메일 변경
- react.js useEffect
- react native 오픈소스 라이선스
- next.js useEffect
- 라이브러리 라이센스
- 깃허브에서 깃랩으로
- github mirror
- gitlab mirror
- 코틀린
- next.js ssr deploy
- nextjs ssr deploy
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |