본문 바로가기

android

(22)
[j android] WebView posturl 사용하기 webview url과 달리 posturl 사용법을 알아보자. 1. posturl 에 넘길 데이터 값 변환 class public class GetByte { static byte[] myGetBytes(final String data, final String charset) { if (data == null) { throw new IllegalArgumentException("data may not be null"); } if (charset == null || charset.length() == 0) { throw new IllegalArgumentException("charset may not be null or empty"); } try { return data.getBytes(charset); ..
[j android] Firebase / messaging Proguard 프로가드 설정 프로가드를 설정하기 전 release모드에서 난독화를 활성화 해준다. - build.gradle app수준에서 minifyEnabled를 true로 설정한다. buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } - 프로가드 파일에 예외 추가 #Firebase -keepattributes *Annotation* -keepattributes Signature -keep class com.google.android.gms.** { *; } -keep class com.google.firebase.** { *; }
[j android] BottomNavigationBar/View Indicator (해당 메뉴 표시, 색 변경) BottomNavigationView에 Indicator를 추가와 해당 버튼이 선택됐을 때 , 선택 안됐을 때 색 변경을 해보자. 먼저 res/drawable 폴더에 각각 파일을 생성 - 색 변경 1. drawable/bottom_icon_color.xml state_checked로 선택이 됐을 때 (true) 색상과 안 됐을 때 (false) 색상을 설정해준다. - Indicator 1. drawable/bottom_nav_indicator.xml gravity : indicator 위치를 지정 shape : 모양을 설정 size : 크기 설정 solid : 색상 설정 파일을 생성한 후 xml 파일에 적용한다. itemIconTint, itemTextColor 는 색 변경을 해주는 파일을 적용 item..
[j android] 변수명 자동생성 사이트 변수명 자동생성 사이트이다. 원하는 단어를 입력하면 변수명을 자동적으로 생성해준다. www.curioustore.com/#!/ Curioustore 변수명 짓기, 컬럼명 짓기, 영어약자, 変数名 つけ方, カラム名建てる, 英語の略語, 命名变量, 命名该列, 英文缩写 www.curioustore.com
[j android] Databinding 세팅하기 1. 안드로이드 개발의 시작! Gradle Setting 1. gradle app수준 apply plugin: 'com.android.application' android { .... dataBinding { enabled = true } } 2. xml 세팅 으로 감싸준다. ... 3. activity 세팅 - 코틀린 class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) var binding: ActivityMainBinding = DataBindingUtil.setContentView(this, R.layout.activi..
[j android] floatingActionButton src 가운데 정렬 floatingActionButton 사이즈를 변경하고 나니 src가 정렬이 이상하게 된 적있을 것이다. fabCustomSize를 Button사이즈와 동일하게 지정해주면 가운데 정렬이 된다.
[j android] apk 파일명 변경하기 app수준 build.gradle에 추가한다. android { //add inside the android {} ...... applicationVariants.all { variant -> variant.outputs.all { def flavor = variant.name def versionName = variant.versionName outputFileName = "appname_${flavor}_${versionName}.apk" } } } 파일명 결과 appname_release_1.0.1.apk applicationVariants.all { variant -> variant.outputs.all { output-> def apk = output.outputFile def packageNa..
[j android]https 사이트 ssl (인증서 검사) www.ssllabs.com Qualys SSL Labs Books Bulletproof SSL and TLS is a complete guide to deploying secure servers and web applications. This book, which provides comprehensive coverage of the ever-changing field of SSL/TLS and Web PKI, is intended for IT security professionals, system admini www.ssllabs.com 해당 링크로 들어가서 주소입력후 인증서 검사 진행하면 됩니다.