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

  • Nike Tech Studio
  • 안드로이드 - 네트워크 끊겼을 때 webview에 '웹페이지를 찾을 수 없음' 안뜨게 하기
  • jQuery-마우스 움직임을 이용, 좌표값 가져오기
  • [회고] Github Actions가 갑자기 안된다. (Waiting for a runner to pick up this job…)
  • js - 채널톡 삽입(커스텀 버튼, 뱃지 카운트, 서포트봇 양식 연동)
  • findDOMNode) is not a function 오류 발생시
  • JS - datepicker(jQueryUI,달력) 이용시 두개 날짜 범위 설정
  • react native - TextInput 에 입력 또는 수정 disable 처리
  • jQuery-마우스가 브라우저 밖으로 나갔을 때 이벤트
  • 창 사이즈 읽어오기 scrollHeight / clientHeight / scrollTop (브라우즈별 차이점)

comment

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