lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Android 2017‧11‧29

    화면 안꺼지게 설정

    여러가지 방법이 있긴 한데 난 해당 res > layout > 해당.xml에 <android.support.constraint.ConstraintLayout/> 여기에 android:keepScreenOn="true"로 속성을 넣어준다. 예제는 아래와 같다. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.insiknam.test.MainActivity" android:keepScreenOn="true"> 이보다 좋은 방법이나 여러가지 상황에 따라 선택해서 쓰면 된다. 그 여러가지 방법은 https://medium.com/marojuns-android/keeping-the-device-awake-b22b402a7f5e 이 곳에 아주 훌륭하게 정리해 놓으셨다.

  • Android 2017‧11‧07

    가로 모드(또는 세로 모드)로 가는 회전 막기

    mainfests 폴더 안에 AndroidMainfest.xml이 있을 것임. 그 안에 <activity android:name = ".~~~"></activity> 노드가 있는데 세로 모드만 할 경우 android:screenOrientation="portrait" 속성을 추가해주면 된다. <activity android:name=".MainActivity" android:label="@string/app_name" android:screenOrientation="portrait"> </activity> 가로 모드만 할 경우 android:screenOrientation="landscape" 라고 넣어주면 된다.

popular

  • 버튼에 그림자 빼기
  • 창 사이즈 읽어오기 scrollHeight / clientHeight / scrollTop (브라우즈별 차이점)
  • 리눅스-root 권한 폴더나 파일 nobody로 변경
  • 이미지에 여백이 생길 때 해결 방법들
  • 배열의 마지막 값 가져오기
  • jQuery - a 태그의 href 값 변경하기
  • html2canvas 사용시 특정 영역 프린트 제외 시키기
  • http 를 https 로 리다이렉트 시키기 (.htaccess 파일 작동 안될 때)
  • StatusBar 잘못 다루면 아예 사라짐.
  • react native - Flatlist 의 하위 아이템 중 원하는 아이템으로 스크롤 시키기 (scrollToIndex)

comment

  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...
  • 유용한정보 대단히 감사합니다....