본문 바로가기

Android/공부5

안드로이드 버튼 최상위로 보일때. 문제 안드로이드 액티비티에서 기본 레이아웃에서 버튼, 텍스트뷰, 프래임레이아웃(프래그먼트 컨테이너) 등등 위젯을 등록 하고앱을 실행하여 액티비티 후 프래그먼트를 실행하면 액티비티의 버튼이 프래그먼트 레이아웃 위에나타난 경우가 있다. 두가지 ? 해결방법이 있는데.하나는 액티비티 레이아웃에서 기본레이아웃 말고 또다른 레이아웃을 감싸는 것과.ㅇㅇ버튼에 android:stateListAnimator="@null" 를 추가 하는 것이다. z-index in Relative layouthttps://stackoverflow.com/questions/27132825/z-index-in-relative-layout/38534042 Buttons in Lollipop and higher have a default elevat.. 2018. 4. 18.
안드로이드 모듈(라이브러리) 깃허브에 올리고 mavan{ url 'https://jitpack.io'} 로 배포하기. 안드로이드 모듈(라이브러리) 깃허브에 올리고 mavan{ url 'https://jitpack.io'} 로 배포하기. 1.배포할 모듈(라이브러리) 만들기. 신규 프로젝트 생성. 생성된 프로젝트 로딩 후 new ->New Module -> Android Library 선택. 새로 모듈을 만들고 테스트가 완료 되면 다음과 같이 작업을 해야 한다. 프로젝트 매인 build.gradle 에 코드를 입력해야한다. buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' // NOTE: Do not place your application dependencies here.. 2018. 4. 13.
안드로이드 해상도 안드로이드 해상도 정리. LDPI (x0.75) = 4DP = 3PXMDPI (x1) = 4DP = 4PXHDPI (x1.5) = 4DP = 6PXXHDPI (x2) = 4DP = 8PXXXHDPI (x3) = 4DP = 12PX (기본픽셀에서 3곱해서 사용.)XXXHDPI (x4) = 4DP = 16PX Galaxy S (480x800px, HDPI) = 320x534dpGalaxy Nexus (720x1280px, XHDPI) = 360x640dpNexus5 (1080x1920px, XXDPI) = 360x640dpNexus6 (1440x2560px, 560dpi) = 410x730dpNexus6P (1440x2560px, 560dpi) = 410x730dp ldpi = 36x36px = 디자인영역 .. 2017. 9. 25.
안드로이드 케이블없이 디버깅. Debugging considerations When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb connection to the Android-powered device via USB. You can still access adb over a network connection. To enable adb over a network connection: Connect the Android-powered device via .. 2015. 8. 19.