전체 글(39)
-
Android 애니메이션(translation)
뷰에 translation 애니메이션 적용 방법 1. ObjectAnimation 클래스의 ofFloat 정적 메소드를 호출하여 ObjectAnimation 객체를 정의하세요. 파라메터는 다음과 같습니다. Object target 이동 애니메이션을 적용할 뷰를 대입하세요. String propertyName 가로 이동시 "translationX", 세로 이동시 "translationY"를 대입하세요. float... values 픽셀 단위로 이동할 거리의 길이를 지정하세요. View viewEx = findViewById(R.id.viewEx); // 뷰를 오른쪽으로 100 픽셀 이동 ObjectAnimator animatorEx1 = ObjectAnimator.ofFloat( view, "transla..
2020.05.25 -
Android 키보드 올림 내림 상태확인
AndroidManifest.xml에서 android:windowSoftInputMode 에 adjustResize 속성을 추가 SoftKeyboardDectectorView 클래스 생성 import android.app.Activity; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; import android.view.View; public class SoftKeyboardDectectorView extends View { private boolean mShownKeyboard; private OnShownKeyboardListener mOnShownSoftKeyboard; pr..
2020.05.25 -
Android Dialog(다이얼로그) EditText 커스텀
간단한 다이얼로그 EditText 커스텀 방법FrameLayout container = new FrameLayout(context);//프레임 레이아웃 셋팅FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);params.leftMargin = getResources().getDimensionPixelSize(R.dimen.dialog_margin); // params에 margin 추가params.rightMargin = getResources().getDimensionPixelSize(R.dimen.dialog..
2020.05.20 -
Android EditText inputType 이용한 완료버튼
1. EditText XML android:inputType="textPersonName" 추가 inputType 속성 보기 출처 - https://recipes4dev.tistory.com/95 안드로이드 에디트텍스트 속성 5. [inputMethod, inputType] (Android EditText Attributes 5) 1. EditText 속성 (5) EditText 속성 리스트 및 요약 설명을 확인하시려면 [안드로이드 에디트텍스트 속성] 페이지를 참고하시기 바랍니다. EditText 속성에 대한 자세한 설명 및 예제를 확인하시려면, 아 recipes4dev.tistory.com 2. JAVA 코드 EditText editText = (EditText)findViewById(R.id.edit..
2020.05.20 -
PHP 특정값 제외 SELECT 하기
select * from [테이블명] where [컬럼명] not in('조건1', '조건2', ... ); 예제 ) select * from USERS where userId not in('1', '2'. '3'); : userId가 1, 2, 3인 것만 제외하고 select. 출처 - https://giyatto.tistory.com/85
2020.05.20 -
Android Edittext 공백체크
EditText 에 띄워쓰기가 있다거나 특정한 경우 정상적으로 공백 체크 를 하지 못하는 경우가 있는데요. 이런 경우 아래와 같은 방법으로 공백 체크 하시면 됩니다. if (editText.getText().toString().replace(" ", "").equals("")) { ... ... ... source ... ... ... }
2020.05.19