<TextView
android:id="@+id/tvContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textIsSelectable="true" />

빨간색 부분 옵션을 추가하면됨

'android' 카테고리의 다른 글

VectorDrawable를 Bitmap로 변환  (0) 2018.03.07
pendingIntent Flag 옵션  (1) 2018.02.02
비트맵 파일로 떨어트리기  (0) 2017.12.14
웹뷰 바로 전의 URL 가져오기  (0) 2017.12.12
코드로 원 그리기  (0) 2017.12.11

  public static String humanReadableByteCount(long bytes, boolean si) {

    int unit = si ? 1000 : 1024;

    

    if (bytes < unit) return bytes + " B";

    int exp = (int) (Math.log(bytes) / Math.log(unit));

    String pre = (si ? "kMGTPE" : "KMGTPE").charAt(exp-1) + (si ? "" : "i");

    return String.format("%.1f %sB", bytes / Math.pow(unit, exp), pre);

  }

function setLog($msg = ""){

  $filePath = "파일이 생성될 경로";

  $fileName = "my_".date("Ymd").".log";               //파일명

  $logFile  = @fopen($filePath.$fileName, "a");


  if(!$logFile) {

    echo "\n not write permition \n\r";

  }


  fputs($logFile, $msg);

  fclose($logFile);

}



+ Recent posts