<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>DWFOX</title>
    <link>https://dwfox.tistory.com/</link>
    <description>DWFOX</description>
    <language>ko</language>
    <pubDate>Fri, 10 Jul 2026 12:59:03 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>DWFOX</managingEditor>
    <image>
      <title>DWFOX</title>
      <url>https://t1.daumcdn.net/cfile/tistory/99C94733598D53AB25</url>
      <link>https://dwfox.tistory.com</link>
    </image>
    <item>
      <title>[Xcode Error]Xcode installing componets. an unknown error occured.</title>
      <link>https://dwfox.tistory.com/88</link>
      <description>&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 24px; color: rgb(5, 0, 153);&quot;&gt;Xcode installing componets. an unknown error occured.&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;XCode 컴포넌트 업데이트시 에러&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 내용&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Xcode 실행시 Xcode Component Update 관련 메세지가 뜬다&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Quit / install 버튼이 나오는데 Install 버튼을 누르면 에러가 발생한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 649px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/997087405E18218317&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F997087405E18218317&quot; width=&quot;649&quot; height=&quot;235&quot; filename=&quot;O4f8b.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;지속적인 에러가 발생하여 에러가 생기는&amp;nbsp;경우는 패키지의 정상적인 설치가 이루어지지 않았거나&lt;/p&gt;&lt;p&gt;다운로드 된 패키지가 적절히 지워지지 않은 경우로 추측된다.&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Solution&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238); padding: 10px;&quot;&gt;&lt;p&gt;$ cd /Applications/Xcode.app/Contents/Resources/Packages&lt;/p&gt;&lt;/div&gt;&lt;p&gt;위 경로로 이동한다.&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238); padding: 10px;&quot;&gt;&lt;p&gt;$ rm -rf MobileDevice.pkg&amp;nbsp;&lt;/p&gt;&lt;p&gt;$ rm -rf MobileDeviceDevelopment.pkg&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;MobileDevice.pkg, MobileDeviceDevelopment.pkg&lt;/b&gt;를 삭제한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;출처 :&amp;nbsp;&lt;a href=&quot;https://stackoverflow.com/a/58816157&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://stackoverflow.com/a/58816157&lt;/a&gt;&lt;/p&gt;</description>
      <category>Error/Xcode</category>
      <category>Xcode</category>
      <category>개발</category>
      <category>아이폰</category>
      <category>에러</category>
      <category>해결</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/88</guid>
      <comments>https://dwfox.tistory.com/88#entry88comment</comments>
      <pubDate>Fri, 10 Jan 2020 16:17:38 +0900</pubDate>
    </item>
    <item>
      <title>[디자인/팁] 이미지 배경제거 해주는 사이트 / 누끼 따주는 사이트</title>
      <link>https://dwfox.tistory.com/87</link>
      <description>&lt;h2 data-ke-size=&quot;size26&quot;&gt;&lt;span style=&quot;background-color: #ee2323;&quot;&gt;&amp;nbsp;&lt;/span&gt; 이미지 배경제거 해주는 사이트 / 누끼 따주는 사이트&lt;/h2&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;이미지 배경만 제거 하고 싶을 때&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;포토샵을 이용하지 않고 제거 해주는 사이트이다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://www.remove.bg&quot;&gt;https://www.remove.bg&lt;/a&gt;&lt;/p&gt;
&lt;figure id=&quot;og_1578411227357&quot; contenteditable=&quot;false&quot; data-ke-type=&quot;opengraph&quot; data-og-type=&quot;website&quot; data-og-title=&quot;Remove Background from Image &amp;ndash; remove.bg&quot; data-og-description=&quot;Remove Image Background: 100% automatically &amp;ndash; in 5 seconds &amp;ndash; without a single click &amp;ndash; for free.&quot; data-og-host=&quot;www.remove.bg&quot; data-og-source-url=&quot;https://www.remove.bg&quot; data-og-url=&quot;https://www.remove.bg/&quot; data-og-image=&quot;https://scrap.kakaocdn.net/dn/yfdNB/hyEusC5fH1/xpm3zZB8kOh7qibh4kpjR1/img.jpg?width=1200&amp;amp;height=800&amp;amp;face=0_0_1200_800,https://scrap.kakaocdn.net/dn/j7GAA/hyEuxLalM2/0jiRGAWXI5AjzeXavIfYSK/img.jpg?width=1200&amp;amp;height=800&amp;amp;face=0_0_1200_800,https://scrap.kakaocdn.net/dn/bcJyr5/hyEutPxZEH/oZnM8NkH9IQJAejCbjihk1/img.png?width=600&amp;amp;height=400&amp;amp;face=0_0_600_400&quot;&gt;&lt;a href=&quot;https://www.remove.bg/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; data-source-url=&quot;https://www.remove.bg&quot;&gt;
&lt;div class=&quot;og-image&quot; style=&quot;background-image: url('https://scrap.kakaocdn.net/dn/yfdNB/hyEusC5fH1/xpm3zZB8kOh7qibh4kpjR1/img.jpg?width=1200&amp;amp;height=800&amp;amp;face=0_0_1200_800,https://scrap.kakaocdn.net/dn/j7GAA/hyEuxLalM2/0jiRGAWXI5AjzeXavIfYSK/img.jpg?width=1200&amp;amp;height=800&amp;amp;face=0_0_1200_800,https://scrap.kakaocdn.net/dn/bcJyr5/hyEutPxZEH/oZnM8NkH9IQJAejCbjihk1/img.png?width=600&amp;amp;height=400&amp;amp;face=0_0_600_400');&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;og-text&quot;&gt;
&lt;p class=&quot;og-title&quot; data-ke-size=&quot;size16&quot;&gt;Remove Background from Image &amp;ndash; remove.bg&lt;/p&gt;
&lt;p class=&quot;og-desc&quot; data-ke-size=&quot;size16&quot;&gt;Remove Image Background: 100% automatically &amp;ndash; in 5 seconds &amp;ndash; without a single click &amp;ndash; for free.&lt;/p&gt;
&lt;p class=&quot;og-host&quot; data-ke-size=&quot;size16&quot;&gt;www.remove.bg&lt;/p&gt;
&lt;/div&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;이미지를 준비한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;출처 : &lt;a href=&quot;https://pixabay.com/photos/beautiful-girl-woman-young-1274056/&quot;&gt;https://pixabay.com/photos/beautiful-girl-woman-young-1274056/&lt;/a&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-origin-width=&quot;1920&quot; data-origin-height=&quot;1440&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cqx9En/btqAVH7eNKP/FO7r1HPwMQaDPeeMHWSIh1/img.jpg&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cqx9En/btqAVH7eNKP/FO7r1HPwMQaDPeeMHWSIh1/img.jpg&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cqx9En/btqAVH7eNKP/FO7r1HPwMQaDPeeMHWSIh1/img.jpg&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fcqx9En%2FbtqAVH7eNKP%2FFO7r1HPwMQaDPeeMHWSIh1%2Fimg.jpg&quot; data-origin-width=&quot;1920&quot; data-origin-height=&quot;1440&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;사용하려는 원본이미지는 위와 같다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;인물의 이미지만 필요하다면 위 링크로 이동한다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;111.png&quot; data-origin-width=&quot;1618&quot; data-origin-height=&quot;800&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/3kLk8/btqAZOJQh8i/qzMt6nft5c5g4ZgFdhS1U1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/3kLk8/btqAZOJQh8i/qzMt6nft5c5g4ZgFdhS1U1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/3kLk8/btqAZOJQh8i/qzMt6nft5c5g4ZgFdhS1U1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F3kLk8%2FbtqAZOJQh8i%2FqzMt6nft5c5g4ZgFdhS1U1%2Fimg.png&quot; data-filename=&quot;111.png&quot; data-origin-width=&quot;1618&quot; data-origin-height=&quot;800&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;이미지 파일을 드래그 해서 올려보자&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;바로 변환이 된다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;222.PNG&quot; data-origin-width=&quot;1131&quot; data-origin-height=&quot;741&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cEim4m/btqAWa85ate/ePa0eQK6to2qLtW6wBKEM0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cEim4m/btqAWa85ate/ePa0eQK6to2qLtW6wBKEM0/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cEim4m/btqAWa85ate/ePa0eQK6to2qLtW6wBKEM0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcEim4m%2FbtqAWa85ate%2FePa0eQK6to2qLtW6wBKEM0%2Fimg.png&quot; data-filename=&quot;222.PNG&quot; data-origin-width=&quot;1131&quot; data-origin-height=&quot;741&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;바로 배경이 제거된 모습이다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;생각보다 잘 나온다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;추가로 원하는 이미지는 기타 이미지 편집 도구를 이용해서 상세하게 편집하면된다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;beautiful-1274056_1920-removebg-preview.png&quot; data-origin-width=&quot;577&quot; data-origin-height=&quot;433&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cSWnls/btqAYqCWRZ4/6NFbySP81KP3fVhQA3kRRk/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cSWnls/btqAYqCWRZ4/6NFbySP81KP3fVhQA3kRRk/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cSWnls/btqAYqCWRZ4/6NFbySP81KP3fVhQA3kRRk/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcSWnls%2FbtqAYqCWRZ4%2F6NFbySP81KP3fVhQA3kRRk%2Fimg.png&quot; data-filename=&quot;beautiful-1274056_1920-removebg-preview.png&quot; data-origin-width=&quot;577&quot; data-origin-height=&quot;433&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;개발자가 디자이너 없이 디자인 작업하기에 도움이되는 사이트다.&lt;/p&gt;</description>
      <category>Design/Tip</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/87</guid>
      <comments>https://dwfox.tistory.com/87#entry87comment</comments>
      <pubDate>Wed, 8 Jan 2020 00:42:35 +0900</pubDate>
    </item>
    <item>
      <title>[Tensorflow] windows 에 Tensorflow 설치하기 - CUDA GPU</title>
      <link>https://dwfox.tistory.com/85</link>
      <description>&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;300&quot; height=&quot;169&quot; data-origin-width=&quot;300&quot; data-origin-height=&quot;169&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/2575FE335975BABE06?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/2575FE335975BABE06?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2575FE335975BABE06&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2575FE335975BABE06&quot; width=&quot;300&quot; height=&quot;169&quot; data-origin-width=&quot;300&quot; data-origin-height=&quot;169&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote class=&quot;&quot; data-ke-style=&quot;style2&quot;&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;[Tensorflow] windows 에 Tensorflow 설치하기 - CUDA GPU&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Windows 10 기준 텐서플로우 설치하기&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote data-ke-style=&quot;style3&quot;&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;a class=&quot;tx-link&quot; href=&quot;http://dwfox.tistory.com/67&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;먼저 Python/Anaconda Windows 설치하기&lt;/a&gt;&lt;a class=&quot;tx-link&quot; href=&quot;http://dwfox.tistory.com/67&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;(http://dwfox.tistory.com/67&lt;/a&gt;&lt;a class=&quot;tx-link&quot; href=&quot;http://dwfox.tistory.com/67&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;)&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;를 통해 3.5버전의 Python 설치&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;&amp;nbsp;후 Tensorflow 설치 진행 할 것&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;Tensorflow GPU 버전 - CUDA 설치하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;Tensorflow GUP 버전을 사용하기 위해서는 NVIDIA의 그래픽카드와 소프트웨어가 설치 되어 있어야 한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;1. CUDA&amp;reg; Toolkit 8.0. 설치하기&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;Cuda Toolkit 다운로드 [&lt;a class=&quot;tx-link&quot; href=&quot;https://developer.nvidia.com/cuda-downloads&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;link&lt;/a&gt;] :&amp;nbsp;&lt;/b&gt;&lt;b&gt;https://developer.nvidia.com/cuda-downloads&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;컴퓨터 환경에 맞게 선택하고 다운로드 한다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;718&quot; height=&quot;392&quot; data-origin-width=&quot;718&quot; data-origin-height=&quot;392&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/24F817335975BCF01F?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/24F817335975BCF01F?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/24F817335975BCF01F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F24F817335975BCF01F&quot; width=&quot;718&quot; height=&quot;392&quot; data-origin-width=&quot;718&quot; data-origin-height=&quot;392&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;설치시 경로를 확인한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;디폴트 경로는 아래와 같이 설정되어 있다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;742&quot; height=&quot;548&quot; data-origin-width=&quot;742&quot; data-origin-height=&quot;548&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/277F39335975BE1016?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/277F39335975BE1016?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/277F39335975BE1016&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F277F39335975BE1016&quot; width=&quot;742&quot; height=&quot;548&quot; data-origin-width=&quot;742&quot; data-origin-height=&quot;548&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;설치 후 환경변수 편집을 통해&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;시스템 변수 Path에 경로 기준&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;taggerscript&quot; style=&quot;padding: 12px; box-sizing: border-box; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid #494747; border-image: initial; border-radius: 0px; overflow: auto; margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;code&gt;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;cuDNN v5.1&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;설치하기&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; font-size: 12px; color: #5d5d5d;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;cuDNN 5.1 다운로드 [&lt;a class=&quot;tx-link&quot; href=&quot;https://developer.nvidia.com/cudnn&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;link&lt;/a&gt;]&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; border: 0px; margin: 0px; padding: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; font-size: 12px; color: #5d5d5d;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px; line-height: 1.3; font-size: 10pt;&quot;&gt;&lt;a class=&quot;tx-link&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; line-height: 1.3;&quot; href=&quot;https://developer.nvidia.com/cudnn&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;https://developer.nvidia.com/cudnn&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 10pt;&quot;&gt;CuDNN은 NVIDIA에서 회원가입을 해야 다운 받을 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 10pt;&quot;&gt;간단하게 회원가입을 하고 다운을 받는다.&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;51&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;50&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/27B9B6335975C6FF19?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/27B9B6335975C6FF19?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/27B9B6335975C6FF19&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F27B9B6335975C6FF19&quot; width=&quot;900&quot; height=&quot;51&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;50&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 10pt;&quot;&gt;다운받은 파일은 기본경로 기준에 압축을 풀도록 한다.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;192&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;192&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/21AFE7335975C7931B?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/21AFE7335975C7931B?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/21AFE7335975C7931B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F21AFE7335975C7931B&quot; width=&quot;900&quot; height=&quot;192&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;192&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;Tensorflow 설치&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;1. Tensorflow 설치 - Anaconda&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;C:\&amp;gt;python --version Python 3.5.2 :: Anaconda 4.2.0 (64-bit)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;C:\&amp;gt;conda create -n tensorflow python=3.5&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;C:\&amp;gt;activate tensorflow&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;(tensorflow) C:\&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;(tensorflow) C:\ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.2.1-cp35-cp35m-win_amd64.whl&lt;/p&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;2. Tensorflow GPU - 테스트 결과&lt;/p&gt;
&lt;div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;C:\&amp;gt;&lt;b&gt;&lt;span style=&quot;background-color: #000000; color: #ffffff;&quot;&gt;python&lt;/span&gt;&lt;/b&gt; Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &amp;gt;&amp;gt;&amp;gt; import tensorflow as tf I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library cublas64_80.dll locally I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:119] Couldn't open CUDA library cudnn64_5.dll I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_dnn.cc:3459] Unable to load cuDNN DSO I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library cufft64_80.dll locally I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library nvcuda.dll locally I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library curand64_80.dll locally &amp;gt;&amp;gt;&amp;gt; &lt;b&gt;&lt;span style=&quot;background-color: #000000; color: #ffffff;&quot;&gt;hello = tf.constant('Hello, TensorFlow!')&lt;/span&gt;&lt;/b&gt; &amp;gt;&amp;gt;&amp;gt; &lt;b&gt;&lt;span style=&quot;background-color: #000000; color: #ffffff;&quot;&gt;sess = tf.Session()&lt;/span&gt;&lt;/b&gt; I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 0 with properties: name: GeForce GTX 960M major: 5 minor: 0 memoryClockRate (GHz) 1.176 pciBusID 0000:01:00.0 Total memory: 2.00GiB Free memory: 1.65GiB I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:906] DMA: 0 I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:916] 0: Y I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -&amp;gt; (device: 0, name: GeForce GTX 960M, pci bus id: 0000:01:00.0) &amp;gt;&amp;gt;&amp;gt; &lt;b&gt;&lt;span style=&quot;background-color: #000000; color: #ffffff;&quot;&gt;print(sess.run(hello))&lt;/span&gt;&lt;/b&gt; b'Hello, TensorFlow!'&lt;/p&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;참고 :&amp;nbsp;https://www.tensorflow.org/install/install_windows&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>Dev/ML</category>
      <category>Python</category>
      <category>tensorflow</category>
      <category>머신러닝</category>
      <category>설치</category>
      <category>윈도우</category>
      <category>텐서플로우</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/85</guid>
      <comments>https://dwfox.tistory.com/85#entry85comment</comments>
      <pubDate>Fri, 13 Jul 2018 15:17:14 +0900</pubDate>
    </item>
    <item>
      <title>[Python] Python Windows 개발 환경 구성 - Pycharm(파이참) 설치</title>
      <link>https://dwfox.tistory.com/69</link>
      <description>&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;160&quot; height=&quot;160&quot; data-origin-width=&quot;160&quot; data-origin-height=&quot;160&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/255B683F58B55CD92E?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/255B683F58B55CD92E?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/255B683F58B55CD92E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F255B683F58B55CD92E&quot; width=&quot;160&quot; height=&quot;160&quot; data-origin-width=&quot;160&quot; data-origin-height=&quot;160&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote class=&quot;&quot; data-ke-style=&quot;style2&quot;&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;[Python] Python Windows 개발 환경 구성 - IDE [PyCharm] 파이참 설치&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Python 개발환경 PyCharm 설치&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;파이썬 IDE (통합 개발 환경) 종류&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-weight: normal; font-size: 13px;&quot;&gt;파이썬 IDE(통합 갤발 환경) 소개 &lt;a class=&quot;tx-link&quot; href=&quot;https://wiki.python.org/moin/IntegratedDevelopmentEnvironments&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;[link]&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 13px; font-weight: normal;&quot;&gt;윈도우 플랫폼을 지원하는 IDE들도 상당수 있다. 물론 메모장이나 텍스트 에디터를 사용해서 개발해도 되지만 각종 프레임워크나 플러그인들이 잘 갖추어 있는 IDE를 선택하거나 유료버전의 특별한 기능 등을 고려하여 선택하도록 한다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 13px; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;PyCharm (파이참) 설치&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;위 IDE 소개 링크를 통해 알 수 있듯 많은 파이썬 통한 개발 환경이 개발되고 있다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;그 가운데 &lt;b&gt;&lt;a class=&quot;tx-link&quot; href=&quot;https://www.jetbrains.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;JetBrain&lt;/a&gt;&lt;/b&gt;의 Python IDE인 &lt;a class=&quot;tx-link&quot; href=&quot;https://www.jetbrains.com/pycharm/?fromMenu&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;PyC&lt;/a&gt;&lt;a class=&quot;tx-link&quot; href=&quot;https://www.jetbrains.com/pycharm/?fromMenu&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;harm(파이참)&lt;/a&gt;을 통해 파이썬 위도우 개발환경을 구성 하려고 한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote data-ke-style=&quot;style3&quot;&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;※ PyCharm을 설치하기 전에(후라도 상관없음) 미리 &lt;b&gt;Python을 설치&lt;/b&gt;하도록 한다. (추후 Tensorflow 사용을 위하여)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;참고 - &lt;/b&gt;&lt;a class=&quot;tx-link&quot; href=&quot;http://dwfox.tistory.com/67&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;b&gt;http://dwfox.tistory.com/67&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;먼저 PyCharm을 다운로드&lt;a class=&quot;tx-link&quot; href=&quot;https://www.jetbrains.com/pycharm/download/#section=windows&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;[link]&lt;/a&gt; 한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot; data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;501&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;501&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/2221103558B5632C1F?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/2221103558B5632C1F?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2221103558B5632C1F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2221103558B5632C1F&quot; width=&quot;900&quot; height=&quot;501&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;501&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;Professional과 Community 버전이 있는데 Professional 버전은 유료이지만 파이썬 개발에 필요한 프레임워크를 제공하고 있으므로 Django나 Flask, Angular를 개발하기를 원한다면 Professional버전을 다운받아 설치한다(30일 trial)&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;(※ 대학교 이메일 계정이 있다면 비상업적 용도로 1년단위로 Professional 버전을 사용할 수 있다.)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;설치는 기본과정을 통해 설치하도록 한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;Project 생성&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;632&quot; style=&quot;text-align: center;&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;631&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/2415BB3458B566A917?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/2415BB3458B566A917?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2415BB3458B566A917&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2415BB3458B566A917&quot; width=&quot;900&quot; height=&quot;632&quot; style=&quot;text-align: center;&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;631&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot; data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;1. 프로젝트를 생선한다.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;2~4. 인터프리터를 위치를 지정하여 사용할 Python버전을 선택하도록 한다.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;인터프리터는 Anaconda3의 Python 3.5버전을 선택한다. (추후 Tensorflow를 테스트하기 위함 - pip를 통해 설치할 tensorflow를 사용할 수 있을 것)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;(※ Community 버전에는 새 프로젝트 생성시 Django, Flask등 프레임워크를 지원하지 않는다.)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;PyCharm 테스트&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;555&quot; height=&quot;662&quot; style=&quot;width: 555px; height: 662px;&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;1072&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/275FB94258B56B0626?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/275FB94258B56B0626?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/275FB94258B56B0626&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F275FB94258B56B0626&quot; width=&quot;555&quot; height=&quot;662&quot; style=&quot;width: 555px; height: 662px;&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;1072&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;파이썬 파일을 생성하여 테스트 하도록 한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;
&lt;script src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;/p&gt;
&lt;p&gt;&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display: inline-block; width: 320px; height: 100px;&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;9845192338&quot;&gt;&lt;/ins&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;
&lt;script&gt; (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&amp;nbsp;ExamplePython.py&lt;/b&gt;&lt;/p&gt;
&lt;div style=&quot;background: #ffffff; overflow: auto; width: auto; border: solid #4589ff; border-width: .1em .1em .1em .35em; padding: .2em .6em;&quot;&gt;
&lt;pre class=&quot;routeros&quot; style=&quot;margin: 0; line-height: 125%;&quot;&gt;&lt;code&gt;a = 1 b = 2 c = 10  print('Hello Python') print('Result a+b*c = ', a+b*c) &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;555&quot; height=&quot;104&quot; style=&quot;width: 555px; height: 104px;&quot; data-origin-width=&quot;841&quot; data-origin-height=&quot;157&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/2511FE4658B56EB22D?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/2511FE4658B56EB22D?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2511FE4658B56EB22D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2511FE4658B56EB22D&quot; width=&quot;555&quot; height=&quot;104&quot; style=&quot;width: 555px; height: 104px;&quot; data-origin-width=&quot;841&quot; data-origin-height=&quot;157&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;결과&lt;/b&gt;&lt;/p&gt;
&lt;div style=&quot;background: #ffffff; overflow: auto; width: auto; border: solid #000000; border-width: .1em .1em .1em .35em; padding: .2em .6em;&quot;&gt;
&lt;pre class=&quot;groovy&quot; style=&quot;margin: 0; line-height: 125%;&quot;&gt;&lt;code&gt;&quot;C:\Program Files\Anaconda3\python.exe&quot; C:/Users/DWFOX/PycharmProjects/untitled1/ExamplePython.py Hello Python Result a+b*c =  21  Process finished with exit code 0 &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;위 결과까지 나오면 기본적인 PyCharm 개발환경 구성은 완료가 되었다.&lt;/p&gt;</description>
      <category>Dev/Python</category>
      <category>IDE</category>
      <category>jetbrain</category>
      <category>pycharm</category>
      <category>Python</category>
      <category>Windows</category>
      <category>개발환경</category>
      <category>설치</category>
      <category>파이썬</category>
      <category>파이참</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/69</guid>
      <comments>https://dwfox.tistory.com/69#entry69comment</comments>
      <pubDate>Fri, 13 Jul 2018 15:17:07 +0900</pubDate>
    </item>
    <item>
      <title>[Android] Picasso 블러 - Blur 적용하기 ( Transform )</title>
      <link>https://dwfox.tistory.com/48</link>
      <description>&lt;blockquote class=&quot;&quot; data-ke-style=&quot;style2&quot;&gt;&lt;span style=&quot;color: #050099;&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;[Android]&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;Picasso 블러 - Blur 적용하기 (&amp;nbsp;Transform )&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;android Blur effect&amp;nbsp;example Using the image loader library Picasso&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 이미지 로드 라이브러리 Picasso를 안드로이드에 적용하기&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;아래의 포스팅에서 라이브러리 적용하는 방법과 간단히 사용하는 방법이 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;▷&lt;a class=&quot;tx-link&quot; href=&quot;http://dwfox.tistory.com/33&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&amp;nbsp;[Android] 이미지 로드 라이브러리 Picasso 사용하기&lt;/a&gt;&amp;nbsp;참조&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;286&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;286&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/24528750580DF35114?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/24528750580DF35114?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/24528750580DF35114&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F24528750580DF35114&quot; width=&quot;900&quot; height=&quot;286&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;286&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Android &amp;nbsp;Renderscript 라이브러리를 &amp;nbsp;Blur 사용하기&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot; data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;background-color: #4673ff; color: #ffffff;&quot;&gt;&amp;nbsp;1.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;b&gt;Renderscript 사용 제한&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;▷&amp;nbsp;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Android SDK Tools revision 22.2 or higher --&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;SDK툴 버전이 22.2 버전이상 사용하고&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;▷&amp;nbsp;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Android SDK Build-tools revision 18.1.0 or higher&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;-- 안드로이드 SDK 빌드 툴 버전은 18.1.0 버전이상 사용한다면 Renderscript를 사용할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #4673ff; color: #ffffff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;2.&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;Build.gradle 설정&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;아래는 예제로 작성한 안드로이드 앱의 build.gradle 파일이다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;Blur 를 사용하기 위해 Renderscript 옵션을 &amp;nbsp;추가하였다..&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;빨간색 글씨를 추가하면 될 것이다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: #010101; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position: relative !important;&quot;&gt;
&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin: 0px; padding: 0px; border: none; background-color: #fafafa; border-radius: 4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; data-ke-align=&quot;alignLeft&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 6px; border-right: 2px solid #e5e5e5;&quot;&gt;
&lt;div style=&quot;margin: 0px; padding: 0px; word-break: normal; text-align: right; color: #666666; line-height: 16.9px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;&quot;&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;1&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;2&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;3&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;4&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;5&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;6&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;7&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;8&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;9&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;10&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;11&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;12&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;13&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;14&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;15&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;16&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;17&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;18&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;19&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;20&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;21&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;22&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;23&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;24&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;25&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;26&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;27&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;28&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;29&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;30&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;31&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;32&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;padding: 6px 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px; padding: 0px; color: #010101; line-height: 16.9px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;&quot;&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;apply&amp;nbsp;plugin:&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'com.android.application'&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;android&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compileSdkVersion&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;23&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;buildToolsVersion&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;&quot;23.0.3&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;defaultConfig&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;applicationId&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;&quot;com.packagename&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;minSdkVersion&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;19&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;targetSdkVersion&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;23&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;versionCode&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;versionName&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;renderscriptTargetApi&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;19&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;renderscriptSupportModeEnabled&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;true&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;buildTypes&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;release&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;minifyEnabled&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;false&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;proguardFiles&amp;nbsp;getDefaultProguardFile(&lt;span style=&quot;color: #993333;&quot;&gt;'proguard-android.txt'&lt;/span&gt;),&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'proguard-rules.pro'&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;dependencies&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;fileTree(dir:&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'libs'&lt;/span&gt;,&amp;nbsp;include:&amp;nbsp;[&lt;span style=&quot;color: #993333;&quot;&gt;'*.jar'&lt;/span&gt;])&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;testCompile&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'junit:junit:4.12'&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'com.android.support:appcompat-v7:23.4.0'&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'com.android.support:support-v4:23.4.0'&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'com.android.support:design:23.4.0'&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;'com.squareup.picasso:picasso:2.5.2'&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right; margin-top: -13px; margin-right: 5px; font-size: 9px; font-style: italic;&quot;&gt;&lt;a style=&quot;color: #e5e5e5;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;vertical-align: bottom; padding: 0px 2px 4px 0px;&quot;&gt;&lt;a style=&quot;color: white;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: #e5e5e5; border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #4673ff; color: #ffffff;&quot;&gt;&amp;nbsp;3.&amp;nbsp;&lt;/span&gt;&amp;nbsp;RenderScript의 Blur 작성하기&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ffffff; color: #000000;&quot;&gt;&amp;nbsp;RenderScriptBlur.java&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;아래는 Bitmap 파일을 Blur 처리 할 수 있기 때문에 Picasso적용만을 위한 것은 아니다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: #010101; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position: relative !important;&quot;&gt;
&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin: 0px; padding: 0px; border: none; background-color: #fafafa; border-radius: 4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; data-ke-align=&quot;alignLeft&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 6px; border-right: 2px solid #e5e5e5;&quot;&gt;
&lt;div style=&quot;margin: 0px; padding: 0px; word-break: normal; text-align: right; color: #666666; line-height: 16.9px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;&quot;&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;1&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;2&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;3&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;4&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;5&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;6&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;7&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;8&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;9&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;10&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;11&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;12&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;13&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;14&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;15&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;16&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;17&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;18&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;19&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;20&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;21&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;22&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;23&lt;/div&gt;
&lt;div style=&quot;line-height: 16.9px;&quot;&gt;24&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;padding: 6px 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px; padding: 0px; color: #010101; line-height: 16.9px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;&quot;&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;class&lt;/span&gt;&amp;nbsp;RenderScriptBlur&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;static&lt;/span&gt;&amp;nbsp;Bitmap&amp;nbsp;blur(Context&amp;nbsp;context,&amp;nbsp;Bitmap&amp;nbsp;targetBitmap,&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;radius)&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;throws&lt;/span&gt;&amp;nbsp;RSRuntimeException&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RenderScript&amp;nbsp;renderScript&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;null&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;try&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;renderScript&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;RenderScript.create(context);&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Allocation&amp;nbsp;input&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;Allocation.createFromBitmap(renderScript,&amp;nbsp;targetBitmap,&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Allocation.MipmapControl.MIPMAP_NONE,&amp;nbsp;Allocation.USAGE_SCRIPT);&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Allocation&amp;nbsp;output&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;Allocation.createTyped(renderScript,&amp;nbsp;input.getType());&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ScriptIntrinsicBlur&amp;nbsp;blur&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;ScriptIntrinsicBlur.create(renderScript,&amp;nbsp;Element.U8_4(renderScript));&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;blur.setInput(input);&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;blur.setRadius((radius&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;25&lt;/span&gt;&amp;nbsp;?&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;25&lt;/span&gt;&amp;nbsp;:&amp;nbsp;radius));&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;blur.forEach(output);&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;output.copyTo(targetBitmap);&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;finally&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(renderScript&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;null&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;renderScript.destroy();&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;return&lt;/span&gt;&amp;nbsp;targetBitmap;&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;}&lt;/div&gt;
&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 16.9px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right; margin-top: -13px; margin-right: 5px; font-size: 9px; font-style: italic;&quot;&gt;&lt;a style=&quot;color: #e5e5e5;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;vertical-align: bottom; padding: 0px 2px 4px 0px;&quot;&gt;&lt;a style=&quot;color: white;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: #e5e5e5; border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #4673ff; color: #ffffff;&quot;&gt;&amp;nbsp;4.&amp;nbsp;&lt;/span&gt;&amp;nbsp;Picasso의 Transformation&amp;nbsp;Blur 작성하기&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;BlurTransformation.java&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: #010101; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position: relative !important; overflow: auto;&quot;&gt;
&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin: 0; padding: 0; border: none; background-color: #fafafa; border-radius: 4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; data-ke-align=&quot;alignLeft&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 6px; border-right: 2px solid #e5e5e5;&quot;&gt;
&lt;div style=&quot;margin: 0; padding: 0; word-break: normal; text-align: right; color: #666; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height: 130%;&quot;&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;1&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;2&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;3&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;4&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;5&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;6&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;7&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;8&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;9&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;10&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;11&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;12&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;13&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;14&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;15&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;16&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;17&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;18&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;19&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;20&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;21&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;22&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;23&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;24&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;25&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;26&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;27&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;28&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;29&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;30&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;31&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;32&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;33&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;34&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;35&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;36&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;37&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;38&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;39&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;40&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;41&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;42&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;43&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;44&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;45&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;46&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;47&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;48&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;49&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;50&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;51&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;52&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;53&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;54&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;55&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;56&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;57&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;58&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;59&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;60&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;61&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;62&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;63&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;64&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;padding: 6px 0;&quot;&gt;
&lt;div style=&quot;margin: 0; padding: 0; color: #010101; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height: 130%;&quot;&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;class&lt;/span&gt;&amp;nbsp;BlurTransformation&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;implements&lt;/span&gt;&amp;nbsp;Transformation&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;MAX_RADIUS&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;25&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;DEFAULT_DOWN_SAMPLING&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;1&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;private&lt;/span&gt;&amp;nbsp;Context&amp;nbsp;mContext;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;mRadius;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;mSampling;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;BlurTransformation(Context&amp;nbsp;context)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;this&lt;/span&gt;(context,&amp;nbsp;MAX_RADIUS,&amp;nbsp;DEFAULT_DOWN_SAMPLING);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;BlurTransformation(Context&amp;nbsp;context,&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;radius)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;this&lt;/span&gt;(context,&amp;nbsp;radius,&amp;nbsp;DEFAULT_DOWN_SAMPLING);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;BlurTransformation(Context&amp;nbsp;context,&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;radius,&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;sampling)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mContext&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;context.getApplicationContext();&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mRadius&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;radius;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(mRadius&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;25&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mRadius&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;25&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;else&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(mRadius&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mRadius&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;1&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mSampling&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;sampling;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;Bitmap&amp;nbsp;transform(Bitmap&amp;nbsp;source)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;scaledWidth&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;source.getWidth()&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;/&lt;/span&gt;&amp;nbsp;mSampling;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;int&lt;/span&gt;&amp;nbsp;scaledHeight&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;source.getHeight()&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;/&lt;/span&gt;&amp;nbsp;mSampling;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;bitmap&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;Bitmap.createBitmap(scaledWidth,&amp;nbsp;scaledHeight,&amp;nbsp;Bitmap.Config.ARGB_8888);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Canvas&amp;nbsp;canvas&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Canvas(bitmap);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;canvas.scale(&lt;span style=&quot;color: #308ce5;&quot;&gt;1&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;/&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #0099cc;&quot;&gt;float&lt;/span&gt;)&amp;nbsp;mSampling,&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;1&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;/&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #0099cc;&quot;&gt;float&lt;/span&gt;)&amp;nbsp;mSampling);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Paint&amp;nbsp;paint&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Paint();&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;paint.setFlags(Paint.FILTER_BITMAP_FLAG);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;canvas.drawBitmap(source,&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;0&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;0&lt;/span&gt;,&amp;nbsp;paint);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(Build.VERSION.SDK_INT&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;Build.VERSION_CODES.JELLY_BEAN_MR1)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;try&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bitmap&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;RenderScriptBlur.blur(mContext,&amp;nbsp;bitmap,&amp;nbsp;mRadius);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;catch&lt;/span&gt;&amp;nbsp;(RSRuntimeException&amp;nbsp;e)&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;else&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;source.recycle();&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;return&lt;/span&gt;&amp;nbsp;bitmap;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0099cc;&quot;&gt;String&lt;/span&gt;&amp;nbsp;key()&amp;nbsp;{&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;&quot;BlurTransformation(radius=&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;+&lt;/span&gt;&amp;nbsp;mRadius&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;+&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;&quot;,&amp;nbsp;sampling=&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;+&lt;/span&gt;&amp;nbsp;mSampling&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;+&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #993333;&quot;&gt;&quot;)&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;}&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right; margin-top: -13px; margin-right: 5px; font-size: 9px; font-style: italic;&quot;&gt;&lt;a style=&quot;color: #e5e5e5;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;vertical-align: bottom; padding: 0 2px 4px 0;&quot;&gt;&lt;a style=&quot;color: white;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: #e5e5e5; border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Picasso 적용하기&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: #010101; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position: relative !important; overflow: auto;&quot;&gt;
&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin: 0; padding: 0; border: none; background-color: #fafafa; border-radius: 4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; data-ke-align=&quot;alignLeft&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 6px; border-right: 2px solid #e5e5e5;&quot;&gt;
&lt;div style=&quot;margin: 0; padding: 0; word-break: normal; text-align: right; color: #666; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height: 130%;&quot;&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;1&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;2&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;3&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;4&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;5&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;padding: 6px 0;&quot;&gt;
&lt;div style=&quot;margin: 0; padding: 0; color: #010101; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height: 130%;&quot;&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Picasso.with(&lt;span style=&quot;color: #ff3399;&quot;&gt;this&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.load(&lt;span style=&quot;color: #993333;&quot;&gt;&quot;http://kaboompics.com/files/upload/o_19v85jk82r7a1ibk1b1r189j1atq7_new.jpg&quot;&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.transform(&lt;span style=&quot;color: #ff3399;&quot;&gt;new&lt;/span&gt;&amp;nbsp;BlurTransformation(&lt;span style=&quot;color: #ff3399;&quot;&gt;this&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #308ce5;&quot;&gt;25&lt;/span&gt;))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.into(picassoImageView);&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right; margin-top: -13px; margin-right: 5px; font-size: 9px; font-style: italic;&quot;&gt;&lt;a style=&quot;color: #e5e5e5;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;vertical-align: bottom; padding: 0 2px 4px 0;&quot;&gt;&lt;a style=&quot;color: white;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: #e5e5e5; border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 결과화면&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;gt;&amp;gt; 블러 효과 없을때&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;566&quot; height=&quot;902&quot; data-origin-width=&quot;566&quot; data-origin-height=&quot;902&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/277CBA4D580DF37B10?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/277CBA4D580DF37B10?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/277CBA4D580DF37B10&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F277CBA4D580DF37B10&quot; width=&quot;566&quot; height=&quot;902&quot; data-origin-width=&quot;566&quot; data-origin-height=&quot;902&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;gt;&amp;gt; 블러 Radius 25&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;560&quot; height=&quot;907&quot; data-origin-width=&quot;560&quot; data-origin-height=&quot;907&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/277B1C47580DF3AC23?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/277B1C47580DF3AC23?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/277B1C47580DF3AC23&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F277B1C47580DF3AC23&quot; width=&quot;560&quot; height=&quot;907&quot; data-origin-width=&quot;560&quot; data-origin-height=&quot;907&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Blur</category>
      <category>Picasso</category>
      <category>transformation</category>
      <category>블러</category>
      <category>안드로이드</category>
      <category>이미지라이브러리</category>
      <category>이미지처리</category>
      <category>이미지효과</category>
      <category>피카소</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/48</guid>
      <comments>https://dwfox.tistory.com/48#entry48comment</comments>
      <pubDate>Fri, 13 Jul 2018 15:16:24 +0900</pubDate>
    </item>
    <item>
      <title>[Android Error] All com.android.support libraries must use the exact same version specification</title>
      <link>https://dwfox.tistory.com/73</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 24px; color: rgb(5, 0, 153);&quot;&gt;All com.android.support libraries must use the exact same version specification(mixing versions can lead to runtime crashes)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;안드로이드 스튜디오 Gradle support library Version 빌드 에러&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 내용&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;안드로이드 스튜디오 3.1.0 이상 버전에서 기존 프로젝트에서 아래와 같은 Gradle 빌드 에러가 나타난다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt;&quot;&gt;Customtabs&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;와 &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;Mediarouter &lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;의 버전문제로 안내된다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;com.google.android.gms:play-services를 함께 Dependencies에 사용하면 나타나는 듯 하다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(219, 232, 251); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;All com.android.support libraries must use the exact same version specification &lt;/b&gt;(mixing versions can lead to runtime crashes). Found versions 23.4.0, 23.0.0. Examples include com.android.support:animated-vector-drawable:23.4.0 and com.android.support:mediarouter-v7:23.0.0&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Solution&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;build.gradle의&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;dependencies에&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Customtabs&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;와&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Mediarouter&lt;/b&gt; 명시적으로&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;추가한다.&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Consolas';font-size:9.0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;compile &lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;'com.android.support:appcompat-v7:25.3.0' &lt;/span&gt;&lt;span style=&quot;color:#808080;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;//Google Component&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;compile &lt;/span&gt;&lt;span style=&quot;color:#cfcc00;font-weight:bold;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;'com.android.support:customtabs:25.3.0'&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;compile &lt;/span&gt;&lt;span style=&quot;color:#cfcc00;font-weight:bold;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;'com.android.support:mediarouter-v7:25.3.0'&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;...&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;위와 같이 support &amp;nbsp;라이브러리 버전에 맞춰 추가하고 다시 빌드하면 에러가 사라진다.&lt;/p&gt;</description>
      <category>Error/Android</category>
      <category>dependencies</category>
      <category>라이브러리</category>
      <category>안드로이드</category>
      <category>안드로이드 스튜디오</category>
      <category>에러</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/73</guid>
      <comments>https://dwfox.tistory.com/73#entry73comment</comments>
      <pubDate>Fri, 13 Jul 2018 15:16:11 +0900</pubDate>
    </item>
    <item>
      <title>[Android/Tip] Android 자동 생성(Generate) - 싱글톤 / Getter / Setter / Constructor / toString</title>
      <link>https://dwfox.tistory.com/72</link>
      <description>&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 200px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/227A4C4C5914035828&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F227A4C4C5914035828&quot; width=&quot;200&quot; height=&quot;200&quot; filename=&quot;image00.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;[Android/Tip] Android 코드 자동 생성(Generate)&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Singleton(싱글톤)&amp;nbsp;/ Getter / Setter / Constructor / toString&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 13px; font-weight: normal;&quot;&gt;안드로이드 스튜디오를 이용하면서 단순작업이나 유용한 코드 자동 생성 기능들에 대해 알아보자.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;( ※ 불완전 코드를 완성 시키기 위한 힌트가 아닌 매크로와 같은 기능이다 . )&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Singleton Class 만들기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;안드로이드 스튜디오(Intellij)에서 Singleton Class를 생성할 때 만들어 Singleton Class 만드는 시간과 노력을 몇초라도 줄여보자&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/22366A495914065516&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F22366A495914065516&quot; width=&quot;900&quot; height=&quot;713&quot; filename=&quot;11.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;아래와 같은 코드로 생성이 된다.&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;여러가지 Singleton 방식이 있지만 기본적인 형태의 Singleton으로 생성이 된다.&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;public &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;DWPermission&lt;/span&gt; {

    private static final DWPermission ourInstance &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; new DWPermission();

    public static DWPermission getInstance() {
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; ourInstance;
    }

    private DWPermission() {
    }
}
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;

&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Genterate 이용하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;윈도우 안드로이드 이클립스 기준으로 &amp;nbsp;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;alt&amp;nbsp;&lt;/span&gt; + &lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;insert &lt;/span&gt;&amp;nbsp;를 눌러보면 아래와 같은 메뉴가 나온다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 316px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/23302C3559140B1506&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F23302C3559140B1506&quot; width=&quot;316&quot; height=&quot;259&quot; filename=&quot;12.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;아래의 클래스로 생성해보자.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;◎&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;테스트 클래스&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2
3
4
5&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;DWPermission&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
    String str&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;boolean&lt;/span&gt; isBoolean&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;1&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp; &lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Constructor 생성자&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 687px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/214BDF4D59140C2E2C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F214BDF4D59140C2E2C&quot; width=&quot;687&quot; height=&quot;276&quot; filename=&quot;13.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;생성자에 입력받을 변수를 선택한다. &amp;nbsp;Select None을 선택하면 &amp;nbsp;기본 생성자가 만들어지고&lt;/p&gt;&lt;p&gt;변수를 선택하고 OK 를 누르면 변수가 포함된 생성자가 만들어진다.&lt;/p&gt;&lt;p&gt;(여러 변수를 선택하려면 Ctrl을 누른채로 클릭하거나 맨위 변수를 선택하고 쉬프트를 누른채로 가장 마지막 변수를 선택하면 여러 변수를 선택할 수 있다.)&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;DWPermission&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
    String str&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;boolean&lt;/span&gt; isBoolean&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #888888&quot;&gt;// Select None으로 만들어진 생성자&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DWPermission&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #888888&quot;&gt;// 변수 선택으로 만들어진 생성자&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DWPermission&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;String str&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;boolean&lt;/span&gt; isBoolean&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;str&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; str&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;number&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;isBoolean&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; isBoolean&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;2&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp; &lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Getter/Setter&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;변수에 대한 Get/Set 메소드를 생성해준다.&lt;/p&gt;&lt;p&gt;간략하게 Getter/Setter를 선택하면 아래와 같이 변수를 선택하고&lt;/p&gt;&lt;p&gt;Setter의 형태에 따라 Builder 형태로도 만들어 준다.&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/227D4A4C59140DFC33&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F227D4A4C59140DFC33&quot; width=&quot;700&quot; height=&quot;395&quot; filename=&quot;13.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&amp;nbsp;2 &lt;/b&gt;&lt;/span&gt;-&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt; 1&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;b&gt;기본&lt;/b&gt;적인 형태는 아래와 같이 생성이 된다.&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;DWPermission&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
    String str&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;boolean&lt;/span&gt; isBoolean&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getStr&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; str&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setStr&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;String str&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;str&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; str&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getNumber&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setNumber&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;number&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; number&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;isBoolean&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; isBoolean&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setBoolean&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;boolean&lt;/span&gt; aBoolean&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        isBoolean &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; aBoolean&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&amp;nbsp;2&amp;nbsp;&lt;/b&gt;&lt;/span&gt;-&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;2&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;b&gt;Builder&lt;/b&gt;를 선택하면 아래와 같이 만들어 진다.&lt;/p&gt;&lt;p&gt;완벽한 Builder 패턴을 만들어 주는 것은 아니므로 완성시켜 사용하도록 한다.&lt;/p&gt;&lt;div style=&quot;background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow: auto; width: auto; border-style: solid; border-color: rgb(92, 187, 192); border-image: initial; border-width: 0em 0em 0em 0.2em; padding: 0.2em 0.6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin-top: 0px; margin-bottom: 0px; line-height: 16.25px;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin-top: 0px; margin-bottom: 0px; line-height: 16.25px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: rgb(187, 0, 102); font-weight: bold;&quot;&gt;DWPermission&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;{&lt;/span&gt;
    String str&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 153); font-weight: bold;&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 153); font-weight: bold;&quot;&gt;boolean&lt;/span&gt; isBoolean&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: rgb(0, 102, 187); font-weight: bold;&quot;&gt;getStr&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; str&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; DWPermission &lt;span style=&quot;color: rgb(0, 102, 187); font-weight: bold;&quot;&gt;setStr&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;(&lt;/span&gt;String str&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 204);&quot;&gt;str&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;=&lt;/span&gt; str&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 153); font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 102, 187); font-weight: bold;&quot;&gt;getNumber&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; number&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; DWPermission &lt;span style=&quot;color: rgb(0, 102, 187); font-weight: bold;&quot;&gt;setNumber&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 153); font-weight: bold;&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 204);&quot;&gt;number&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;=&lt;/span&gt; number&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 153); font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 102, 187); font-weight: bold;&quot;&gt;isBoolean&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; isBoolean&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;public&lt;/span&gt; DWPermission &lt;span style=&quot;color: rgb(0, 102, 187); font-weight: bold;&quot;&gt;setBoolean&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 153); font-weight: bold;&quot;&gt;boolean&lt;/span&gt; aBoolean&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;{&lt;/span&gt;
        isBoolean &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;=&lt;/span&gt; aBoolean&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 136, 0); font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;3&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;b&gt;toString&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Java의 최상위 객체인 Object의 toString 을 살펴보면 아래와 같이 클래스 이름과 &amp;nbsp;hashCode를 String형태로 리턴해준다.&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2
3&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getClass&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getName&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;@&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; Integer&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;toHexString&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;hashCode&lt;span style=&quot;color: #333333&quot;&gt;());&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Genterate의 toString으로 변수정보를 알아 볼 수 있도록 만들어 준다.&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2
3
4
5
6
7
8&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;    &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Override&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;DWPermission{&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt;
                &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;str='&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; str &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #0044DD&quot;&gt;'\''&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt;
                &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;, number=&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; number &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt;
                &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;, isBoolean=&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; isBoolean &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt;
                &lt;span style=&quot;color: #0044DD&quot;&gt;'}'&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;기존 Object의 toString정보를 보려면 아래의 코드를 추가해서 리턴해주도록 한다.&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>getter</category>
      <category>IDE</category>
      <category>object</category>
      <category>setter</category>
      <category>TIP</category>
      <category>tostring</category>
      <category>싱글톤</category>
      <category>안드로이드</category>
      <category>안드로이드 스튜디오</category>
      <category>자동생성</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/72</guid>
      <comments>https://dwfox.tistory.com/72#entry72comment</comments>
      <pubDate>Fri, 13 Jul 2018 15:16:02 +0900</pubDate>
    </item>
    <item>
      <title>[Android] 안드로이드 QR코드 적용하기 - zxing-android-embedded</title>
      <link>https://dwfox.tistory.com/79</link>
      <description>&lt;center&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    google_ad_client = &quot;ca-pub-4155860538151763&quot;;
    google_ad_slot = &quot;9845192338&quot;;
    google_ad_width = 320;
    google_ad_height = 100;
&lt;/script&gt;
&lt;!-- tistory_top_smail_width --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;//pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;[Android] 안드로이드 QRcode 적용하기 -&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: 24px;&quot;&gt;zxing-android-embedded&lt;/b&gt;&lt;/p&gt;&lt;p&gt;QR코드 생성하기 / QR코드 읽기 / QRcode Reader / QRcode Writer&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;QRCode의 Zxing 라이브러리를 안드로이드에서 더 쉽게 설정하고 사용할 수 있도록 만든&amp;nbsp;&lt;a href=&quot;https://github.com/journeyapps/zxing-android-embedded&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;zxing-android-embedded&lt;/a&gt; 라이브러리를 이용하여 앱에 적용해보자.&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 200px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/257BEE455948A41B1A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F257BEE455948A41B1A&quot; width=&quot;200&quot; height=&quot;200&quot; filename=&quot;image00.png&quot; filemime=&quot;image/jpeg&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Gradle 설정&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;

&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.0em .0em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;repositories {
    jcenter()
}

dependencies {
    ...
    compile &lt;span style=&quot;background-color: #fff0f0&quot;&gt;'com.android.support:appcompat-v7:25.3.1'&lt;/span&gt; &lt;span style=&quot;color: #888888&quot;&gt;// Version 23+ is Required&lt;/span&gt;
    compile &lt;span style=&quot;background-color: #fff0f0&quot;&gt;'com.journeyapps:zxing-android-embedded:3.5.0'&lt;/span&gt;
    ...
}
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;위와 같이 Gradle 설정을 해준다.&amp;nbsp;&lt;/p&gt;&lt;p&gt;안드로이드 빌드 툴 버전은 23.0.2 미만의 버전에서는 컴파일 에러가 발생한다고 한다.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;QRCode Reader 호출하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;QRCode Reader를 호출하고 호출된 값을 찾는 작업만 하면 된다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;1.&amp;nbsp;&lt;/span&gt; 호출&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.0em .0em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;IntentIntegrator&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;initiateScan&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 550px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/255AA9385943889204&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F255AA9385943889204&quot; width=&quot;550&quot; height=&quot;309&quot; filename=&quot;Screenshot_2017-06-16-16-25-39.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;위와 같이 새로운 Activity가 실행되는 형태로 화면전환이 이루어진다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;2.&amp;nbsp;&lt;/span&gt;&amp;nbsp;호출된 값&lt;/p&gt;&lt;p&gt;위 화면에서 QRCode가 Detect되면 QRCode Reader는 종료되고 원래의 Activity로 돌아와 &lt;b&gt;onActivityResult &lt;/b&gt;를 호출하게 된다.&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.0em .0em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;onActivityResult&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; requestCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; resultCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Intent data&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #888888&quot;&gt;//  com.google.zxing.integration.android.IntentIntegrator.REQUEST_CODE &lt;/span&gt;
        &lt;span style=&quot;color: #888888&quot;&gt;//  = 0x0000c0de; // Only use bottom 16 bits&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;requestCode &lt;span style=&quot;color: #333333&quot;&gt;==&lt;/span&gt; IntentIntegrator&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;REQUEST_CODE&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            IntentResult result &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; IntentIntegrator&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;parseActivityResult&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;requestCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; resultCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; data&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;result &lt;span style=&quot;color: #333333&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: #888888&quot;&gt;// 취소됨&lt;/span&gt;
                Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;makeText&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;Cancelled&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;LENGTH_LONG&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: #888888&quot;&gt;// 스캔된 QRCode --&amp;gt; result.getContents()&lt;/span&gt;
                Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;makeText&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;Scanned: &quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; result&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getContents&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(),&lt;/span&gt; Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;LENGTH_LONG&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;onActivityResult&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;requestCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; resultCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; data&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;result.getContents()의 값으로 이후에 QRCode 컨텐츠를 처리 하면 된다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;QRCode Write 생성하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;QRCode, Barcode 등 다양한 형태의 이미지 코드의 이미지를 생성 할 수 있다.&lt;/p&gt;&lt;p&gt;아래의 BarcodeFormat을 참조하여 생성하고자 하는 Format을 지정하여 사용하면 된다.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;1.&amp;nbsp;&lt;/span&gt;&amp;nbsp;BarcodeFormat&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.0em .0em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;enum&lt;/span&gt; BarcodeFormat &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** Aztec 2D barcode format. */&lt;/span&gt;
  AZTEC&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** CODABAR 1D format. */&lt;/span&gt;
  CODABAR&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** Code 39 1D format. */&lt;/span&gt;
  CODE_39&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** Code 93 1D format. */&lt;/span&gt;
  CODE_93&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** Code 128 1D format. */&lt;/span&gt;
  CODE_128&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** Data Matrix 2D barcode format. */&lt;/span&gt;
  DATA_MATRIX&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** EAN-8 1D format. */&lt;/span&gt;
  EAN_8&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** EAN-13 1D format. */&lt;/span&gt;
  EAN_13&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** ITF (Interleaved Two of Five) 1D format. */&lt;/span&gt;
  ITF&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** MaxiCode 2D barcode format. */&lt;/span&gt;
  MAXICODE&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** PDF417 format. */&lt;/span&gt;
  PDF_417&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** QR Code 2D barcode format. */&lt;/span&gt;
  QR_CODE&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** RSS 14 */&lt;/span&gt;
  RSS_14&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** RSS EXPANDED */&lt;/span&gt;
  RSS_EXPANDED&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** UPC-A 1D format. */&lt;/span&gt;
  UPC_A&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** UPC-E 1D format. */&lt;/span&gt;
  UPC_E&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;

  &lt;span style=&quot;color: #888888&quot;&gt;/** UPC/EAN extension format. Not a stand-alone format. */&lt;/span&gt;
  UPC_EAN_EXTENSION

&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;2.&amp;nbsp;&lt;/span&gt;&amp;nbsp;생성하기&lt;/p&gt;&lt;p&gt;아래의 코드에 변환할 String만 입력해주면 된다.&lt;/p&gt;&lt;p&gt;encode의 파라미터는 (String 변환할 내용, BarcodeFormat 변환할 바코드포멧, int 넓이, int 높이)&lt;/p&gt;&lt;p&gt;순으로 작성하면 된다.&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.0em .0em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;height: 170px;&quot;&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2
3
4
5
6
7
8&lt;/pre&gt;&lt;/td&gt;&lt;td style=&quot;height: 170px;&quot;&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;generateRQCode&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;String contents&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        QRCodeWriter qrCodeWriter &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; QRCodeWriter&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            Bitmap bitmap &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; toBitmap&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;qrCodeWriter&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;encode&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;contents&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; BarcodeFormat&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;QR_CODE&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;));&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;WriterException e&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            e&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;3.&amp;nbsp;&lt;/span&gt;&amp;nbsp;encode 리턴형태인 BitMatrix를 Bitmap으로 변환하기&lt;/p&gt;&lt;p&gt;2번 생성하기에서 사용된 toBitmap 이다.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.0em .0em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;static&lt;/span&gt; Bitmap &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;toBitmap&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;BitMatrix matrix&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; height &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; matrix&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getHeight&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; width &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; matrix&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getWidth&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        Bitmap bmp &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; Bitmap&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;createBitmap&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;width&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; height&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Bitmap&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;Config&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;RGB_565&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; x &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; x &lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt; width&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; x&lt;span style=&quot;color: #333333&quot;&gt;++)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; y &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; y &lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt; height&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; y&lt;span style=&quot;color: #333333&quot;&gt;++)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                bmp&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;setPixel&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;x&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; y&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; matrix&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;x&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; y&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;?&lt;/span&gt; Color&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;BLACK&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; Color&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;WHITE&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; bmp&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2668904459439A8014&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2668904459439A8014&quot; width=&quot;900&quot; height=&quot;774&quot; filename=&quot;1234.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;예제 Activity 전체내용&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;


&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.0em .0em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;package&lt;/span&gt; dwfox&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;zxingexample&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.content.Intent&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.graphics.Bitmap&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.graphics.Color&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.support.v7.app.AppCompatActivity&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.view.View&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.widget.EditText&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.widget.ImageView&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;android.widget.Toast&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.google.zxing.BarcodeFormat&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.google.zxing.WriterException&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.google.zxing.common.BitMatrix&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.google.zxing.integration.android.IntentIntegrator&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.google.zxing.integration.android.IntentResult&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.google.zxing.qrcode.QRCodeWriter&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;MainActivity&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;extends&lt;/span&gt; AppCompatActivity &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Override&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Bundle savedInstanceState&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;savedInstanceState&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
        setContentView&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;activity_main&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;

        findViewById&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;btn_start_qrcode_reader&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;setOnClickListener&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; View&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;OnClickListener&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Override&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;onClick&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;View v&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                startQRCode&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;});&lt;/span&gt;
        findViewById&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;btn_start_qrcode_generate&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;setOnClickListener&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; View&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;OnClickListener&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Override&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;onClick&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;View v&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                String content &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;((&lt;/span&gt;EditText&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; findViewById&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;edt_qrcode_content&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getText&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
                &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;content&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;())&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                    Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;makeText&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;MainActivity&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;문자를 입력해주세요&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;LENGTH_LONG&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
                &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                    generateRQCode&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;content&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;});&lt;/span&gt;

    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;startQRCode&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;IntentIntegrator&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;initiateScan&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;generateRQCode&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;String contents&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        QRCodeWriter qrCodeWriter &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; QRCodeWriter&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            Bitmap bitmap &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; toBitmap&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;qrCodeWriter&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;encode&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;contents&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; BarcodeFormat&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;QR_CODE&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;));&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;((&lt;/span&gt;ImageView&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; findViewById&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;iv_generated_qrcode&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;setImageBitmap&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;bitmap&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;WriterException e&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            e&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;static&lt;/span&gt; Bitmap &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;toBitmap&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;BitMatrix matrix&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; height &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; matrix&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getHeight&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; width &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; matrix&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getWidth&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
        Bitmap bmp &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; Bitmap&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;createBitmap&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;width&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; height&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Bitmap&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;Config&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;RGB_565&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; x &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; x &lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt; width&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; x&lt;span style=&quot;color: #333333&quot;&gt;++)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; y &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; y &lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt; height&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; y&lt;span style=&quot;color: #333333&quot;&gt;++)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                bmp&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;setPixel&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;x&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; y&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; matrix&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;x&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; y&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;?&lt;/span&gt; Color&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;BLACK&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; Color&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;WHITE&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; bmp&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;


    &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Override&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;onActivityResult&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; requestCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; resultCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Intent data&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;requestCode &lt;span style=&quot;color: #333333&quot;&gt;==&lt;/span&gt; IntentIntegrator&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;REQUEST_CODE&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            IntentResult result &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; IntentIntegrator&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;parseActivityResult&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;requestCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; resultCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; data&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;result &lt;span style=&quot;color: #333333&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;makeText&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;Cancelled&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;LENGTH_LONG&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
                Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;makeText&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&quot;Scanned: &quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; result&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getContents&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(),&lt;/span&gt; Toast&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;LENGTH_LONG&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
            &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;onActivityResult&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;requestCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; resultCode&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; data&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>QRcode</category>
      <category>리더기</category>
      <category>생성</category>
      <category>안드로이드</category>
      <category>안드로이드 스튜디오</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/79</guid>
      <comments>https://dwfox.tistory.com/79#entry79comment</comments>
      <pubDate>Fri, 13 Jul 2018 15:15:49 +0900</pubDate>
    </item>
    <item>
      <title>[Java] Random 숫자 및 자료형 생성 하기 Math.random과 비교</title>
      <link>https://dwfox.tistory.com/83</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b style=&quot;font-size: 32px;&quot;&gt;[Java] Random 랜덤 숫자 및 자료형 생성 하기&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;java.util.random 클래스를 이용한 랜덤 자료형 생성 vs&amp;nbsp;java.lang.Math와 비교&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Random 클래스&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;1.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;호출&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Random 객체 생성하기&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;Random &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;random = &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Random()&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 12pt;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;위와 같이 Random 객체를 생성한다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Math와 달리 한번 생성한 객체를 재활용하여 지속적으로 사용할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;2-1.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;정수 Random (int)생성&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;int 의 범위 -2,147,483,648 ~2,147,483,647 내에서 무작위 수 발생&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt;// int &lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-family: 나눔바른고딕; font-size: 11pt;&quot;&gt;의 범위&lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt;  -2,147,483,648 ~2,147,483,647 &lt;/span&gt;&lt;span style=&quot;color:#428300;font-family:'나눔바른고딕';&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;내에서 무작위 수 발생&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;int &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;randomInt01 = random.nextInt()&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 11pt;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.println(&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;&quot;randomInt01 &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 11pt;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;: &quot; &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;+ randomInt01)&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;2-2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;정수 Random (int)생성 - 범위지정&lt;/span&gt;&lt;/p&gt;&lt;p&gt;원하는 Bound(범위)내에서 랜덤 int 생성&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 10pt;&quot;&gt;// 0 ~ 99 &lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-family: 나눔바른고딕; font-size: 10pt;&quot;&gt;사이의&lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 10pt;&quot;&gt; Random int &lt;/span&gt;&lt;span style=&quot;color:#428300;font-family:'나눔바른고딕';&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;값 생성&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 10pt;&quot;&gt;int &lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;randomInt02 = random.nextInt(&lt;/span&gt;&lt;span style=&quot;color: rgb(104, 151, 187); font-size: 10pt;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 10pt;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 10pt;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;.println(&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 10pt;&quot;&gt;&quot;randomInt02 &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 10pt;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 10pt;&quot;&gt;: &quot; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;+ randomInt02)&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;※&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;0 ~ bound 의 범위 내에서 생성 (bound 값은 0 보다 큰 양의 값이 되어야 한다.)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;※&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Bound 값이 0을 포함한 음수의 값을 가지게 되면 아래와 같은 에러가 난다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;java.lang.IllegalArgumentException: bound must be positive&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;※ 음수의 범위 내에 값을 생성하기 위해서는 양수 범위로 생성한 후 처리를 해주면 된다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp;-&amp;gt; ex) -0 ~ -99 의 값을 원할 경우 위에서 간단하게 결과 값에 -1을 곱해서 처리하는 식으로 하면된다.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;3.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;각 자료형의 min~max 값에 대한 Random 값생성&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;long, float, double, boolean 값을 생성 할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt;// &lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-family: 나눔바른고딕; font-size: 11pt;&quot;&gt;데이터 형의 최소&lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt; ~ &lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-family: 나눔바른고딕; font-size: 11pt;&quot;&gt;최대 값으로&lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt; Random &lt;/span&gt;&lt;span style=&quot;color:#428300;font-family:'나눔바른고딕';&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;데이터 생성&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;long &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;randomLong = random.nextLong()&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;float &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;randomFloat = random.nextFloat()&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;double &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;randomDouble = random.nextDouble()&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 11pt;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.println(&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;&quot;randomLong &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 11pt;&quot;&gt;\t\t&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;: &quot; &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;+ randomLong)&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 11pt;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.println(&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;&quot;randomFloat &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 11pt;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;: &quot; &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;+ randomFloat)&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 11pt;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.println(&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;&quot;randomDouble &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 11pt;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;: &quot; &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;+ randomDouble)&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;4.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;byte Array에 임의(랜덤)의 byte값을 채우기&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt;// &lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-family: 나눔바른고딕; font-size: 11pt;&quot;&gt;임의의 바이트&lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt; Array&lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-family: 나눔바른고딕; font-size: 11pt;&quot;&gt;에 랜덤으로&lt;/span&gt;&lt;span style=&quot;color: rgb(66, 131, 0); font-size: 11pt;&quot;&gt; byte &lt;/span&gt;&lt;span style=&quot;color:#428300;font-family:'나눔바른고딕';&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;채우기&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;[] randomBytes = &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;new byte&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(104, 151, 187); font-size: 11pt;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;random.nextBytes(randomBytes)&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;for &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;byte &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;b : randomBytes) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 11pt;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.print(b + &lt;/span&gt;&lt;span style=&quot;color: rgb(207, 204, 0); font-weight: bold; font-size: 11pt;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;5.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;결과 출력&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: double; border-width: 3px; border-color: rgb(193, 193, 193); background-color: rgb(0, 0, 0); padding: 10px;&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;randomInt01 &lt;/span&gt;&lt;span style=&quot;white-space: pre; color: rgb(189, 189, 189);&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;: -1068375961&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;randomInt02 &lt;/span&gt;&lt;span style=&quot;white-space: pre; color: rgb(189, 189, 189);&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;: 69&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;randomLong &lt;/span&gt;&lt;span style=&quot;white-space: pre; color: rgb(189, 189, 189);&quot;&gt;		&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;: 1103435009130542788&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;randomFloat &lt;/span&gt;&lt;span style=&quot;white-space: pre; color: rgb(189, 189, 189);&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;: 0.26886266&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;randomDouble &lt;/span&gt;&lt;span style=&quot;white-space: pre; color: rgb(189, 189, 189);&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;: 0.11659966505403929&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;randomBoolean &lt;/span&gt;&lt;span style=&quot;white-space: pre; color: rgb(189, 189, 189);&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;: false&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; color: rgb(189, 189, 189);&quot;&gt;randomBytes&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(189, 189, 189);&quot;&gt;63 18 29 24 -128 -120 -78 -89 125 -110 13 -30 124 -63 108 -24&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Math 클래스와 비교&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-weight: normal; background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;1.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; font-size: 11pt;&quot;&gt;&amp;nbsp;Math 클래스를 이용한 랜덤 값 생성 방법&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;int &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;mathRandomInt = (&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;Math&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-size: 11pt;&quot;&gt;random&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;() * &lt;/span&gt;&lt;span style=&quot;color: rgb(104, 151, 187); font-size: 11pt;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;위와 같이 생성하면 0~99의 int 값을 생성 할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-weight: normal; background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-weight: normal; background-color: rgb(255, 94, 0); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp;2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; font-size: 11pt;&quot;&gt;&amp;nbsp;Math vs Random&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Math 내부의 &amp;nbsp;random역시 Random 클래스를 이용하여 생성해준다.&lt;/p&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;public static double &lt;/span&gt;&lt;span style=&quot;color: rgb(255, 198, 109); font-size: 11pt;&quot;&gt;random&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;() {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;RandomNumberGeneratorHolder&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 11pt;&quot;&gt;randomNumberGenerator&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.nextDouble()&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color:#2b2b2b;color:#a9b7c6;font-family:'Hack';font-size:8.4pt;&quot;&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;private static final class &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;RandomNumberGeneratorHolder &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;static final &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-size: 11pt;&quot;&gt;Random &lt;/span&gt;&lt;span style=&quot;color: rgb(189, 143, 212); font-weight: bold; font-style: italic; font-size: 11pt;&quot;&gt;randomNumberGenerator &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 120, 50); font-weight: bold; font-size: 11pt;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Random()&lt;/span&gt;&lt;span style=&quot;color:#cc7832;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Math의 Random 함수 부분인데&lt;/p&gt;&lt;p&gt;Math클래스에서 Random 객체를 생성하기 때문에 여러번 반복 하거나 많은 횟수의 Random 작업이 이루어 질 경우 Math보다는 Random 객체를 생성하여 사용하는 것이 효율적이다.&lt;/p&gt;&lt;p&gt;또한, Random 클래스를 이용하여 다양한 범위의 랜덤범위와 추가 작업을 하는데 있어서도 유리하다.&lt;/p&gt;</description>
      <category>Dev/Java</category>
      <category>java</category>
      <category>random</category>
      <category>랜덤</category>
      <category>비교</category>
      <category>생성</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/83</guid>
      <comments>https://dwfox.tistory.com/83#entry83comment</comments>
      <pubDate>Mon, 17 Jul 2017 16:22:36 +0900</pubDate>
    </item>
    <item>
      <title>[Python] Python Windows 개발 환경 구성 - anaconda python 설치</title>
      <link>https://dwfox.tistory.com/67</link>
      <description>&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 160px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/272C793C589AC42614&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F272C793C589AC42614&quot; width=&quot;160&quot; height=&quot;160&quot; filename=&quot;다운로드.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;[Python] Python Windows 개발 환경 구성 - anaconda python 설치&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;how to install python on windows&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;
&lt;/span&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;span style=&quot;font-size: 24pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;Python 3.x 버전과 2.x 버전&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(219, 232, 251); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;Short version: Python 2.x is legacy, Python 3.x is the present and future of the language&lt;/p&gt;&lt;/div&gt;&lt;p&gt;2.x 버전대도 계속 업데이트 되고 있고 3.x 버전역시 현재와 미래의 언어이므로 버전이 계속 업데이트 되고 있다&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;Anaconda&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(219, 232, 251); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;Anaconda는 Python 기반의 개방형 데이터 과학 플랫폼입니다. Anaconda의 오픈 소스 버전은 Python 및 R의 고성능 배포이며 데이터 과학을 위해 가장 많이 사용되는 Python, R 및 Scala 패키지 중 100 개 이상을 포함합니다.&lt;/p&gt;
&lt;p&gt;또한 아나콘다에 포함 된 유명한 패키지 인 의존성 및 환경 관리자 인 conda를 사용하여 쉽게 설치할 수있는 720 개가 넘는 패키지에 액세스 할 수 있습니다.&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Anaconda는 머신러닝이나 데이터 과학을 위한 패키지가 이미 포함되어 있으므로 tensorflow나 R 등을 사용할 때 더 편리할 것이다.&lt;/p&gt;
&lt;p&gt;또한 Anaconda를 설치하기 전이나 후에 별도로 Python을 설치할 필요가 없다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;Anaconda 다운&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Anaconda3 4.2.0 (64-bit) 버전을 설치하도록 한다. ( Python 3.5.2 )&lt;/p&gt;
&lt;p&gt;향후 Tensorflow 설치를 위한 버전이다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;* Anaconda Download &lt;a href=&quot;https://www.continuum.io/downloads&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;[link]&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;a href=&quot;https://www.continuum.io/downloads&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 600px; width: 600px; height: 349px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/25144845589AC1ED33&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F25144845589AC1ED33&quot; width=&quot;600&quot; height=&quot;349&quot; filename=&quot;aaa1.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 600px; height: 349px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start;&quot;&gt;* Anaconda installer Archive &lt;a href=&quot;https://repo.continuum.io/archive/index.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;[link&lt;/a&gt;&lt;a href=&quot;https://repo.continuum.io/archive/index.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;]&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 600px; width: 600px; height: 441px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/257AEB4758A505E61B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F257AEB4758A505E61B&quot; width=&quot;600&quot; height=&quot;441&quot; filename=&quot;tt1.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 600px; height: 441px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;직링크 : &lt;a href=&quot;https://repo.continuum.io/archive/Anaconda3-4.2.0-Windows-x86_64.exe&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://repo.continuum.io/archive/Anaconda3-4.2.0-Windows-x86_64.exe&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;text-align: start; font-size: 20px;&quot;&gt;&lt;b&gt;Anaconda 설치&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 600px; width: 600px; height: 475px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/264A3A45589AC1EF09&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F264A3A45589AC1EF09&quot; width=&quot;600&quot; height=&quot;475&quot; filename=&quot;aaa3.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 600px; height: 475px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 600px; width: 600px; height: 271px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2559F445589AC1F036&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2559F445589AC1F036&quot; width=&quot;600&quot; height=&quot;271&quot; filename=&quot;aaa4.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 600px; height: 271px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;*&amp;nbsp;설치 확인&lt;/p&gt;&lt;pre style=&quot;padding: 12px; box-sizing: border-box; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;font color=&quot;#222222&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;C:\&amp;gt;python --version
Python 3.5.2 :: Anaconda 4.2.0 (64-bit)

C:\&amp;gt;pip --version
pip 9.0.1 from c:\program files\anaconda3\lib\site-packages (python 3.5)&lt;/b&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe src=&quot;https://coupa.ng/blALYd&quot; width=&quot;120&quot; height=&quot;240&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;
&lt;iframe src=&quot;https://coupa.ng/blALHT&quot; width=&quot;120&quot; height=&quot;240&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;
&lt;iframe src=&quot;https://coupa.ng/blAKby&quot; width=&quot;120&quot; height=&quot;240&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;python이나 pip 를 찾을 수 없을 때&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;- 기본 설치 폴더 설치 폴더 확인&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;padding: 12px; box-sizing: border-box; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;font color=&quot;#222222&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;C:\Program Files\Anaconda3
&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;- 환경변수 확인&lt;/b&gt;&lt;/div&gt;&lt;div&gt;설치가 정상적으로 되어있다면 환경 변수 편집으로 들어가&amp;nbsp;&lt;b&gt;Path의 환경변수&lt;/b&gt;가 아래의 그림과 같이 설정되어 있지 않으면 아래와 같이&amp;nbsp;&lt;/div&gt;&lt;div&gt;\Anaconda3,&amp;nbsp;&lt;/div&gt;&lt;div&gt;\Anaconda3\Scripts,&amp;nbsp;&lt;/div&gt;&lt;div&gt;\Anaconda3\Library\bin&amp;nbsp;&lt;/div&gt;&lt;div&gt;세개의 환경변수를 추가하도록 한다.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;/b&gt;&lt;b&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 600px; width: 600px; height: 570px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2641C846589AC69812&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2641C846589AC69812&quot; width=&quot;600&quot; height=&quot;570&quot; filename=&quot;aaa5.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 600px; height: 570px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Windows Tensorflow 설치 관련&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;※ 작성일 기준 최신버전이 4.3.0이다. python 버전은 3.6.0 버전이다.&lt;/p&gt;
&lt;p&gt;해당 버전에서 Tensorflow를 설치할 때 아래와 같은 에러가 발생한다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(219, 232, 251); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;Could not find a version that satisfies the requirement tensorflow (from versions: )&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Windows 텐서플로 Tensorflow 설치 하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 20px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://dwfox.tistory.com/85&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;http://dwfox.tistory.com/85&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Python</category>
      <category>Anaconda</category>
      <category>install</category>
      <category>Python</category>
      <category>Windwos</category>
      <category>설치</category>
      <category>파이썬</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/67</guid>
      <comments>https://dwfox.tistory.com/67#entry67comment</comments>
      <pubDate>Wed, 8 Feb 2017 16:22:22 +0900</pubDate>
    </item>
    <item>
      <title>[mongoDB] mongoDB Java 연동하기 - Connecting mongoDB with java</title>
      <link>https://dwfox.tistory.com/64</link>
      <description>&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 320px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/276B7F33587C508B23&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F276B7F33587C508B23&quot; width=&quot;320&quot; height=&quot;86&quot; filename=&quot;MongoDB-Logo-5c3a7405a85675366beb3a5ec4c032348c390b3f142f5e6dddf1d78e2df5cb5c.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;[mongoDB] mongoDB Java 연동하기&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Connecting mongoDB with java&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;MongoDB Java Driver&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;아래 링크에 MongoDB java 와 관련된 Driver가 안내되어 있다.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/ecosystem/drivers/java/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://docs.mongodb.com/ecosystem/drivers/java/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://mongodb.github.io/mongo-java-driver/?_ga=1.249093703.1133192423.1484198076&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;mongoDB Java Driver 다운로드 페이지&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;mongoDB java Driver의 최신버전과 Api, Document를 다운 받을 수 있다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 770px; width: 770px; height: 335px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2601EB3E587C4F7C1C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2601EB3E587C4F7C1C&quot; width=&quot;770&quot; height=&quot;335&quot; filename=&quot;MongoDB Java Driver.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 770px; height: 335px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;상단좌측의 &lt;a href=&quot;https://oss.sonatype.org/content/repositories/releases/org/mongodb/mongo-java-driver/3.4.1/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;Download&lt;/a&gt;를 클릭하면 해당버전의 라이브러리파일, 소스코드 등을 다운받을 수 있다.&lt;/p&gt;
&lt;p&gt;오른쪽의 Maven과 gradle 설정을 자동으로 생성해주기 때문에 알맞은 환경을 선택해서 라이브러리를 설정하면된다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
Maven
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #f8f8f8; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.1em .1em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2
3
4
5
6
7&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;dependencies&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.mongodb&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;mongo-java-driver&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;3.4.1&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;&amp;lt;/dependencies&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;

Gradle
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #f8f8f8; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.1em .1em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2
3&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;  dependencies {
    compile &lt;span style=&quot;color: #BA2121&quot;&gt;'org.mongodb:mongo-java-driver:3.4.1'&lt;/span&gt;
  }
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;


&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;mongoDB 연동 Java 코드&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;# Namuwiki 덤프 데이터베이스이용 (참고) -&amp;nbsp;&lt;a href=&quot;http://dwfox.tistory.com/63&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://dwfox.tistory.com/63&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;# mongod가 대기상태인 상태에서 연동하도록 한다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;아래 코드로 Collection까지 가져온다.&lt;/p&gt;

&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #f8f8f8; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.1em .1em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2
3
4
5
6
7
8&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;MongoClient mongoClient &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; MongoClient&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; PORT&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;
logger&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;info&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;MongoClient connected&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;

MongoDatabase db &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; mongoClient&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;getDatabase&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;DATABASE_NAME&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;
logger&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;info&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;Get 'namu' MongoDatabase&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;

MongoCollection&lt;span style=&quot;color: #666666&quot;&gt;&amp;lt;&lt;/span&gt;Document&lt;span style=&quot;color: #666666&quot;&gt;&amp;gt;&lt;/span&gt; documentMongoCollection &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; db&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;getCollection&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;COLLECTION_NAME&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;
logger&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;info&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;Get 'namudb' Document&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;간단한 쿼리를 만들어보자&lt;/p&gt;
&lt;p&gt;- 단순 쿼리&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #f8f8f8; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.1em .1em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;//title에 keyword 검색&lt;/span&gt;
query&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; keyword&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- like 쿼리&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #f8f8f8; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.1em .1em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;1
2&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;// like 검색 (like '%keyword%'와 같음)&lt;/span&gt;
query&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; Pattern&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;compile&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;keyword&lt;span style=&quot;color: #666666&quot;&gt;));&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- or like 쿼리&lt;/p&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #f8f8f8; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.1em .1em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;List&lt;span style=&quot;color: #666666&quot;&gt;&amp;lt;&lt;/span&gt;BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;&amp;gt;&lt;/span&gt; coll &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; ArrayList&lt;span style=&quot;color: #666666&quot;&gt;&amp;lt;&lt;/span&gt;BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;&amp;gt;();&lt;/span&gt;

&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;// 키워드 1 (like '%keyworkd1%')&lt;/span&gt;
coll&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; Pattern&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;compile&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;keyword1&lt;span style=&quot;color: #666666&quot;&gt;)));&lt;/span&gt;

&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;// 키워드 2 (like '%keyworkd2%')&lt;/span&gt;
coll&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; Pattern&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;compile&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;keyword2&lt;span style=&quot;color: #666666&quot;&gt;)));&lt;/span&gt;

&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;// 키워드1 or 키워드2&lt;/span&gt;
BasicDBObject query &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;$or&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; coll&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;※ or like 쿼리 전체 코드&lt;/p&gt;

&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #f8f8f8; overflow:auto;width:auto;border:solid #5CBBC0;border-width:.0em .0em .0em .2em;padding:.1em .1em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;MongoClient mongoClient &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; MongoClient&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; PORT&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;

MongoDatabase db &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; mongoClient&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;getDatabase&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;DATABASE_NAME&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;

MongoCollection&lt;span style=&quot;color: #666666&quot;&gt;&amp;lt;&lt;/span&gt;Document&lt;span style=&quot;color: #666666&quot;&gt;&amp;gt;&lt;/span&gt; documentMongoCollection &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; db&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;getCollection&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;COLLECTION_NAME&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;

BasicDBObject query &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;();&lt;/span&gt;
query&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; keyword&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt; &lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;//titledp keyword&lt;/span&gt;
query&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; Pattern&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;compile&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;keyword&lt;span style=&quot;color: #666666&quot;&gt;));&lt;/span&gt;

List&lt;span style=&quot;color: #666666&quot;&gt;&amp;lt;&lt;/span&gt;BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;&amp;gt;&lt;/span&gt; coll &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; ArrayList&lt;span style=&quot;color: #666666&quot;&gt;&amp;lt;&lt;/span&gt;BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;&amp;gt;();&lt;/span&gt;

&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;// 키워드 1 (like '%keyworkd1%')&lt;/span&gt;
coll&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; Pattern&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;compile&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;keyword1&lt;span style=&quot;color: #666666&quot;&gt;)));&lt;/span&gt;

&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;// 키워드 2 (like '%keyworkd2%')&lt;/span&gt;
coll&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; Pattern&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;compile&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;keyword2&lt;span style=&quot;color: #666666&quot;&gt;)));&lt;/span&gt;

&lt;span style=&quot;color: #408080; font-style: italic&quot;&gt;// 키워드1 or 키워드2&lt;/span&gt;
BasicDBObject query &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;new&lt;/span&gt; BasicDBObject&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;$or&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;,&lt;/span&gt; coll&lt;span style=&quot;color: #666666&quot;&gt;);&lt;/span&gt;

MongoCursor&lt;span style=&quot;color: #666666&quot;&gt;&amp;lt;&lt;/span&gt;Document&lt;span style=&quot;color: #666666&quot;&gt;&amp;gt;&lt;/span&gt; cursor &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; documentMongoCollection&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;find&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;query&lt;span style=&quot;color: #666666&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;iterator&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;();&lt;/span&gt;

&lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #666666&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;cursor&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;hasNext&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;())&lt;/span&gt; &lt;span style=&quot;color: #666666&quot;&gt;{&lt;/span&gt;
        Document document &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; cursor&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;next&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;();&lt;/span&gt;
        String text &lt;span style=&quot;color: #666666&quot;&gt;=&lt;/span&gt; document&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #BA2121&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;();&lt;/span&gt;
    &lt;span style=&quot;color: #666666&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #666666&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008000; font-weight: bold&quot;&gt;finally&lt;/span&gt; &lt;span style=&quot;color: #666666&quot;&gt;{&lt;/span&gt;
    cursor&lt;span style=&quot;color: #666666&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7D9029&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #666666&quot;&gt;();&lt;/span&gt;
&lt;span style=&quot;color: #666666&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;위와 같이 다양한 방법의 쿼리를 통해 iterator를 사용하여 데이터를 가져오도록 한다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/DB</category>
      <category>connection</category>
      <category>driver</category>
      <category>java</category>
      <category>MongoDB</category>
      <category>query</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/64</guid>
      <comments>https://dwfox.tistory.com/64#entry64comment</comments>
      <pubDate>Mon, 16 Jan 2017 14:14:32 +0900</pubDate>
    </item>
    <item>
      <title>[mongoDB] mongoDB Json 데이터베이스 가져오기 - import Json database</title>
      <link>https://dwfox.tistory.com/63</link>
      <description>&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 320px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2277FC46587C444A0A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2277FC46587C444A0A&quot; width=&quot;320&quot; height=&quot;86&quot; filename=&quot;MongoDB-Logo-5c3a7405a85675366beb3a5ec4c032348c390b3f142f5e6dddf1d78e2df5cb5c.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;[mongoDB]&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: 24px;&quot;&gt;mongoDB Json 데이터베이스 가져오기(나무위키 덤프 데이터)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;import namuwiki dump database&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;나무위키 덤프데이터 다운&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 20px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;a href=&quot;https://namu.wiki/w/%EB%82%98%EB%AC%B4%EC%9C%84%ED%82%A4:%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%B2%A0%EC%9D%B4%EC%8A%A4%20%EB%8D%A4%ED%94%84&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://namu.wiki/w/%EB%82%98%EB%AC%B4%EC%9C%84%ED%82%A4:%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%B2%A0%EC%9D%B4%EC%8A%A4%20%EB%8D%A4%ED%94%84&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 20px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위 링크에서 나무위키 json 데이터 덤프 파일을 다운 받는다.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 20px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;위 페이지에서도 명시해 놓았지만 나무위키를 크롤링해서 서버부담을 주는 것을 방지하고 빅데이터 분석이나 개인소장에 용이하게 파일을 제공하고 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;압축을 풀고나면 약 6.7G의 json 파일이 나온다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;mongoDB에 import 하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;압축을 풀고나면 약 6.7G의 json 파일이 나온다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;mongoDB 데몬을 실행한다.&lt;/p&gt;&lt;pre style=&quot;padding: 12px; box-sizing: border-box; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;font color=&quot;#222222&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;mongoimport --db &quot;DB 이름&quot; --collection &quot;collection 이름&quot; --type json --drop --file &quot;해당 파일까지의 경로&quot; --jsonArray&lt;/b&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;mongoDB의 bin 폴더에 mongoimport.exe 파일이 있다.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;해당 파일로 DB이름을 설정하고 &amp;nbsp;collection 이름을 설정하고 위 에서 설명된 옵션을 추가하면 import가 된다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;※ 실제 적용 예)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0px; margin-bottom: 0px; color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre style=&quot;padding: 12px; background-color: rgb(238, 238, 238); orphans: 2; text-align: start; text-indent: 0px; widows: 2; box-sizing: border-box; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;p&gt;&lt;font color=&quot;#222222&quot; style=&quot;color: rgb(0, 0, 0); font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;mongoimport --db namudb --collection namudbcollection --type json --drop --file &quot;c:\user\download\&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#222222&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;namuwiki_161031.json&quot;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;b style=&quot;color: rgb(34, 34, 34); font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt; --jsonArray&lt;/b&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/DB</category>
      <category>import</category>
      <category>json</category>
      <category>MongoDB</category>
      <category>namuwiki</category>
      <category>나무위키</category>
      <category>빅데이터</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/63</guid>
      <comments>https://dwfox.tistory.com/63#entry63comment</comments>
      <pubDate>Thu, 12 Jan 2017 17:34:17 +0900</pubDate>
    </item>
    <item>
      <title>[mongoDB] mongoDB 설치하기 / 환경설정 - windows</title>
      <link>https://dwfox.tistory.com/62</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;a href=&quot;https://www.mongodb.com/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 320px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2547E73F587720E920&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2547E73F587720E920&quot; width=&quot;320&quot; height=&quot;86&quot; filename=&quot;MongoDB-Logo-5c3a7405a85675366beb3a5ec4c032348c390b3f142f5e6dddf1d78e2df5cb5c.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;[mongoDB] mongoDB 설치하기 / 환경설정 - windows&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;tutorial - mongoDB install on windows&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;MongoDB 다운&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 20px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;다운로드 - &lt;a href=&quot;https://www.mongodb.com/download-center#community&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://www.mongodb.com/download-center#community&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 20px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위 링크를 통해 다운로드 사이트로 이동하여 다운받도록 한다.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2328AD3D587724DF2B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2328AD3D587724DF2B&quot; width=&quot;900&quot; height=&quot;440&quot; filename=&quot;1.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;MongoDB 설치하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;다운받은 설치파일을 실행시켜 설치하도록 한다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 495px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/23492D415877255E1F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F23492D415877255E1F&quot; width=&quot;495&quot; height=&quot;387&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 495px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2138C9415877255E4D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2138C9415877255E4D&quot; width=&quot;495&quot; height=&quot;387&quot; filename=&quot;3.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 495px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/211BB2415877255D04&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F211BB2415877255D04&quot; width=&quot;495&quot; height=&quot;387&quot; filename=&quot;4.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;설치가 완료되면 Program Files\MongoDB\Server\3.4 여기에 위치하게 된다.&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;bin 폴더에 바이너리 파일에 대한&amp;nbsp;Component Set은 아래와 같다.&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Server&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;-&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;mongod.exe&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;mongos.exe&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;Client&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;mongo.exe&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 11pt;&quot;&gt;MonitoringTools -&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;mongostat.exe, mongotop.exe&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 11pt;&quot;&gt;ImportExportTools -&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;mongodump.exe, mongorestore.exe, mongoexport.exe, mongoimport.exe&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 11pt;&quot;&gt;MiscellaneousTools -&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;bsondump.exe, mongofiles.exe, mongooplog.exe, mongoperf.exe&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;MongoDB 설정&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(37, 37, 37); font-family: Roboto, arial, sans-serif; font-size: 11pt;&quot;&gt;MongoDB는 모든 데이터를 저장하기위한 데이터 디렉토리가 필요하다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(37, 37, 37); font-family: Roboto, arial, sans-serif; font-size: 11pt;&quot;&gt;데이터 저장을 위한 설정을 아래와 같이 한다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;mongod.exe을 통해 db path를 설정한다.&lt;/p&gt;
&lt;pre style=&quot;box-sizing: border-box;  font-size: 15px; line-height: 11px; word-break: break-all; word-wrap: normal; rgb(245, 245, 245); border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; padding: 12px 12px; color: rgb(34, 34, 34); margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;b&gt;&quot;C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe&quot; --dbpath d:\test\mongodb\data&lt;/b&gt;
&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;db path를 설정할때 공백이 있을경우 &quot;&quot; 로 감싸준다.&amp;nbsp;&lt;/p&gt;&lt;pre style=&quot;padding: 12px; box-sizing: border-box; font-size: 15px; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; color: rgb(34, 34, 34); margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;b&gt;&quot;C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe&quot; --dbpath &quot;d:\test\mongodb\d a t a&quot;&lt;/b&gt;
&lt;/pre&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;mongoDB 데몬을 실행한다.&lt;/p&gt;&lt;pre style=&quot;padding: 12px; box-sizing: border-box; font-size: 15px; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; color: rgb(34, 34, 34); margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;b&gt;&quot;C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe&quot;&lt;/b&gt;
&lt;/pre&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;로그에 다음과 &lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;waiting for connections on port 27017&lt;/span&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt; &lt;/span&gt;같은 구문이 떠서 대기상태이라면 &amp;nbsp;새 커맨드 프롬프트를 켜서 &amp;nbsp;클라이언트를 실행하도록&amp;nbsp;&lt;/p&gt;&lt;pre style=&quot;padding: 12px; box-sizing: border-box; font-size: 15px; line-height: 11px; word-break: break-all; word-wrap: normal; border-top: none; border-right: none; border-bottom: none; border-left: 5px solid rgb(73, 71, 71); border-image: initial; border-radius: 0px; overflow: auto; color: rgb(34, 34, 34); margin-top: 4px; margin-bottom: 4px;&quot;&gt;&lt;b&gt;&quot;C:\Program Files\MongoDB\Server\3.4\bin\mongo.exe&quot;&lt;/b&gt;
&lt;/pre&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;mongo 실행&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;/b&gt;&lt;b&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2111A43D5877323A18&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2111A43D5877323A18&quot; width=&quot;900&quot; height=&quot;296&quot; filename=&quot;5.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/DB</category>
      <category>json</category>
      <category>mongo</category>
      <category>데이터베이스</category>
      <category>몽고</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/62</guid>
      <comments>https://dwfox.tistory.com/62#entry62comment</comments>
      <pubDate>Thu, 12 Jan 2017 16:46:11 +0900</pubDate>
    </item>
    <item>
      <title>[Ruby] 윈도우에서 Ruby 사용하기 -설치</title>
      <link>https://dwfox.tistory.com/61</link>
      <description>&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 411px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/274675475863C69433&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F274675475863C69433&quot; width=&quot;411&quot; height=&quot;91&quot; filename=&quot;00.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Ruby와 RubyDevkit 설치하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;1&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;Ruby와 RubyDevkt 다운&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;윈도우용 Ruby 다운&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://rubyinstaller.org/downloads/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;font-size: 14.6667px;&quot;&gt;http://rubyinstaller.org/downloads/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Ruby와 RubyDevkit 모두 위 링크에 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;2&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&amp;nbsp;Ruby 설치&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 579px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/215CEB475863C6951D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F215CEB475863C6951D&quot; width=&quot;579&quot; height=&quot;391&quot; filename=&quot;11.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 598px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/276723375863C7D629&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F276723375863C7D629&quot; width=&quot;598&quot; height=&quot;488&quot; filename=&quot;44.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;Add Ruby executables to your PATH 항목에 체크하여 별도로 환경변수지정하지 않아도&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;자동으로 지정될 것이다.&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 598px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/236669375863C7D729&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F236669375863C7D729&quot; width=&quot;598&quot; height=&quot;488&quot; filename=&quot;55.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;아래와 같이 ruby --version을 통해 설치된 버전을 확인하면 설치 끝&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 733px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/246C0D375863C7D726&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F246C0D375863C7D726&quot; width=&quot;733&quot; height=&quot;190&quot; filename=&quot;66.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;2&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;RubyDevkt 설치&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 662px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2566F8475863C69513&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2566F8475863C69513&quot; width=&quot;662&quot; height=&quot;402&quot; filename=&quot;22.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;다운받은 파일은 압축 해제 하고 해당 폴더로 커맨드를 통해 이동한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 474px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/22202E4B5863C9C50F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F22202E4B5863C9C50F&quot; width=&quot;474&quot; height=&quot;201&quot; filename=&quot;77.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238); padding: 10px;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;ruby dk.rb init&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;devkit 설치를 위한 초기화&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 843px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2523294B5863C9C60C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2523294B5863C9C60C&quot; width=&quot;843&quot; height=&quot;289&quot; filename=&quot;88.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238); padding: 10px;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;ruby dk.rb install&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위 명령어를 통해 &amp;nbsp;devkit을 설치한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;설치가 완료되면 gem을&amp;nbsp;통하여 루비관련 프로젝트나 패키지를 설정할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 843px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2568E14B5863C9C642&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2568E14B5863C9C642&quot; width=&quot;843&quot; height=&quot;289&quot; filename=&quot;99.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Ruby</category>
      <category>gem</category>
      <category>Ruby</category>
      <category>루비</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/61</guid>
      <comments>https://dwfox.tistory.com/61#entry61comment</comments>
      <pubDate>Wed, 28 Dec 2016 23:23:23 +0900</pubDate>
    </item>
    <item>
      <title>[Java] Java를 이용해 AWS S3 파일 업로드 하기- AWS S3 Upload for java</title>
      <link>https://dwfox.tistory.com/57</link>
      <description>&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 24pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 266px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/210CAE41585235923A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F210CAE41585235923A&quot; width=&quot;266&quot; height=&quot;100&quot; filename=&quot;Navercast_AWS_01_logo.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;AWS SDK Java jar 파일 다운 받기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;AWS-SDK for Java - &lt;a href=&quot;https://aws.amazon.com/ko/sdk-for-java/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://aws.amazon.com/ko/sdk-for-java/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;이클립스용 툴킷도 있지만&amp;nbsp;&lt;b&gt;&lt;a href=&quot;https://sdk-for-java.amazonwebservices.com/latest/aws-java-sdk.zip&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;Java용 AWS SDK&lt;/a&gt;&lt;/b&gt; 을 다운받아 jar파일만 사용하도록 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;maven을 이용한다면&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;dependency&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;groupId&lt;/span&gt;&amp;gt;com.amazonaws&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;groupId&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;artifactId&lt;/span&gt;&amp;gt;aws-java-sdk&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;artifactId&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;version&lt;/span&gt;&amp;gt;1.11.66&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;version&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;dependency&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;android를 사용한다면 gradle에 추가해주면 된다.&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;dependencies&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;'com.amazonaws:aws-android-sdk-core:2.2.+'&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;'com.amazonaws:aws-android-sdk-s3:2.2.+'&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;'com.amazonaws:aws-android-sdk-ddb:2.2.+'&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;AWS s3 파일 업로드 하기&lt;span style=&quot;font-size: 11pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;AWS S3 Upload for java )&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;S3에 권한을 얻기 위해서&amp;nbsp;ACCESS_KEY, SECRET_KEY 를 생성해야 한다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 222, 199); background-color: rgb(254, 222, 199); padding: 10px;&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;a href=&quot;http://dwfox.tistory.com/55&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;#&lt;/a&gt;&lt;a href=&quot;http://dwfox.tistory.com/55&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt; ACCESS_KEY, SECRET_KEY 생성방법 참고 - &lt;/a&gt;&lt;a href=&quot;http://dwfox.tistory.com/55&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://&lt;/a&gt;&lt;a href=&quot;http://dwfox.tistory.com/55&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;dwfox.tistory.com/55&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;사용방법은 간단하다.&lt;/p&gt;
&lt;p&gt;파일을 생성하고 아마존S3에 accesskey와 &amp;nbsp;secretkey를 이용하여 권한을 얻고 파일을 업로드 하면된다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;16&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;17&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;18&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;19&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;20&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;21&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;22&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;23&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;24&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;25&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;26&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;27&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;28&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;class&lt;/span&gt;&amp;nbsp;AWSService&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;String&lt;/span&gt;&amp;nbsp;BUCKET_NAME&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;&quot;bucket_name&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;String&lt;/span&gt;&amp;nbsp;ACCESS_KEY&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;&quot;ACCESS_KEY&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;String&lt;/span&gt;&amp;nbsp;SECRET_KEY&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;&quot;SECRET_KEY&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;AmazonS3&amp;nbsp;amazonS3;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;AWSService()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AWSCredentials&amp;nbsp;awsCredentials&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;BasicAWSCredentials(ACCESS_KEY,&amp;nbsp;SECRET_KEY);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;amazonS3&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;AmazonS3Client(awsCredentials);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;uploadFile(File&amp;nbsp;file)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(amazonS3&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;null&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;try&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PutObjectRequest&amp;nbsp;putObjectRequest&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;PutObjectRequest(BUCKET_NAME&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;+&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;&quot;/sub_dir_name&quot;&lt;/span&gt;&lt;span style=&quot;color:#999999&quot;&gt;/*sub&amp;nbsp;directory*/&lt;/span&gt;,&amp;nbsp;file.getName(),&amp;nbsp;file);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;putObjectRequest.setCannedAcl(CannedAccessControlList.PublicRead);&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//&amp;nbsp;file&amp;nbsp;permission&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;amazonS3.putObject(putObjectRequest);&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//&amp;nbsp;upload&amp;nbsp;file&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;catch&lt;/span&gt;&amp;nbsp;(AmazonServiceException&amp;nbsp;ase)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ase.printStackTrace();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;finally&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;amazonS3&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;null&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Java</category>
      <category>Amazon</category>
      <category>Android</category>
      <category>AWS</category>
      <category>file</category>
      <category>java</category>
      <category>S3</category>
      <category>upload</category>
      <category>안드로이드</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/57</guid>
      <comments>https://dwfox.tistory.com/57#entry57comment</comments>
      <pubDate>Thu, 15 Dec 2016 14:40:41 +0900</pubDate>
    </item>
    <item>
      <title>[리뷰/공구] MINISO 미니소 LED 랜턴 7종 드라이버</title>
      <link>https://dwfox.tistory.com/56</link>
      <description>&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 319px; width: 319px; height: 280px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/25461D445851488615&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F25461D445851488615&quot; width=&quot;319&quot; height=&quot;280&quot; filename=&quot;dtitle.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 319px; height: 280px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- tistory_336_280_no2 --&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:inline-block;width:336px;height:280px&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;8094573532&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;font color=&quot;#003399&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;[리뷰/공구] MINISO 미니소 LED 랜턴 7종 드라이버&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;신촌에도 미니소가 생겼다.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;마치 다이소를 축소시켜 젊은 사람들이 살만한것?들 위주로 파는것 같았다.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;그런데 드라이버도 필요하던 찰나 미니소에 드라이버에 후레쉬기능까지 있는 드라이버를 발견하게 되었다.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;가격도 &amp;nbsp;3,900원에&lt;strike&gt; .. 더싼게 있을지도..&lt;/strike&gt; 사지 않을 이유가 별로 없어 그대로 업어 왔다.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;포장&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;포장은 아래처럼 투평 플라스틱 안에 고정된 형태이다.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 506px; width: 506px; height: 900px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2776C04A5851462314&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2776C04A5851462314&quot; width=&quot;506&quot; height=&quot;900&quot; filename=&quot;20161111_231723_HDR.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 506px; height: 900px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;개봉&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;개봉하면 아래와 같이 접힌 상태에 모습을 볼 수 있다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;모두 펴게 되면 6종류의 드라이버를 사용할 수 있다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/27070F48585146A930&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F27070F48585146A930&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20161111_232148_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;드라이버 종류&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;드라이버 종류는 십자 사이즈별 3개 일자 사이즈별 3개 그리고 뭉툭한것(이걸 돌리면 열수 있다. 작은 +,-를 돌려서 넣을 수 있게 되어 있다.) 그래서 최종적으로 십자 4개, 일자 4개가 사이즈별로 있다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2365613F585148101C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2365613F585148101C&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;d2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;아래는 드라이버를 고정시킬 수 있는 링이다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;혹여 잊어버리게 되면 고정시키는데 보관시 고정시킬 때 문제가 있을 수 있을 것이다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2653E745585149431D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2653E745585149431D&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20161111_232420_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 11pt; font-weight: normal; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;드라이버를 고정시킨 모습이다.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 11pt; font-weight: normal; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;생각보다 튼튼한 느낌이다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/21552B455851494B1D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F21552B455851494B1D&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20161111_232455_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 153, 153); font-size: 18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;랜턴&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;드라이버를 고정시킬는 사이 공간에 4개가 있다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;아래처럼 아랫부분에 동전을 넣어 돌리면 될것처럼 생긴것을 돌려 건전지 넣는 부분을 꺼낸다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;물론 구매하면 건전지가 들어있지 않다!!&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2375CA46585149BA23&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2375CA46585149BA23&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20161111_232505_HDR.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;AAA 건전지가 3개가 들어간다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;strike&gt;한개아니면 두개 아니면 네개 일줄 알았는데...&lt;/strike&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2410B746585149C60A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2410B746585149C60A&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20161111_232622_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14.6667px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;사진은 찍지 않았지만 백색 LED전구가 상당히 밝다 드라이버 전면에 위치해있기 때문에&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;어두운곳을 돌릴때도 유용하고&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;그냥 랜턴으로 쓰기에도 문제는 없지만 애초에 드라이버를&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;돌리기에 유용한 위치이므로 고려해봐야 할 사항이긴 하다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 36px; color: rgb(0, 51, 153);&quot;&gt;&lt;b style=&quot;line-height: 36px;&quot;&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;</description>
      <category>Reviews/Tools</category>
      <category>LED</category>
      <category>드라이버</category>
      <category>랜턴</category>
      <category>미니소</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/56</guid>
      <comments>https://dwfox.tistory.com/56#entry56comment</comments>
      <pubDate>Wed, 14 Dec 2016 22:36:01 +0900</pubDate>
    </item>
    <item>
      <title>[Java] AWS S3 Security Credentials 생성 하기</title>
      <link>https://dwfox.tistory.com/55</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 24pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;Security Credentials 설정하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;AWS SDK를 이용하여 업로드 할 때 &amp;nbsp;업로드 권한을 얻기 위해 Security Credentials을 설정하여야 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;User를 생성하고 해당유저의 권한을 설정하고 &lt;b&gt;Access key&lt;/b&gt;와 &amp;nbsp;&lt;b&gt;Secret key&lt;/b&gt;를 가져오는 작업이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;1&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;My Security Credentials 을 눌러&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Security Credentials&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;설정하는 부분으로 이동한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/234D4C345850FE0701&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F234D4C345850FE0701&quot; width=&quot;900&quot; height=&quot;484&quot; filename=&quot;z3_1.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;2&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&amp;nbsp;Get Started with IAM Users을 선택해 다음으로 이동한다&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/224BF0345850FE0802&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F224BF0345850FE0802&quot; width=&quot;900&quot; height=&quot;309&quot; filename=&quot;z3_2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;3&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&amp;nbsp;Add User를 통해 유저를 생성한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/211C3C345850FE0920&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F211C3C345850FE0920&quot; width=&quot;900&quot; height=&quot;364&quot; filename=&quot;z3_3.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;4&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&amp;nbsp;User name을 지정하고 Programmatic access 를 통해 권한 설정으로 이동한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/275FEE3E585100AE32&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F275FEE3E585100AE32&quot; width=&quot;900&quot; height=&quot;427&quot; filename=&quot;z3_4.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;5&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&amp;nbsp;사용할 서비스에 대한 범위를 지정한다. 아래와 같이 S3라고 검색하면 해당 서비스에 대한 설명이 나오고 필요한 기능을 선택하고 다음으로 넘어간다. S3와 관련된 것이므로 AmazonS3FullAccess를 선택한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/267DB9345850FE0B34&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F267DB9345850FE0B34&quot; width=&quot;900&quot; height=&quot;426&quot; filename=&quot;z3_5.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;6 &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&amp;nbsp;Review를 통해 올바른 설정을 했는지 확인하고 Create user로 생성한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2305D1345850FE0C2F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2305D1345850FE0C2F&quot; width=&quot;900&quot; height=&quot;420&quot; filename=&quot;z3_6.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;7&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: start; font-size: 14.6667px;&quot;&gt;&amp;nbsp;생성된 User의 Access key ID와 Secret access key를 확인 할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/25063A345850FE0D31&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F25063A345850FE0D31&quot; width=&quot;900&quot; height=&quot;397&quot; filename=&quot;z3_7.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Java</category>
      <category>Access</category>
      <category>Amazon</category>
      <category>AWS</category>
      <category>credentials</category>
      <category>key</category>
      <category>S3</category>
      <category>security</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/55</guid>
      <comments>https://dwfox.tistory.com/55#entry55comment</comments>
      <pubDate>Wed, 14 Dec 2016 17:24:45 +0900</pubDate>
    </item>
    <item>
      <title>[Java] Maven Servlet WEB-INF/lib 적용되지 않을 때</title>
      <link>https://dwfox.tistory.com/54</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 32px;&quot;&gt;&lt;b&gt;[Java] Maven Servlet WEB-INF/lib 적용되지 않을 때&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 32px;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;Maven Project Convert (eclipse) - Dynamic Web Project Maven 적용하기&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Maven프로젝트로 변환이 되면 pom.xml을 통하여 라이브&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;231&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;231&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/251C2A47584A609203?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/251C2A47584A609203?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/251C2A47584A609203&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F251C2A47584A609203&quot; width=&quot;900&quot; height=&quot;231&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;231&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Dynamic Web Project 외부 라이브러리를 ( Jar )사용하기&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Maven프로젝트로 변환이 되면 pom.xml을 통하여 라이브러리를 추가하여 사용하면되지만&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;외부 라이브러리를 (jar)를 사용하게 되면 WebContent/WEB-INF/lib 에 넣어서 사용하면 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;하지만 Maven로 변환하면서 몇가지 설정이 누락되면 해당 폴더에 라이브러리가 존재하더라도 라이브러리를 사용하지 못하게 되거나 찾을 수 없다고 에러가 날 것이다.&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #ff0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;WEB-INF/lib 라이브러리 사용문제 해결하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;먼저 프로젝트 Properties에서 아래와 같이 Deployment Assembly에 아래와 같이 Maven Dependencies가 없으면 오른쪽 add를 눌러 추가하도록 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;700&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;700&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/25541C3F584A61A922?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/25541C3F584A61A922?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/25541C3F584A61A922&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F25541C3F584A61A922&quot; width=&quot;900&quot; height=&quot;700&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;700&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;400&quot; style=&quot;text-align: center;&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;400&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/2509E640584A620F1D?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/2509E640584A620F1D?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2509E640584A620F1D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2509E640584A620F1D&quot; width=&quot;900&quot; height=&quot;400&quot; style=&quot;text-align: center;&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;400&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: #ffffff; background-color: #0900ff;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #000000; background-color: #ffffff;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;위와 같이 Deployment Assembly에 적용이 된 후에 &amp;nbsp;여전히 라이브러리가 적용이 안된다면&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;아래와 같이&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;900&quot; height=&quot;873&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;873&quot; data-ke-mobilestyle=&quot;widthOrigin&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/22548537584A6DC425?original&quot; data-phocus=&quot;https://t1.daumcdn.net/cfile/tistory/22548537584A6DC425?original&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/22548537584A6DC425&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F22548537584A6DC425&quot; width=&quot;900&quot; height=&quot;873&quot; data-origin-width=&quot;900&quot; data-origin-height=&quot;873&quot; data-ke-mobilestyle=&quot;widthOrigin&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Web App Libraries가 추가 되어있는지 확인한다.&lt;/span&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;안되어있다면 오른쪽 add Library를 통해 추가한다.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Java</category>
      <category>jar</category>
      <category>java</category>
      <category>lib</category>
      <category>maven</category>
      <category>Servlet</category>
      <category>Web App Library</category>
      <category>WEB-INF</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/54</guid>
      <comments>https://dwfox.tistory.com/54#entry54comment</comments>
      <pubDate>Fri, 9 Dec 2016 17:41:11 +0900</pubDate>
    </item>
    <item>
      <title>[Java] JDBC JAVA  Mysql 연동하기</title>
      <link>https://dwfox.tistory.com/53</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;p&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 32px;&quot;&gt;&lt;b&gt;[Java] JDBC Java&amp;nbsp;Mysql 연동하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;Java Mysql Connector 다운&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;http://dev.mysql.com/downloads/connector/j/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;먼저 JDBC&lt;/span&gt;&lt;span style=&quot;font-size: 10.6667px;&quot;&gt;(Java Database Connectivity)는 자바에서 데이터베이스에 접속할 수 있도록 하는 자바 API이다.&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;에 연동할 수 있는 Mysql Connector 라이브러리&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;를 다운 받는다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/245E7D4D584907A130&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F245E7D4D584907A130&quot; width=&quot;900&quot; height=&quot;743&quot; filename=&quot;1.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;압축형태와 platform에 맞춰서 다운받으면 된다.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px;&quot;&gt;&amp;nbsp;라이브러리 적용&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Connector를 다운받아 압축을 풀면&amp;nbsp;mysql-connector-java-[version]-bin.jar &amp;nbsp;라이브러리 파일이 나온다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;이클립스 기준으로 프로젝트 Properties에서 Java Build Path 항목의 Libraries - Add External JARs.. 를 통해 추가 하면된다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2703F74B584908A438&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2703F74B584908A438&quot; width=&quot;900&quot; height=&quot;647&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px;&quot;&gt;&amp;nbsp;MySQL 연동 코드&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#f0f0f0; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#272727; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #4f4f4f&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#aaa; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;16&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;17&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;18&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;19&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;20&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;21&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;22&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;23&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;24&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;25&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;26&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;27&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;28&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;29&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;30&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;31&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;32&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;33&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;34&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;35&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;36&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;37&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;38&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#f0f0f0; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;void&lt;/span&gt;&amp;nbsp;main(&lt;span style=&quot;color:#4be6fa&quot;&gt;String&lt;/span&gt;[]&amp;nbsp;args)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Connection&amp;nbsp;connection&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;null&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Statement&amp;nbsp;st&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;null&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;try&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Class.forName(&lt;span style=&quot;color:#ffd500&quot;&gt;&quot;com.mysql.jdbc.Driver&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;connection&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;DriverManager.getConnection(&lt;span style=&quot;color:#ffd500&quot;&gt;&quot;jdbc:mysql:주소:포트/DB명&quot;&lt;/span&gt;&amp;nbsp;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;&quot;username&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;&quot;password&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;st&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;connection.createStatement();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;String&lt;/span&gt;&amp;nbsp;sql;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sql&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#ffd500&quot;&gt;&quot;select&amp;nbsp;*&amp;nbsp;FROM&amp;nbsp;table;&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ResultSet&amp;nbsp;rs&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;st.executeQuery(sql);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;while&lt;/span&gt;&amp;nbsp;(rs.next())&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;String&lt;/span&gt;&amp;nbsp;sqlRecipeProcess&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;rs.getString(&lt;span style=&quot;color:#ffd500&quot;&gt;&quot;column명&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rs.close();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;st.close();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;connection.close();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;catch&lt;/span&gt;&amp;nbsp;(SQLException&amp;nbsp;se1)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;se1.printStackTrace();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;catch&lt;/span&gt;&amp;nbsp;(Exception&amp;nbsp;ex)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ex.printStackTrace();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;finally&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;try&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;if&lt;/span&gt;&amp;nbsp;(st&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;null&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;st.close();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;catch&lt;/span&gt;&amp;nbsp;(SQLException&amp;nbsp;se2)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;try&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;if&lt;/span&gt;&amp;nbsp;(connection&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#ff3399&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#4be6fa&quot;&gt;null&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;connection.close();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#ff3399&quot;&gt;catch&lt;/span&gt;&amp;nbsp;(SQLException&amp;nbsp;se)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;se.printStackTrace();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(79, 79, 79);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(79, 79, 79); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px;&quot;&gt;&amp;nbsp;라이브러리 적용이 안되었을 경우&lt;/span&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;java.lang.ClassNotFoundException: com.mysql.jdbc.Driver&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;at java.net.URLClassLoader.findClass(Unknown Source)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;at java.lang.Class.forName0(Native Method)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;at java.lang.Class.forName(Unknown Source)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;at MySql.main(MySql.java:20)&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;위와 같은 에러가 방생하면 Mysql Connector 라이브러리가 정상적으로 적용되지 않았을 경우이다.&lt;/p&gt;
&lt;p&gt;라이브러리가 추가되어있는지 확인해 보아야 한다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;center&gt;&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Java</category>
      <category>Connector</category>
      <category>java</category>
      <category>JDBC</category>
      <category>MySQL</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/53</guid>
      <comments>https://dwfox.tistory.com/53#entry53comment</comments>
      <pubDate>Thu, 8 Dec 2016 16:30:32 +0900</pubDate>
    </item>
    <item>
      <title>[Android] Seekbar 커스텀하기 - Thumb 크기 바꾸기</title>
      <link>https://dwfox.tistory.com/51</link>
      <description>&lt;!-- HEADER AD --&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;!-- TITLE --&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;[Android] Seekbar 커스텀하기 - Thumb 크기 바꾸기&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Android Seekbar Custom &amp;amp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;change &lt;/span&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Seekbar Thumb size &lt;/span&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;programmatically&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;!--CONTENT--&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Seekbar 기본&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Seekbar를 사용할 때 기본으로 아래와 같이 xml에 정의 하여 사용한다 max 값정도 지정해주고 사용하면 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;SeekBar&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:id&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@+id/sb&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:max&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;50&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;/&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 400px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2526D03C5822CBAF28&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2526D03C5822CBAF28&quot; width=&quot;400&quot; height=&quot;52&quot; filename=&quot;112.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px;&quot;&gt;[ 적용된 Seekbar ]&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Seekbar 값 알아내기&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;Seekbar에&amp;nbsp;SeekBar.OnSeekBarChangeListener(를 통해 값을 알아 낸다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;sb.setOnSeekBarChangeListener(&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;SeekBar.OnSeekBarChangeListener()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;onProgressChanged(SeekBar&amp;nbsp;seekBar,&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;progress,&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;fromUser)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;//progress가 바뀐 선택 값&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;onStartTrackingTouch(SeekBar&amp;nbsp;seekBar)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;onStopTrackingTouch(SeekBar&amp;nbsp;seekBar)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;});&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Seekbar의 Thumb(선택자)&amp;nbsp;변경하기&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;anroid:thumb=&quot;사용할drawable&quot; 로 정의하여 사용한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; align=&quot;left&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;SeekBar&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:id&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@+id/sb&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:thumb&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@drawable/thumb&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:max&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;50&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;/&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: center;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 400px; text-align: center; width: 400px; height: 92px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/224DDE3C5822CBAF05&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F224DDE3C5822CBAF05&quot; width=&quot;400&quot; height=&quot;92&quot; filename=&quot;113.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center; width: 400px; height: 92px;&quot;/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: center;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;[ 적용된 Seekbar ]&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;위 적용된 모습을 보면 Thumb의 이미지 크기에 따라 Height 가 커지는걸 알 수 있고&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Thumb에 백그라운드가 Alpha값이 적용되더라도 ProgressBar를 가리게 된다.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;따라서 해당 Thumb의 위치를 올리거나 ProgressBar를 대체할 이미지를 찾아야 한다.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Seekbar의 ProgressBar 안보이게 하기&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;android:progressDrawable = &quot;@null&quot; 안보이게 할 수 있다.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;overflow: auto; text-align: left; position: relative !important;&quot;&gt;&lt;span style=&quot;text-align: center; line-height: 24px;&quot;&gt;&lt;span style=&quot;text-align: start; line-height: 24px;&quot;&gt;&lt;span style=&quot;text-align: center; line-height: 24px;&quot;&gt;&lt;font color=&quot;#010101&quot; face=&quot;Consolas, Liberation Mono, Menlo, Courier, monospace&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;android:layout_height = &quot;45dp&quot; 처럼 값을 지정해주고&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;overflow: auto; text-align: left; position: relative !important;&quot;&gt;&lt;span style=&quot;text-align: center; line-height: 24px;&quot;&gt;&lt;span style=&quot;text-align: start; line-height: 24px;&quot;&gt;&lt;span style=&quot;text-align: center; line-height: 24px;&quot;&gt;&lt;font color=&quot;#010101&quot; face=&quot;Consolas, Liberation Mono, Menlo, Courier, monospace&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;배경색상을 지정하면 아래와 같은 모습을 볼 수 있는데&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(1, 1, 1); text-align: center;&quot;&gt;높이에 따라 Thumb가 잘리는걸 볼 수 있다.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;text-align: center; overflow: auto; position: relative !important;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: rgb(1, 1, 1); overflow: auto; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace !important; position: relative !important; text-align: left;&quot;&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;SeekBar&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:id&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@+id/sb&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;45dp&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:thumb&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@drawable/thumb&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:background&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@color/colorPrimary&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:progressDrawable&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@null&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_centerInParent&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: rgb(10, 153, 137);&quot;&gt;android:max&lt;/span&gt;=&lt;span style=&quot;color: rgb(223, 80, 0);&quot;&gt;&quot;50&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: rgb(10, 153, 137);&quot;&gt;/&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 400px; color: rgb(1, 1, 1); font-family: Consolas, &amp;amp;quot;Liberation Mono&amp;amp;quot;, Menlo, Courier, monospace; text-align: center; width: 400px; height: 66px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/210C653C5822CBB040&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F210C653C5822CBB040&quot; width=&quot;400&quot; height=&quot;66&quot; filename=&quot;114.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; text-align: center; width: 400px; height: 66px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;[ 적용된 Seekbar ]&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;
&lt;!-- MID AD --&gt;
&lt;/p&gt;&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- tistory_top_smail_width --&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:inline-block;width:320px;height:94px&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;9845192338&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- tistory_top_smail_width --&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:inline-block;width:320px;height:94px&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;9845192338&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;text-align: start; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Seekbar의&amp;nbsp;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;b&gt;Thumb 크기 바꾸기&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); text-align: center;&quot;&gt;Seekbar의 크기에 맞추어 Thumb 크기를 조절해주면 아래의 결과를 볼 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;font color=&quot;#010101&quot; face=&quot;Consolas, Liberation Mono, Menlo, Courier, monospace&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;ProgressBar를 대체할 만한 배경을 대체해주면 Custom된 모습이 훨신 나아 보일 것이다.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;16&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;17&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;18&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;19&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;20&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;setSeekberThumb(&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;SeekBar&amp;nbsp;seekBar,&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;Resources&amp;nbsp;res)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;seekBar.getViewTreeObserver().addOnPreDrawListener(&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;ViewTreeObserver.OnPreDrawListener()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;onPreDraw()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(seekBar.getHeight()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;0&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Drawable&amp;nbsp;thumb&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;res.getDrawable(R.drawable.indicator);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;h&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;seekBar.getMeasuredHeight();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;w&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;h;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;bmpOrg&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;((BitmapDrawable)&amp;nbsp;thumb).getBitmap();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;bmpScaled&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;Bitmap.createScaledBitmap(bmpOrg,&amp;nbsp;w,&amp;nbsp;h,&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;true&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Drawable&amp;nbsp;newThumb&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;BitmapDrawable(res,&amp;nbsp;bmpScaled);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newThumb.setBounds(&lt;span style=&quot;color:#0099cc&quot;&gt;0&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;0&lt;/span&gt;,&amp;nbsp;newThumb.getIntrinsicWidth(),&amp;nbsp;newThumb.getIntrinsicHeight());&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;seekBar.setThumb(newThumb);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;seekBar.getViewTreeObserver().removeOnPreDrawListener(&lt;span style=&quot;color:#a71d5d&quot;&gt;this&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;true&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 400px; width: 400px; height: 69px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/232F93345822CF0924&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F232F93345822CF0924&quot; width=&quot;400&quot; height=&quot;69&quot; filename=&quot;115.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 400px; height: 69px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;[ 적용된 Seekbar ]&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: center; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;Custom Seekbar&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://android-arsenal.com/details/1/4630&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://android-arsenal.com/details/1/4630&lt;/a&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Indicator</category>
      <category>SeekBar</category>
      <category>Thumb</category>
      <category>변경</category>
      <category>사이즈</category>
      <category>안드로이드</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/51</guid>
      <comments>https://dwfox.tistory.com/51#entry51comment</comments>
      <pubDate>Wed, 9 Nov 2016 16:30:39 +0900</pubDate>
    </item>
    <item>
      <title>[Android] 줄자 - Ruler Selector View (SeekerView / 선택자 / 자모양 / 값 선택 뷰 / Ruler Type Number Picker )</title>
      <link>https://dwfox.tistory.com/50</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(5, 0, 153);&quot;&gt;[Android] 줄자 - Ruler Selector View&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;color: rgb(5, 0, 153); font-size: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(5, 0, 153); font-size: 12pt;&quot;&gt;(Scroll SeekerView /&amp;nbsp;선택자 / 자모양 / 값 선택 뷰 /&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Ruler Type Number Picker )&lt;/span&gt;&lt;/font&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; color: rgb(5, 0, 153);&quot;&gt;&lt;span style=&quot;font-size: 12pt; color: rgb(53, 53, 53);&quot;&gt;안드로이드 값 선택 커스텀 뷰 ( 줄자 모양 )&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/dwfox/DWRulerView/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://github.com/dwfox/DWRulerView/&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 구현 예제&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/Udy_ThDo5kw&quot; width=&quot;420&quot; height=&quot;315&quot; frameborder=&quot;&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; DWRulerviewlibrary 뷰 라이브러리 적용하기&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;#&amp;nbsp;&lt;/span&gt;&amp;nbsp;아래의 aar파일(라이브러리)을 적용시킨다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block;   height: auto; max-width: 100%;&quot;&gt;&lt;a href=&quot;https://t1.daumcdn.net/cfile/tistory/246F6036582023F909&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://i1.daumcdn.net/cfs.tistory/v/0/blog/image/extension/unknown.gif&quot; style=&quot;vertical-align: middle;&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;dwrulerviewlibrary-release.aar&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 222, 199); background-color: rgb(254, 222, 199); padding: 10px;&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;※ 참고&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://dwfox.tistory.com/31&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;[Android Stuido] Android Studio Library Import ( 라이브러리 추가 ) 방법&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: 14.6667px;&quot;&gt;&lt;a href=&quot;http://dwfox.tistory.com/31&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://dwfox.tistory.com/31&amp;nbsp;&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal; background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;&amp;nbsp;aar을 직접 연동하는 방법외에 Gradle 스크립트에 아래와 같이 적용하여 사용하면 된다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;background-color: rgb(255, 255, 255); font-family: Consolas; font-size: 10.5pt;&quot;&gt;allprojects {&lt;br /&gt;    repositories {&lt;br /&gt;        jcenter()&lt;br /&gt;        maven { url &lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;https://jitpack.io&quot; &lt;/span&gt;} &lt;span style=&quot;color:#808080;font-style:italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#808080;font-style:italic;&quot;&gt;    &lt;/span&gt;}&lt;br /&gt;}&lt;/pre&gt;&lt;pre style=&quot;background-color: rgb(255, 255, 255); font-family: Consolas; font-size: 10.5pt;&quot;&gt;dependencies {&lt;br /&gt;    compile &lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;'com.github.dwfox:DWRulerView:1.0.0'&lt;br /&gt;&lt;/span&gt;}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Layout 설정&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;적용할 Layout이다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;TextView에는 RulerView의 값을 표시 할 것이고&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 24px; font-size: 14.6667px;&quot;&gt;com.tistory.dwfox.dwrulerviewlibrary.view.ScrollingValuePicker 의 커스텀 뷰가 Ruler View의 Custom View이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 24px; font-size: 14.6667px;&quot;&gt;기본적으로 줄자의 눈끔은 하얀색이므로 배경이 하얀색 이외의 다른 색을 선택하여 나타낸다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 24px; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;# &lt;/span&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;RulerView를 수정하면 눈끔색도 바꿀수 있다. - 라이브러리 수정하여 사용 &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;16&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;17&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;18&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;19&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;20&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;21&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;22&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;23&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;24&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;25&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;26&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;?xml&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;encoding&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color:#0a9989&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;RelativeLayout&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;xmlns:android&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;xmlns:tools&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;http://schemas.android.com/tools&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:paddingBottom&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@dimen/activity_vertical_margin&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:paddingTop&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@dimen/activity_vertical_margin&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;tools:context&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;com.tistory.dwfox.dwrulerview.MainActivity&quot;&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;TextView&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:id&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@+id/text&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_alignParentBottom&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:gravity&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;center&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:padding&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;10dp&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;/&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;com.tistory.dwfox.dwrulerviewlibrary.view.ScrollingValuePicker&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:id&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@+id/myScrollingValuePicker&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;150dp&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_centerInParent&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:background&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;#ec6464&quot;&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;com.tistory.dwfox.dwrulerviewlibrary.view.ScrollingValuePicker&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;RelativeLayout&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Ruler 속성 적용 및 값 받아오기&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;아래와 같이 activity에 적용하면 된다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;Minimum 값과 Maximum 값을 성정하고&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal; white-space: pre; background-color: rgb(250, 250, 250);&quot;&gt;LINE_RULER_MULTIPLE_SIZE &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;값은 RulerView Width 값의 배수다 4.5f는 RulerView를 4.5배 만큼 스크롤이 가능하다&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;예제 동영상을 보면 차이를 알 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; white-space: pre; background-color: rgb(250, 250, 250);&quot;&gt;setValueTypeMultiple &lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;는 표시될 숫자의 간격이다. 5를 하면 5, 10 , 15... 의간격으로 표시된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(1, 1, 1); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13px; font-weight: normal; white-space: pre; background-color: rgb(250, 250, 250);&quot;&gt;setOnScrollChangedListener &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;에서 선택된 값을 가져오는 역학을 하게 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;16&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;17&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;18&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;19&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;20&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;21&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;22&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;23&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;24&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;25&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;26&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;27&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;28&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;29&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;30&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;31&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;32&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;33&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;34&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;35&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;36&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;37&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;38&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;39&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;40&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;41&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;42&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;43&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;44&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;45&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;46&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;47&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;48&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;49&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;50&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;51&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;52&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;class&lt;/span&gt;&amp;nbsp;MainActivity&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;extends&lt;/span&gt;&amp;nbsp;AppCompatActivity&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;ScrollingValuePicker&amp;nbsp;myScrollingValuePicker;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;float&lt;/span&gt;&amp;nbsp;MIN_VALUE&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;0&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;float&lt;/span&gt;&amp;nbsp;MAX_VALUE&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;100&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;final&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;float&lt;/span&gt;&amp;nbsp;LINE_RULER_MULTIPLE_SIZE&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;4.&lt;/span&gt;5f;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;private&lt;/span&gt;&amp;nbsp;TextView&amp;nbsp;text;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;protected&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;onCreate(Bundle&amp;nbsp;savedInstanceState)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;super&lt;/span&gt;.onCreate(savedInstanceState);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;setContentView(R.layout.activity_main);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(TextView)&amp;nbsp;findViewById(R.id.text);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myScrollingValuePicker&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(ScrollingValuePicker)&amp;nbsp;findViewById(R.id.myScrollingValuePicker);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myScrollingValuePicker.setViewMultipleSize(LINE_RULER_MULTIPLE_SIZE);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myScrollingValuePicker.setMaxValue(MIN_VALUE,&amp;nbsp;MAX_VALUE);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myScrollingValuePicker.setValueTypeMultiple(&lt;span style=&quot;color:#0099cc&quot;&gt;5&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myScrollingValuePicker.getScrollView().setOnTouchListener(&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;View.OnTouchListener()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;onTouch(View&amp;nbsp;v,&amp;nbsp;MotionEvent&amp;nbsp;event)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(event.getAction()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;MotionEvent.ACTION_UP)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myScrollingValuePicker.getScrollView().startScrollerTask();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;false&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myScrollingValuePicker&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.setOnScrollChangedListener(&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;ObservableHorizontalScrollView.OnScrollChangedListener()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;onScrollChanged(ObservableHorizontalScrollView&amp;nbsp;view,&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;l,&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;t)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;void&lt;/span&gt;&amp;nbsp;onScrollStopped(&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;l,&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;t)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text.setText(&lt;span style=&quot;color:#63a35c&quot;&gt;&quot;Value&amp;nbsp;STOP&amp;nbsp;:&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;+&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DWUtils.getValueAndScrollItemToCenter(myScrollingValuePicker.getScrollView()&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;l&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;t&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;MAX_VALUE&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;MIN_VALUE&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;myScrollingValuePicker.getViewMultipleSize()));&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: rgb(229, 229, 229); border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;img src=&quot;https://raw.githubusercontent.com/dwfox/DWRulerView/master/screenshot/dwrulerview.gif&quot;&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-weight: normal; font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-weight: normal; font-size: 14.6667px;&quot;&gt;속성에 따라 아래와 같이 변화를 줄 수 있다.&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/251ED33C5820296C25&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F251ED33C5820296C25&quot; width=&quot;900&quot; height=&quot;765&quot; filename=&quot;223.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- tistory_top_smail_width --&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:inline-block;width:320px;height:94px&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;9845192338&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 예제 Project App Download&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/dwfox/DWRulerView/archive/master.zip&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;라이브러리 및 예제 프로젝트 다운 - https://github.com/dwfox/DWRulerView/archive/master.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Ref&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; font-weight: normal;&quot;&gt;&lt;a href=&quot;http://ryanharter.com/blog/2014/08/29/building-dynamic-custom-views/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;참고 사이트 :&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;a href=&quot;http://ryanharter.com/blog/2014/08/29/building-dynamic-custom-views/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://ryanharter.com/blog/2014/08/29/building-dynamic-custom-views/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Custom</category>
      <category>DWFOX</category>
      <category>Gitgub</category>
      <category>library</category>
      <category>선택뷰</category>
      <category>안드로이드</category>
      <category>예제</category>
      <category>줄자</category>
      <category>커스텀뷰</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/50</guid>
      <comments>https://dwfox.tistory.com/50#entry50comment</comments>
      <pubDate>Mon, 7 Nov 2016 16:18:22 +0900</pubDate>
    </item>
    <item>
      <title>[리뷰/IT] 신형 사오미 보조배터리 10000</title>
      <link>https://dwfox.tistory.com/46</link>
      <description>&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 331px; width: 331px; height: 290px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2235F54B57EA7B800A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2235F54B57EA7B800A&quot; width=&quot;331&quot; height=&quot;290&quot; filename=&quot;233.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 331px; height: 290px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- tistory_336_280_no2 --&gt;
&lt;ins class=&quot;adsbygoogle&quot; style=&quot;display:inline-block;width:336px;height:280px&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;8094573532&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;&lt;b&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 14pt; background-color: rgb(70, 115, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;샤오미 보조 배터리&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;왼쪽 하얀색 박스가 &lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;샤오미 보조&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0); color: rgb(255, 255, 255);&quot;&gt;배터리&lt;/span&gt;이고&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;오른쪽은 추가 주문한 샤오미 &lt;b&gt;젤리케이스&lt;/b&gt;와 &lt;b&gt;아이폰 젠더&lt;/b&gt;이다.&lt;/p&gt;
&lt;p&gt;젤리케이스와 아이폰젠더는 주문할때 옵션으로 붙어있는 경우가 많으므로 잘 보고 &lt;b&gt;필요여부에 따라 주문&lt;/b&gt;을 하면된다.&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;안드로이드를 쓰지만 패키지로 주문&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/231F973E57EA740625&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F231F973E57EA740625&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204054_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;샤오미 배터리 박스&lt;/p&gt;
&lt;p&gt;왼쪽 상단에 &lt;b&gt;정품인증할 수 있는 번호&lt;/b&gt;가 있고 &amp;nbsp;오른쪽 상단엔 &lt;b&gt;정품을 인증하는 스티커&lt;/b&gt;가 붙어있다.&lt;/p&gt;
&lt;p&gt;샤오미 공식홈페이지에 가면 정품인증을 할 수 있다고 한다.&lt;/p&gt;
&lt;p&gt;아래에는 수입원과 &lt;b&gt;안전확인신고&lt;/b&gt;를 한 스티커가 붙어있다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;박스안에는 샤오미 보조배터리 설명서가 들어있고&lt;/p&gt;
&lt;p&gt;각 포트에 대한 설명과 스펙, LED 설명 등이 중국어로 되어있다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/240EB24457EA763405&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F240EB24457EA763405&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204148_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;본구성품인 배터리와 케이블이다.&lt;/p&gt;
&lt;p&gt;케이블은 기본은 5핀으로 되어있지만&amp;nbsp;&lt;/p&gt;
&lt;p&gt;C-type USB 젠더가 기본적으로 포함되어있다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;보조배터리 본체를 충전하기위해서는 C-type USB가 반드시 있어야 하므로&amp;nbsp;&lt;/p&gt;
&lt;p&gt;젠더를 잘다뤄야 할것이다.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;개봉후에 C-type USB는 항상 보조배터리 본체에 끼워 사용하고 있다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2204C64457EA763D0D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2204C64457EA763D0D&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204227_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;본체 아래 부분인&amp;nbsp;USB 포트가 있는 부분에&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;개봉하면 포트를 보호하고 있는 스티커? 가 붙어있다.&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;쉽게 떨어지므로 벗기면&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/230C0E4457EA764107&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F230C0E4457EA764107&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204241_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;아래와 같이&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;순서대로 &lt;b&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;전원]&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 94, 0); color: rgb(255, 255, 255);&quot;&gt;LED]&lt;/span&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); color: rgb(255, 255, 255);&quot;&gt; [C-type 포트] &lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 187, 0); color: rgb(255, 255, 255);&quot;&gt;[USB 포트&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 187, 0); color: rgb(255, 255, 255);&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;순으로 되어있다.&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;앞서 말했지만 보조배터리를 충전하기 위한 포트는 C-type의 USB 포트로 되어있다.&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;LED는 설명서에 나와있기를&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;◎○○○&lt;/span&gt; 0%~25%&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;●&lt;/span&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;◎&lt;/span&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;○○&lt;/span&gt; 25%~50%&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;●●&lt;/span&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;◎&lt;/span&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;○&lt;/span&gt; 50%~75%&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;●●●&lt;/span&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;◎&lt;/span&gt;&amp;nbsp;75%~96%&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;●●●&lt;/span&gt;&lt;span style=&quot;background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;●&lt;/span&gt;&amp;nbsp;100%&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;◎은 깜빡임을 표시한것&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;위와 같은 충전량을 나타낸다고 한다.&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/265DC94457EA764C34&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F265DC94457EA764C34&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204337_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;반대편에는 샤오미 보조배터리의 스펙에대해 나와있다.&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/237B2E4457EA764716&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F237B2E4457EA764716&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204307_HDR.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;갤러시 7 기준으로 2.5회 충전가능하며&lt;/p&gt;
&lt;p&gt;아이폰 6 기준으로 4회 충전 가능하다고 한다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;실사용한 결과 V10 기준으로 폰을 켜놓은채로 2회가량 충전이 가능했다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;두깨가 12.58mm라 기존의 보조배터리보다 굉장히 얇았고&amp;nbsp;&lt;/p&gt;
&lt;p&gt;폰과 함께 충전하면서 한손에 들어오는 정도였다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;하지만 오랜시간 들고있으면 손목이 아플정도의 무게이긴 하다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 14pt; background-color: rgb(70, 115, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 14pt; background-color: rgb(70, 115, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;젤리케이스&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;아래에서 보는것처럼 젤리케이스도 샤오미에서 직접 만드는듯 하다.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;젤리케이스이긴 한데 먼지가 굉장히 잘묻어 나기 떄문에&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2254394A57EA7A9C33&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2254394A57EA7A9C33&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204105_HDR.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;가정생활 먼지가 바로 묻어나는 모습니다.&lt;/p&gt;
&lt;p&gt;보조배터리의 재질이 기스가 잘 난것 같은 재질이기도 하고 충격을 조금이나마 줄이기 위해 씌우고 다니고 있다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2433DD4B57EA7AFE09&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2433DD4B57EA7AFE09&quot; width=&quot;900&quot; height=&quot;506&quot; filename=&quot;20160909_204541_HDR.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Reviews/IT</category>
      <category>10000</category>
      <category>C-type</category>
      <category>USB</category>
      <category>배터리</category>
      <category>보조</category>
      <category>보조배터리</category>
      <category>샤오미</category>
      <category>여행필수품</category>
      <category>정품</category>
      <category>젤리케이스</category>
      <category>충전</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/46</guid>
      <comments>https://dwfox.tistory.com/46#entry46comment</comments>
      <pubDate>Tue, 27 Sep 2016 23:04:53 +0900</pubDate>
    </item>
    <item>
      <title>[Android] APK 파일 추출 / 디컴파일 / 분석 하기</title>
      <link>https://dwfox.tistory.com/43</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;[Android] APK 파일 추출 / 디컴파일 / 분석 하기&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp; APK파일 추출하기&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;인스톨한 프로젝트의 apk 패키지 이름이 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;com.tistory.dwfox.dwfoxtest&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; 일경우&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: dashed; border-width: 3px; border-color: rgb(0, 0, 0); background-color: rgb(53, 53, 53); padding: 10px;&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;C:\&amp;gt;adb shell&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(255, 255, 255);&quot;&gt;shell@dwfox:/ $&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;pm list packages -f&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132); font-size: 11pt;&quot;&gt;&amp;nbsp; ※&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132); font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;command line에서 바로&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;adb shell pm list packages -f &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;한줄의 명령어로&amp;nbsp;해도 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;아래와 같은 형태로 설치된 리스트가 나오게된다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;package:&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;[apk위치]&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;[패키지명]&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 11pt; background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; ※&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; background-color: rgb(132, 132, 132); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;커맨드의 찾기 옵션을 이용하여 원하는 패키지 명을 검색하면 아래와 같이 쉽게 찾아 낼 수 있다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 415px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2170324757E0BBA435&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2170324757E0BBA435&quot; width=&quot;415&quot; height=&quot;148&quot; filename=&quot;1.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/217C174757E0BBA52B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F217C174757E0BBA52B&quot; width=&quot;900&quot; height=&quot;54&quot; filename=&quot;2.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;파일 위치를 복사해서 아래와 같은 명령어를 통해 apk 파일을 현재의 경로에 가져오게 된다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(0, 0, 0); background-color: rgb(33, 33, 33); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;adb pull&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;/data/app/com.tistory.dwfox.dwfoxtest-1/base.apk&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;APK파일 디컴파일&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp; 1 &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;아래의 파일 을 먼저 준비한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;dex2jar : &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;apk의 dex 압축형태를 jar 파일로 변환해주는 툴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/pxb1988/dex2jar&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;다운로드 링크 :&amp;nbsp;https://github.com/pxb1988/dex2jar&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block;   height: auto; max-width: 100%;&quot;&gt;&lt;a href=&quot;https://t1.daumcdn.net/cfile/tistory/2520764B57E099AE0D&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://i1.daumcdn.net/cfs.tistory/v/0/blog/image/extension/zip.gif&quot; style=&quot;vertical-align: middle;&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;dex2jar-2.0.zip&lt;/a&gt;&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;jd-gui : &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;jar형태의 파일을 소스파일로 볼 수 있는 GUI 툴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://jd.benow.ca/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;다운로드 링크 :&amp;nbsp;http://jd.benow.ca/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block;   height: auto; max-width: 100%;&quot;&gt;&lt;a href=&quot;https://t1.daumcdn.net/cfile/tistory/251C034B57E099C811&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://i1.daumcdn.net/cfs.tistory/v/0/blog/image/extension/zip.gif&quot; style=&quot;vertical-align: middle;&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;jd-gui-windows-1.4.0.zip&lt;/a&gt;&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp; 2 &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;dex2jar의 압출을 해제한 경로에 apk 파일을 복사하고 아래와 같은 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;d2j-dex2jar.bat base.ap&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;명령어를 실행한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(0, 0, 0); background-color: rgb(33, 33, 33); padding: 10px;&quot;&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;C:\&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;dex2jar-2.0&amp;gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;d2j-dex2jar.bat base.apk&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;dex2jar base.apk -&amp;gt; .\base-dex2jar.jar&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;base-dex2jar.jar 파일이 생성된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;&amp;nbsp; 3 &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;이 파일(base-dex2jar.jar)을 jd-gui를 실행시켜 열어보면 apk의 java파일에 대한 소스를 볼 수 있게 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2337434B57E0BC1823&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2337434B57E0BC1823&quot; width=&quot;900&quot; height=&quot;729&quot; filename=&quot;3.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;center&gt;
&lt;a href=&quot;https://coupa.ng/blxJvR&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://ads-partners.coupang.com/banners/91150?subId=&amp;traceId=V0-301-50c6c2b97fba9aee-I91150&amp;w=300&amp;h=250&quot; alt=&quot;&quot;&gt;&lt;/a&gt;
&lt;/center&gt;</description>
      <category>Dev/Android</category>
      <category>apk</category>
      <category>class</category>
      <category>dex</category>
      <category>dex2jar</category>
      <category>GUI</category>
      <category>jar</category>
      <category>java</category>
      <category>JD</category>
      <category>디컴파일</category>
      <category>분석</category>
      <category>안드로이드</category>
      <category>추출</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/43</guid>
      <comments>https://dwfox.tistory.com/43#entry43comment</comments>
      <pubDate>Tue, 20 Sep 2016 12:20:18 +0900</pubDate>
    </item>
    <item>
      <title>[Android] unexpected namespace prefix &amp;quot;app&amp;quot; found for tag</title>
      <link>https://dwfox.tistory.com/42</link>
      <description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;center&gt;&lt;ins class=&quot;adsbygoogle Tistory_act &quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot; style=&quot;width: 720px; height: 90px; display: inline-block;&quot;&gt;&lt;/ins&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/center&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;unexpected namespace prefix &quot;app&quot; found for tag&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Unexpected namespace prefix &quot;app&quot; found for tag TextView less... (Ctrl+F1)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Most Android views have attributes in the Android namespace.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;When referencing these attributes you must include the namespace prefix,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;or your attribute will be interpreted by aapt as just a custom attribute. &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Similarly, in manifest files, nearly all attributes should be in the android: namespace.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 670px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/242A6A4E57CE8F0505&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F242A6A4E57CE8F0505&quot; width=&quot;670&quot; height=&quot;200&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 내용&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Android Studio 에서&amp;nbsp;Typekit의 AddCustom1 을 xml Layout TextView에 적용할때&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;app:font=&quot;cutom1&quot;&lt;/b&gt;에 &amp;nbsp;unexpected namespace prefix &quot;app&quot; found for tag 의 빨간 메시지를 볼 수 있다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;?xml&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;encoding&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color:#0a9989&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;LinearLayout&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;xmlns:android&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;xmlns:app&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;http://schemas.android.com/apk/res-auto&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:orientation&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;vertical&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;TextView&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:id&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@+id/text&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding: 0px 6px; white-space: pre; line-height: 130%; text-align: left;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;app:font&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#df5000&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;&quot;custom1&quot;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;/&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;LinearLayout&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; font-weight: bold; line-height: 24px; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18.6667px; font-weight: bold; line-height: 24px;&quot;&gt;&amp;nbsp; 해결&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;하지만 정상적으로 빌드가 되고 Font도 정상적으로 바뀌어 나오는 것을 볼 수 있다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;그래서 아래의 내용을 추가하여&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;xmlns:tools=&quot;http://schemas.android.com/tools&quot; &lt;/b&gt;과 &lt;b&gt;tools:ignore=&quot;missingPrefix&quot; &amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;에러 메세지를&amp;nbsp;무시하도록 한다.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;table class=&quot;colorscripter-code-table&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; margin: 0px; padding: 0px; border: none; border-radius: 4px; background-color: rgb(250, 250, 250);&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;?xml&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;encoding&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color:#0a9989&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;LinearLayout&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;xmlns:android&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;xmlns:app&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;http://schemas.android.com/apk/res-auto&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 94, 0);&quot;&gt;xmlns:tools&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 94, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 94, 0);&quot;&gt;&quot;http://schemas.android.com/tools&quot;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:orientation&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;vertical&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 94, 0);&quot;&gt;tools:ignore&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 94, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 94, 0);&quot;&gt;&quot;missingPrefix&quot;&lt;/span&gt;&lt;/b&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;span style=&quot;color:#066de2&quot;&gt;TextView&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:id&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;@+id/text&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;app:font&lt;/span&gt;=&lt;span style=&quot;color:#df5000&quot;&gt;&quot;custom1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0a9989&quot;&gt;/&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;lt;/&lt;span style=&quot;color:#066de2&quot;&gt;LinearLayout&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Error/Android</category>
      <category>Android</category>
      <category>AndroidStudio</category>
      <category>app</category>
      <category>namespace</category>
      <category>prefix</category>
      <category>unexpected</category>
      <category>무시</category>
      <category>안드로이드</category>
      <category>에러</category>
      <category>해결</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/42</guid>
      <comments>https://dwfox.tistory.com/42#entry42comment</comments>
      <pubDate>Tue, 6 Sep 2016 18:40:53 +0900</pubDate>
    </item>
    <item>
      <title>[Android] Android Studio Keystore 생성하기 (Command 생성방법 포함)</title>
      <link>https://dwfox.tistory.com/40</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 24pt; color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;[Android] Android Studio Keystore 생성하기 (Command 생성방법 포함)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Command로 Keystore 생성하기&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;# keytool은 jdk 설치 폴더의 bin에 위치해 있기 때문에 Java를 환경변수설정으로 지정해주었다면 위치와 상관없이 command창에서 실행이 가능하지만 환경변수설정을 지정 하지 않았따면 keytool의 경로로 가서 아래의 커맨드를 입력하도록 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;keytool -genkey -v -keystore &lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;[keystorefilename]&lt;/span&gt;&amp;nbsp;-alias &lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;[alias]&lt;/span&gt; -&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;keyalg RSA -keysize 2048 -validity 10000&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;-&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;validity&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&amp;nbsp;: 만료 일(day)&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px dashed rgb(255, 255, 255); padding: 10px; background-color: rgb(0, 0, 0);&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;C:\Users\DWFOX&amp;gt;keytool -genkey -v -keystore dwfox.keystore -alias&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14.6667px; line-height: 24px;&quot;&gt;dwfox&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;-keyalg RSA -keysize 2048 -validity 10000&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;키 저장소 비밀번호 입력:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;새 비밀번호 다시 입력:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;이름과 성을 입력하십시오.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; [Unknown]: &amp;nbsp;&lt;b&gt;DWFOX&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;조직 단위 이름을 입력하십시오.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; [Unknown]: &amp;nbsp;&lt;b&gt;DWFOX&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;조직 이름을 입력하십시오.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; [Unknown]: &amp;nbsp;&lt;b&gt;DWFOX&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;구/군/시 이름을 입력하십시오?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; [Unknown]: &amp;nbsp;&lt;b&gt;SEOUL&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;시/도 이름을 입력하십시오.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; [Unknown]: &amp;nbsp;&lt;b&gt;SEOUL&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;이 조직의 두 자리 국가 코드를 입력하십시오.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; [Unknown]: &amp;nbsp;&lt;b&gt;ko&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;CN=DWFOX, OU=DWFOX, O=DWFOX, L=SEOUL, ST=SEOUL, C=ko이(가) 맞습니까?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; [아니오]: &amp;nbsp;y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;다음에 대해 유효 기간이 10,000일인 2,048비트 RSA 키 쌍 및 자체 서명된 인증서(SHA256withRSA)를 생성하는 중&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : CN=DWFOX, OU=DWFOX, O=DWFOX, L=SEOUL, ST=SEOUL, C=ko&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14.6667px; line-height: 24px;&quot;&gt;dwfox&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;gt;에 대한 키 비밀번호를 입력하십시오.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px; color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (키 저장소 비밀번호와 동일한 경우 Enter 키를 누름):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14.6667px; line-height: 24px;&quot;&gt;dwfox&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;.keystore을(를) 저장하는 중]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Android Studio에서 keystore 생성하기 (.jks : Java Key Stroe)&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;1. Build - Genderate Signed APK..&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 274px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/253A024C57BFAB0329&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F253A024C57BFAB0329&quot; width=&quot;274&quot; height=&quot;289&quot; filename=&quot;k1.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; text-align: start;&quot;&gt;2. Next Click&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 421px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/232F784C57BFAB0432&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F232F784C57BFAB0432&quot; width=&quot;421&quot; height=&quot;301&quot; filename=&quot;k2.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; text-align: start;&quot;&gt;3. Create New...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; text-align: start;&quot;&gt;Key Store 정보를 입력하고 생성을 완료한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;Key Store&amp;nbsp;path에 dwfox.jks가 생성 된것을 볼 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2768D64357BFAC2C15&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2768D64357BFAC2C15&quot; width=&quot;900&quot; height=&quot;480&quot; filename=&quot;k2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;password는&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; 6자리 이상 입력하여야 한다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;키저장소 password와 키 password는 다른것이다. (같은 비밀번호를 입력해도 되고 다르게 입력해도 상과없이 진행된다.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;생성후 &lt;b&gt;Key store password, Key password 를 &lt;/b&gt;입력하는 부분에 입력하게 된다.&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Android Stuido</category>
      <category>jks</category>
      <category>keystore</category>
      <category>생성</category>
      <category>안드로이드</category>
      <category>키스토어</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/40</guid>
      <comments>https://dwfox.tistory.com/40#entry40comment</comments>
      <pubDate>Fri, 26 Aug 2016 11:42:43 +0900</pubDate>
    </item>
    <item>
      <title>[Android] Bitmap 크기 조절 / 겹치기(합치기) / 잘라내기</title>
      <link>https://dwfox.tistory.com/37</link>
      <description>&lt;center&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(233, 233, 233); background-color: rgb(70, 115, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;[Android] Bitmap 크기 조절 / 겹치기(합치기) / 잘라내기&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;div&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(0, 0, 0);&quot;&gt;Android Bitmap resize, overlay, crop, scale&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://dwfox.tistory.com/27&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;[Android] Bitmap 회전, 좌우 / 상하 반전 적용하기 ( inverse, rotate ) 바로가기&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;Drawable을 Bitmap으로 가져오기&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding: 6px; border-right: 2px solid rgb(229, 229, 229); height: 62px;&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding: 6px 0px; height: 62px;&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;Bitmap&amp;nbsp;getOverlayBitmap(Context&amp;nbsp;context)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;return&lt;/span&gt;&amp;nbsp;BitmapFactory.decodeResource(context.getResources(),&amp;nbsp;R.drawable.dwfox);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align: bottom; padding: 0px 2px 4px 0px; height: 62px;&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Bitmap 이미지 크기 조절&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;가로길이를 200&lt;/b&gt;으로 맞춰 이미지 &lt;b&gt;크기를 조절&lt;/b&gt;해주기&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;Bitmap&amp;nbsp;resizeBitmap(Bitmap&amp;nbsp;original)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;resizeWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;200&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;double&lt;/span&gt;&amp;nbsp;aspectRatio&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#066de2&quot;&gt;double&lt;/span&gt;)&amp;nbsp;original.getHeight()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#066de2&quot;&gt;double&lt;/span&gt;)&amp;nbsp;original.getWidth();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;targetHeight&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;)&amp;nbsp;(resizeWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;*&lt;/span&gt;&amp;nbsp;aspectRatio);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;result&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;Bitmap.createScaledBitmap(original,&amp;nbsp;resizeWidth,&amp;nbsp;targetHeight,&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;false&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(result&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;original)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;original.recycle();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;return&lt;/span&gt;&amp;nbsp;result;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;span style=&quot;color: white; font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;cs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Bitmap 이미지 잘라내기&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;Bitmap&amp;nbsp;cropBitmap(Bitmap&amp;nbsp;original)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;result&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;Bitmap.createBitmap(original&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;original.getWidth()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;4&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//X&amp;nbsp;시작위치&amp;nbsp;(원본의&amp;nbsp;4/1지점)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;original.getHeight()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;4&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//Y&amp;nbsp;시작위치&amp;nbsp;(원본의&amp;nbsp;4/1지점)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;original.getWidth()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;2&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//&amp;nbsp;넓이&amp;nbsp;(원본의&amp;nbsp;절반&amp;nbsp;크기)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;original.getHeight()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;2&lt;/span&gt;);&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//&amp;nbsp;높이&amp;nbsp;(원본의&amp;nbsp;절반&amp;nbsp;크기)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(result&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;original)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;original.recycle();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;return&lt;/span&gt;&amp;nbsp;result;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;# 결과 화면&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;b style=&quot;white-space: normal; font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2168A84357B6921B3D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2168A84357B6921B3D&quot; width=&quot;900&quot; height=&quot;723&quot; filename=&quot;사본 -그림3.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;pre style=&quot;font-size: 13px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&lt;b style=&quot;font-family: &amp;quot;맑은 고딕&amp;quot;, sans-serif; white-space: normal; font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Bitmap 이미지 사이즈 줄이고 잘라서 겹치기(정사각형)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 10.5pt;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;7&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;8&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;9&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;10&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;11&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;12&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;13&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;14&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;15&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;16&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;17&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;18&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;19&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;20&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;21&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;22&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;23&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;24&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;25&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;26&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;27&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;28&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;29&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;30&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;31&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;32&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;33&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;34&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;35&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;36&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;37&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;38&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;39&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;40&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;41&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;42&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;43&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;44&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;45&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;46&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;47&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;48&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;49&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;50&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;51&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;52&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;53&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;54&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;55&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;56&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;57&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;58&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;59&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;60&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;61&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;public&lt;/span&gt;&amp;nbsp;Bitmap&amp;nbsp;overlayBitmap(Bitmap&amp;nbsp;original,&amp;nbsp;Context&amp;nbsp;context)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;double&lt;/span&gt;&amp;nbsp;aspectRatio&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#066de2&quot;&gt;double&lt;/span&gt;)&amp;nbsp;original.getHeight()&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#066de2&quot;&gt;double&lt;/span&gt;)&amp;nbsp;original.getWidth();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;MAX_LENGTH&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;120&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;targetWidth,&amp;nbsp;targetHeight;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;startW&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;0&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;&amp;nbsp;startH&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;0&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;originalResizeBmp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(aspectRatio&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;1&lt;/span&gt;)&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//세로가&amp;nbsp;긴&amp;nbsp;경우&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;MAX_LENGTH;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;targetHeight&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;)&amp;nbsp;(targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;*&lt;/span&gt;&amp;nbsp;aspectRatio);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startH&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(targetHeight&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;-&lt;/span&gt;&amp;nbsp;targetWidth)&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;2&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;else&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//가로가&amp;nbsp;긴&amp;nbsp;경우&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;targetHeight&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;MAX_LENGTH;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color:#066de2&quot;&gt;int&lt;/span&gt;)&amp;nbsp;(targetHeight&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;aspectRatio);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startW&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;(targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;-&lt;/span&gt;&amp;nbsp;targetHeight)&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;/&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;2&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//하단&amp;nbsp;비트맵&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;originalResizeBmp&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;Bitmap.createScaledBitmap(original,&amp;nbsp;targetWidth,&amp;nbsp;targetHeight,&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;false&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;originalResizeBmp&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;originalResizeBmp.createBitmap(originalResizeBmp,&amp;nbsp;startW,&amp;nbsp;startH&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;(targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;targetHeight&amp;nbsp;?&amp;nbsp;targetHeight&amp;nbsp;:&amp;nbsp;targetWidth)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;(targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;targetHeight&amp;nbsp;?&amp;nbsp;targetHeight&amp;nbsp;:&amp;nbsp;targetWidth));&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//상단&amp;nbsp;비트맵&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;overlayBmp&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;Bitmap.createScaledBitmap(getOverlayBitmap(context)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;(targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;targetHeight&amp;nbsp;?&amp;nbsp;targetHeight&amp;nbsp;:&amp;nbsp;targetWidth)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;(targetWidth&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;targetHeight&amp;nbsp;?&amp;nbsp;targetHeight&amp;nbsp;:&amp;nbsp;targetWidth)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;&lt;span style=&quot;color:#0099cc&quot;&gt;false&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//결과값&amp;nbsp;저장을&amp;nbsp;위한&amp;nbsp;Bitmap&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap&amp;nbsp;resultOverlayBmp&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;Bitmap.createBitmap(originalResizeBmp.getWidth()&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;originalResizeBmp.getHeight()&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;originalResizeBmp.getConfig());&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//상단&amp;nbsp;비트맵에&amp;nbsp;알파값을&amp;nbsp;적용하기&amp;nbsp;위한&amp;nbsp;Paint&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Paint&amp;nbsp;alphaPaint&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;Paint();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alphaPaint.setAlpha(&lt;span style=&quot;color:#0099cc&quot;&gt;125&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#999999&quot;&gt;//캔버스를&amp;nbsp;통해&amp;nbsp;비트맵을&amp;nbsp;겹치기한다.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Canvas&amp;nbsp;canvas&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;Canvas(resultOverlayBmp);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;canvas.drawBitmap(originalResizeBmp,&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;Matrix(),&amp;nbsp;&lt;span style=&quot;color:#066de2&quot;&gt;null&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;canvas.drawBitmap(overlayBmp,&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;new&lt;/span&gt;&amp;nbsp;Matrix(),&amp;nbsp;alphaPaint);&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(originalResizeBmp&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;original)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;original.recycle();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(originalResizeBmp&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;resultOverlayBmp)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;originalResizeBmp.recycle();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;if&lt;/span&gt;&amp;nbsp;(overlayBmp&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#a71d5d&quot;&gt;=&lt;/span&gt;&amp;nbsp;resultOverlayBmp)&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;overlayBmp.recycle();&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;return&lt;/span&gt;&amp;nbsp;resultOverlayBmp;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 10.5pt;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 10.5pt;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 10.5pt;&quot;&gt;# 결과화면&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 565px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/221A843E57B6922F38&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F221A843E57B6922F38&quot; width=&quot;565&quot; height=&quot;926&quot; filename=&quot;사본 -사본 -클립보드 이미지.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Bitmap</category>
      <category>Crop</category>
      <category>overlay</category>
      <category>Reszie</category>
      <category>Scale</category>
      <category>겹치기</category>
      <category>안드로이드</category>
      <category>잘라내기</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/37</guid>
      <comments>https://dwfox.tistory.com/37#entry37comment</comments>
      <pubDate>Thu, 18 Aug 2016 18:52:18 +0900</pubDate>
    </item>
    <item>
      <title>[Android Error] The number of method references in a .dex file cannot exceed 64K</title>
      <link>https://dwfox.tistory.com/35</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b style=&quot;font-size: 24px; line-height: 24px; color: rgb(5, 0, 153);&quot;&gt;The number of method references in a .dex file cannot exceed 64K&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 내용&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;프로젝트에 사용되는 메소드의 개수가 64K 이상이 되었을때 발생하는 에러이다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;안드로이드 개발자 사이트에서 해결책을 제공하고 있다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;solution&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://developer.android.com/studio/build/multidex.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;https://developer.android.com/studio/build/multidex.html&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Solution&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;1. build.gradle 아래와 같이 수정하여 빌드 한다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 굴림체; font-size: 9pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;android {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    compileSdkVersion &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;21&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255); font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;buildToolsVersion &lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&quot;21.1.0&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0); font-weight: bold; font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;defaultConfig {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;        ...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;        minSdkVersion &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;14&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255); font-size: 11pt;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;targetSdkVersion &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;21&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255); font-size: 11pt;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#808080;font-style:italic;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;// Enabling multidex support.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic; font-size: 11pt;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;multiDexEnabled &lt;/span&gt;&lt;span style=&quot;color:#000043;font-weight:bold;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;true&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 67); font-weight: bold; font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    ...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;dependencies {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    compile &lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;'com.android.support:multidex:1.0.0'&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;2.&amp;nbsp;Application을 확장하여 사용하는 경우는 Application을 MultiDexApplication으로 확장하여&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;아래와 같이 추가 하도록 한다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 굴림체; font-size: 9pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 128); font-weight: bold; font-size: 11pt;&quot;&gt;public class &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;GlobalApplication &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 128); font-weight: bold; font-size: 11pt;&quot;&gt;extends &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;MultiDexApplication {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#808000;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@Override&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128, 128, 0); font-size: 11pt;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 128); font-weight: bold; font-size: 11pt;&quot;&gt;protected void &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;attachBaseContext(Context base) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 128); font-weight: bold; font-size: 11pt;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.attachBaseContext(base);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;        MultiDex.&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-size: 11pt;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 128); font-weight: bold; font-size: 11pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;</description>
      <category>Error/Android</category>
      <category>Android</category>
      <category>Android Studio</category>
      <category>Application</category>
      <category>error</category>
      <category>MultiDex</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/35</guid>
      <comments>https://dwfox.tistory.com/35#entry35comment</comments>
      <pubDate>Wed, 17 Aug 2016 01:26:08 +0900</pubDate>
    </item>
    <item>
      <title>[Android] 이미지 라이브러리 Picasso 사용하기 ( Using the image loader library Picasso)</title>
      <link>https://dwfox.tistory.com/33</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;[Android]&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;b style=&quot;font-size: 24px; line-height: 24px; color: rgb(5, 0, 153);&quot;&gt;이미지 로드 라이브러리 Picasso 사용하기 - ( # Transform )&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;image loader library Picasso tutorial&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 이미지 로드 라이브러리란?&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;JAVA에서 네트워크에서 이미지를 가져오려면 네트워크 관련 소스를 이용하여 받아와야 한다. 그리고&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;이미지 캐싱, 로드 실패시 처리, 가져온 이미지 프로세싱 등등의 작업을&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;이미지 로드 라이브러리를 통하여 해결할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;이외의 다양한 이미지 로드 라이브러리에 대한 정보는 아래에 자세히 정리가 되어있다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;▷ &lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;a href=&quot;http://d2.naver.com/helloworld/429368&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://d2.naver.com/helloworld/429368&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Picasso 라이브러리 추가하기&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;1. Picasso 다운로드 페이지&amp;nbsp;-&lt;/span&gt;&lt;a href=&quot;http://square.github.io/picasso/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&amp;nbsp;http://square.github.io/picasso/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;▷ Picasso jar 직링크 -&amp;nbsp;&lt;a href=&quot;http://repo1.maven.org/maven2/com/squareup/picasso/picasso/2.5.2/picasso-2.5.2.jar&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://repo1.maven.org/maven2/com/squareup/picasso/picasso/2.5.2/picasso-2.5.2.jar&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;2. &lt;b&gt;Android Studio&lt;/b&gt;에 &lt;b&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;Picasso&amp;nbsp;&lt;/span&gt;&lt;/b&gt;라이브러리 추가하기&amp;nbsp;이전 포스트 참고&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://dwfox.tistory.com/31&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;▷&amp;nbsp;&lt;/a&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;a href=&quot;http://dwfox.tistory.com/31&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&amp;nbsp;http://dwfox.tistory.com/31&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Picasso Android 사용 방법&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;1. Internet Permission&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;인터넷에 대한 권한을 Manifest파일에 추가하여 네트워크에 접근 가능하도록 한다.&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;xml version=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;1.0&quot; &lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;encoding=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&amp;lt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;manifest &lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;xmlns:&lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;package=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;com.tistory.dwfoxpicassoexample&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(178, 235, 244);&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 128); background-color: rgb(178, 235, 244);&quot;&gt;uses-permission &lt;/span&gt;&lt;span style=&quot;color: rgb(102, 14, 122); background-color: rgb(178, 235, 244);&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255); background-color: rgb(178, 235, 244);&quot;&gt;:name=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0); background-color: rgb(178, 235, 244);&quot;&gt;&quot;android.permission.INTERNET&quot; &lt;/span&gt;&lt;span style=&quot;background-color: rgb(178, 235, 244);&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;application&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:allowBackup=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;true&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:icon=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;@mipmap/ic_launcher&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:label=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;@string/app_name&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:supportsRtl=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;true&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:theme=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;@style/AppTheme&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;activity &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:name=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;.MainActivity&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;intent-filter&lt;/span&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;action &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:name=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;android.intent.action.MAIN&quot; &lt;/span&gt;/&amp;gt;&lt;br /&gt;&lt;br /&gt;                &amp;lt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;category &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-weight:bold;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#0000ff;font-weight:bold;&quot;&gt;:name=&lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;android.intent.category.LAUNCHER&quot; &lt;/span&gt;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;intent-filter&lt;/span&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;activity&lt;/span&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;application&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;manifest&lt;/span&gt;&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;2.. Picasso 기본 사용&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;layout의 ImageView를 추가 하거나 소스상에서 ImageView 를 생성하여 Picasso를 적용하도록 한다.&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;ImageView picassoImageView = (ImageView) findViewById(R.id.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;picassoImageView&lt;/span&gt;);&lt;br /&gt;Picasso.&lt;span style=&quot;font-style:italic;&quot;&gt;with&lt;/span&gt;(&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;this&lt;/span&gt;)&lt;br /&gt;        .load(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;https://www.google.co.kr/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png&quot;&lt;/span&gt;)&lt;br /&gt;        .into(picassoImageView);&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;기본적으로 구글의 로고 이미지 주소를 가져오도록 해본다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 200px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2352B23D5796ECB020&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2352B23D5796ECB020&quot; width=&quot;200&quot; height=&quot;353&quot; filename=&quot;test1.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;위와 같이 이미지 별다는 네트워크 소스 없이 &amp;nbsp;ImageView에서 네트워크상의 이미지를 가져온다.&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Picasso 기본이미지 설정&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;이미지 로드전 또는 로드에 실패하면&amp;nbsp;별도의 이미지를 지정하여 ImageView에 나오도록 지정할 수 있다.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;placeholder&lt;/span&gt;를 &lt;/b&gt;추가하여 아래와 같이 지정된 이미지를 넣어 두도록 한다.&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;Picasso.&lt;span style=&quot;font-style:italic;&quot;&gt;with&lt;/span&gt;(&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;this&lt;/span&gt;)&lt;br /&gt;        .load(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;https://dwfox.tistory.com&quot;&lt;/span&gt;)&lt;br /&gt;        &lt;span style=&quot;background-color: rgb(212, 244, 250);&quot;&gt;.placeholder(R.drawable.&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 14, 122); font-weight: bold; font-style: italic; background-color: rgb(212, 244, 250);&quot;&gt;dwfox&lt;/span&gt;&lt;span style=&quot;background-color: rgb(212, 244, 250);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;        .into(picassoImageView);&lt;/pre&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 200px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/257CA7435796EF7B35&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F257CA7435796EF7B35&quot; width=&quot;200&quot; height=&quot;345&quot; filename=&quot;test2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Picasso 기본이미지 크기 조절 (Resize)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;이미지 로드전 또는 로드에 실패하면&amp;nbsp;별도의 이미지를 지정하여 ImageView에 나오도록 지정할 수 있다.&lt;/p&gt;&lt;p&gt;큰 이미지를 그대로 로드 하면 OutOfMemory를 발생시킬 수 있으므로 필요한 사이즈로 리사이즈하여 사용하도록 한다.&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;Picasso.&lt;span style=&quot;font-style:italic;&quot;&gt;with&lt;/span&gt;(&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;this&lt;/span&gt;)&lt;br /&gt;        .load(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;https://www.google.co.kr/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png&quot;&lt;/span&gt;)&lt;br /&gt;        .placeholder(R.drawable.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;dwfox&lt;/span&gt;)&lt;br /&gt;        .resize(&lt;span style=&quot;color:#0000ff;&quot;&gt;50&lt;/span&gt;,&lt;span style=&quot;color:#0000ff;&quot;&gt;50&lt;/span&gt;)&lt;br /&gt;        .into(picassoImageView);&lt;/pre&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 200px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/232A5D435796F09511&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F232A5D435796F09511&quot; width=&quot;200&quot; height=&quot;344&quot; filename=&quot;test3.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;이미지 사이즈가 직사각형에서 50,50 의 정사각형으로 리사이즈 되어 이미지가 늘어났다.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;또한, 272x92 사이즈를 50x50의 사이즈로 줄여 이미지의 계단현상이 눈으로 볼 수 있을 정도록 발생하였다.&lt;/p&gt;&lt;p&gt;이미지 크기를 ImageView 크기에 맞게 적절하게 수정하도록 한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Picasso Transformation을 이용한&amp;nbsp;크기 조절 (Resize)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;기본 Resize시 비율과 상광없이 resize를 하게 되므로 비율에 따른 이미지를 resize할 수 없는데&lt;/p&gt;&lt;p&gt;transformation을 이용하여 reszie를 직접 하도록 하면 비율에 다라 조절 할 수 있다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. 아래의 PicassoTransformations를 추가한다.&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;public class &lt;/span&gt;PicassoTransformations {&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;public static int &lt;/span&gt;&lt;span style=&quot;color:#660e7a;font-style:italic;&quot;&gt;targetWidth &lt;/span&gt;= &lt;span style=&quot;color:#0000ff;&quot;&gt;200&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;public static &lt;/span&gt;Transformation &lt;span style=&quot;color:#660e7a;font-style:italic;&quot;&gt;resizeTransformation &lt;/span&gt;= &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;new &lt;/span&gt;Transformation() {&lt;br /&gt;        &lt;span style=&quot;color:#808000;&quot;&gt;@Override&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#808000;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;public &lt;/span&gt;Bitmap transform(Bitmap source) {&lt;br /&gt;            &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;double &lt;/span&gt;aspectRatio = (&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;double&lt;/span&gt;) source.getHeight() / (&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;double&lt;/span&gt;) source.getWidth();&lt;br /&gt;            &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;int &lt;/span&gt;targetHeight = (&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;int&lt;/span&gt;) (&lt;span style=&quot;color:#660e7a;font-style:italic;&quot;&gt;targetWidth &lt;/span&gt;* aspectRatio);&lt;br /&gt;            Bitmap result = Bitmap.&lt;span style=&quot;font-style:italic;&quot;&gt;createScaledBitmap&lt;/span&gt;(source, &lt;span style=&quot;color:#660e7a;font-style:italic;&quot;&gt;targetWidth&lt;/span&gt;, targetHeight, &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;false&lt;/span&gt;);&lt;br /&gt;            &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;if &lt;/span&gt;(result != source) {&lt;br /&gt;                source.recycle();&lt;br /&gt;            }&lt;br /&gt;            &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;return &lt;/span&gt;result;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span style=&quot;color:#808000;&quot;&gt;@Override&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#808000;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;public &lt;/span&gt;String key() {&lt;br /&gt;            &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;resizeTransformation#&quot; &lt;/span&gt;+ System.&lt;span style=&quot;font-style:italic;&quot;&gt;currentTimeMillis&lt;/span&gt;();&lt;br /&gt;        }&lt;br /&gt;    };&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;2. 기본 resize 대신 아래와 같이 Transformation을 이용하여 Resize를 하도록 한다.&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p&gt;&lt;span style=&quot;white-space: normal; font-size: 10.5pt;&quot;&gt;PicassoTransformations.&lt;/span&gt;&lt;span style=&quot;white-space: normal; font-size: 10.5pt; color: rgb(102, 14, 122); font-style: italic;&quot;&gt;targetWidth&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;white-space: normal; font-size: 10.5pt;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;white-space: normal; font-size: 10.5pt; color: rgb(0, 0, 255);&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;white-space: normal; font-size: 10.5pt;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Picasso.&lt;span style=&quot;font-style: italic;&quot;&gt;with&lt;/span&gt;(&lt;span style=&quot;color: rgb(0, 0, 128); font-weight: bold;&quot;&gt;this&lt;/span&gt;)&lt;br /&gt;        .load(&lt;span style=&quot;color: rgb(0, 128, 0); font-weight: bold;&quot;&gt;&quot;https://www.google.co.kr/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png&quot;&lt;/span&gt;)&lt;br /&gt;        .placeholder(R.drawable.&lt;span style=&quot;color: rgb(102, 14, 122); font-weight: bold; font-style: italic;&quot;&gt;dwfox&lt;/span&gt;)&lt;br /&gt;        &lt;span style=&quot;font-size: 10.5pt;&quot;&gt;.transform(&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; background-color: rgb(228, 228, 255);&quot;&gt;PicassoTransformations&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; color: rgb(102, 14, 122); font-style: italic;&quot;&gt;resizeTransformation&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;        .into(picassoImageView);&lt;/p&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 200px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2341B3425796FDBA1E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2341B3425796FDBA1E&quot; width=&quot;200&quot; height=&quot;344&quot; filename=&quot;test4.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;이미지의 계단현상이 발생할 정도로 이미지가 줄었지만 비율은 유지하는 것을 볼 수 있다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Picasso 이미지 캐싱과 저장 정책 설정&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;기본 이미지 라이브러리는 이미지 캐싱과 저장의 이점으로 사용하게 되는&amp;nbsp;&lt;/p&gt;&lt;p&gt;특별하게 이미지 캐싱과 저장을 하지 않아야 하는 경우 아래와 같은 옵션으로 저장과 캐싱을 방지 할 수 있다.&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;Picasso.&lt;span style=&quot;font-style:italic;&quot;&gt;with&lt;/span&gt;(&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;this&lt;/span&gt;)&lt;br /&gt;        .load(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;https://www.google.co.kr/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png&quot;&lt;/span&gt;)&lt;br /&gt;        .placeholder(R.drawable.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;dwfox&lt;/span&gt;)&lt;br /&gt;        .memoryPolicy(MemoryPolicy.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;NO_CACHE&lt;/span&gt;, MemoryPolicy.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;NO_STORE&lt;/span&gt;)&lt;br /&gt;        .networkPolicy(NetworkPolicy.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;NO_CACHE&lt;/span&gt;, NetworkPolicy.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;NO_STORE&lt;/span&gt;)&lt;br /&gt;        .resize(&lt;span style=&quot;color:#0000ff;&quot;&gt;50&lt;/span&gt;, &lt;span style=&quot;color:#0000ff;&quot;&gt;50&lt;/span&gt;)&lt;br /&gt;        .into(picassoImageView);&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>ImageLoader</category>
      <category>library</category>
      <category>Picasso</category>
      <category>resize</category>
      <category>Transform</category>
      <category>안드로이드</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/33</guid>
      <comments>https://dwfox.tistory.com/33#entry33comment</comments>
      <pubDate>Tue, 26 Jul 2016 14:11:26 +0900</pubDate>
    </item>
    <item>
      <title>[Android Stuido] Android Studio Library Import ( 라이브러리 추가 ) 방법</title>
      <link>https://dwfox.tistory.com/31</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;Android Studio jar / aar&amp;nbsp;Library Import ( 라이브러리 추가 ) 방법&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;라이브러리 프로젝트, .jar파일&amp;nbsp;라이브러리 추가하기&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;b&gt;※ Picasso 추가하는 방법으로 작성( Image Loader Library )&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; jar 라이브러리 추가하기 - build.gradle&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;1. Picasso jar 다운로드 페이지&amp;nbsp;-&lt;a href=&quot;http://square.github.io/picasso/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&amp;nbsp;http://square.github.io/picasso/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;▷ Picasso jar 직링크 -&amp;nbsp;&lt;a href=&quot;http://repo1.maven.org/maven2/com/squareup/picasso/picasso/2.5.2/picasso-2.5.2.jar&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://repo1.maven.org/maven2/com/squareup/picasso/picasso/2.5.2/picasso-2.5.2.jar&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;2. Picasso jar 프로젝트에&amp;nbsp;추가&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&amp;nbsp; &amp;nbsp;- Project 텝으로 이동하여 &amp;nbsp;app-libs에 jar 파일을 복사한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 787px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/23543050576770C805&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F23543050576770C805&quot; width=&quot;787&quot; height=&quot;516&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;3. Android&amp;nbsp;텝으로 이동하여 &amp;nbsp;build.gradle (앱 빌드)를 선택하여 jar파일에 대한 컴파일 옵션을 아래와 같이 추가한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 364px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2544F250576770C916&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2544F250576770C916&quot; width=&quot;364&quot; height=&quot;214&quot; filename=&quot;3.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;4. build.gradle 수정&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;colorscripter-code&quot; style=&quot;color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto&quot;&gt;&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;padding:6px; border-right:2px solid #e5e5e5&quot;&gt;&lt;div style=&quot;margin:0; padding:0; word-break:normal; text-align:right; color:#666; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;line-height:130%&quot;&gt;1&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;2&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;3&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;4&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;5&lt;/div&gt;&lt;div style=&quot;line-height:130%&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding:6px 0&quot;&gt;&lt;div style=&quot;margin:0; padding:0; color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height:130%&quot;&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;dependencies&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;fileTree(dir:&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;'libs'&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color:#a71d5d&quot;&gt;include&lt;/span&gt;:&amp;nbsp;[&lt;span style=&quot;color:#63a35c&quot;&gt;'*.jar'&lt;/span&gt;])&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;testCompile&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;'junit:junit:4.12'&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;&lt;span style=&quot;color:#63a35c&quot;&gt;'com.android.support:appcompat-v7:23.1.1'&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compile&amp;nbsp;files(&lt;span style=&quot;color:#63a35c&quot;&gt;'libs/picasso-2.5.2.jar'&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;padding:0 6px; white-space:pre; line-height:130%&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: rgb(229, 229, 229);&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:bottom; padding:0 2px 4px 0&quot;&gt;&lt;a href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; style=&quot;color: white;&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&amp;nbsp; &amp;nbsp;※&amp;nbsp;&lt;b&gt;compile files &lt;/b&gt;괄호 안&amp;nbsp;처럼 프로젝트내 라이브러리 위치를 지정하고 compile files 옵션을 주도록 한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&amp;nbsp; &amp;nbsp;- 빌드 후 Picasso를 적용한 코드&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;Picasso.&lt;span style=&quot;font-style:italic;&quot;&gt;with&lt;/span&gt;(&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;this&lt;/span&gt;)&lt;br /&gt;        .load(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;http://square.github.io/picasso/static/sample.png&quot;&lt;/span&gt;)&lt;br /&gt;        .into((ImageView)findViewById(R.id.&lt;span style=&quot;color:#660e7a;font-weight:bold;font-style:italic;&quot;&gt;img_picasso&lt;/span&gt;));&lt;/pre&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 10.5pt; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p&gt;위 코드가 문제가 없이 실행 된다면 라이브러리가 성공적으로 추가된것&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; jar / aar&amp;nbsp;라이브러리 추가하기 - Module&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;1. .jar와 .aar 형식의 라이브러리 파일 모두 모듈로 추가하여 사용할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;2. Project Structure에서&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 263px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/232AEC4C57690AAD2E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F232AEC4C57690AAD2E&quot; width=&quot;263&quot; height=&quot;493&quot; filename=&quot;4.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; text-align: start;&quot;&gt;3. Project Structure에서 왼쪽 초록색 &amp;nbsp;+ 버튼을 눌러 모듈을 추가한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 822px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2547324C57690AAD14&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2547324C57690AAD14&quot; width=&quot;822&quot; height=&quot;705&quot; filename=&quot;5.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; text-align: start;&quot;&gt;4. 새 모듈의 형식을 선택하는 곳이 나온는데 &amp;nbsp;import .JAR/.AAR Package를 선택한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2751584C57690AAE0A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2751584C57690AAE0A&quot; width=&quot;900&quot; height=&quot;615&quot; filename=&quot;6.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;5. jar/aar 파일을 선택하고 Subproject name은 원하는데로 수정해도 된다.(모듈 이름)&lt;/span&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2226A04C57690AAF32&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2226A04C57690AAF32&quot; width=&quot;900&quot; height=&quot;615&quot; filename=&quot;7.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: left; font-size: 14.6667px; line-height: 24px;&quot;&gt;6. 위 작업이 끝나면 Modules에 app 말고 추가한 모듈이 보인다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;text-align: left; font-size: 14.6667px; line-height: 24px;&quot;&gt;Module의 app을 선택하고&amp;nbsp;Dependencies텝을 누르고 오른쪽 초록색 플러스 버튼을 눌러 Library dependency를 클릭하여 app에 &amp;nbsp;추가된 라이브러리 모듈을 연결한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2154D84C57690AAF06&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2154D84C57690AAF06&quot; width=&quot;900&quot; height=&quot;678&quot; filename=&quot;8.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;7. 위작업이 모두 끝나면 아래와 같이 picasso-2.5.2의 추가 모듈이 생성된 것을 볼 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 874px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/262E464C57690AB02D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F262E464C57690AB02D&quot; width=&quot;874&quot; height=&quot;724&quot; filename=&quot;9.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Android Studio</category>
      <category>import</category>
      <category>jar</category>
      <category>library</category>
      <category>Picasso</category>
      <category>안드로이드</category>
      <category>추가</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/31</guid>
      <comments>https://dwfox.tistory.com/31#entry31comment</comments>
      <pubDate>Tue, 21 Jun 2016 13:45:21 +0900</pubDate>
    </item>
    <item>
      <title>[Android] ViewTreeObserver - 뷰의 위치(높이,넓이) 구하기, 레이아웃 그려지는 시점 알아내기</title>
      <link>https://dwfox.tistory.com/30</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;ViewTreeObserve&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;b&gt;뷰의 위치(높이, &amp;nbsp;넓이)&amp;nbsp;구하기, 레이아웃 그려지는 시점 알아내기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(93, 93, 93);&quot;&gt;# 뷰가 그려지지 않을때 혹은 / 뷰의 높이가 0일때 참고&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; ViewTreeObserve 란&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;ViewTreeObserve&amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://developer.android.com/intl/ko/reference/android/view/ViewTreeObserver.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;http://developer.android.com/intl/ko/reference/android/view/ViewTreeObserver.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;뷰 트리 관찰자가 View 트리에서 글로벌 변경 알림을 받을 수 있는&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;리스너를 등록 하는데 사용 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;이름에서 알 수 있듯 뷰트리에 대한 옵저버 역할을 하게 된다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;View가 생성되기 전에 View의 위치나 크기를 구하려고 하면 아직 View의 위치가 실제로 화면에 변경되기 전에 값을 가져오므로 0이나 Null값을 가져오게 될것이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;그래서 ViewTreeObserve를 이용하여 리스너를 등록하고 리스너를 통해 뷰의 크기나 위치를 가져오는 시점으로 사용하면 값을 가져올 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;ViewTreeObserve 가져오기&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;getViewTreeObserve&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;getViewTreeObserve &amp;nbsp;-&amp;nbsp;&lt;a href=&quot;http://developer.android.com/intl/ko/reference/android/view/View.html#getViewTreeObserver()&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://developer.android.com/intl/ko/reference/android/view/View.html#getViewTreeObserver()&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;최상위 클래스인&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;View 클래스에서&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;getViewTreeObserve()를 통하여 ViewTreeObserve를 가져온다.&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView &lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;ImageView&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;)&lt;/span&gt;findViewById&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;R.id&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(5, 49, 77); font-weight: bold;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;ViewTreeObserver &lt;/span&gt;viewTreeObserver &lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getViewTreeObserver&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;가져온 ViewTreeObserve에 3가지 리스너를 등록시킬 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;ViewTreeObserve 리스너 등록&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;ViewTreeObserve는 ViewTree의 높이를 구하기 좋은 2가지의&amp;nbsp;상태에 대해 리스너를 추가 시킬 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;addOnGlobalFocusChangeListener&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;addOnGlobalLayoutListener&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;위와 같이 리스너를 등록하고 지속적인 프레임의 변화를 감지하는 작업이 아닌 뷰가 생성되고 한번정도 값을 가져오는 작업이라면&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;반드시 리스너를 리무브 해줘 호출을 받아오지 않도록 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&lt;span style=&quot;color: rgb(63, 127, 95);&quot;&gt;// ViewTree&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;의 포커스 변경이 있을 경우&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getViewTreeObserver&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;addOnGlobalFocusChangeListener&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;ViewTreeObserver.OnGlobalFocusChangeListener&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;() {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(127, 159, 191); font-weight: bold;&quot;&gt;@Override&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 159, 191); font-weight: bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;public void &lt;/span&gt;&lt;span style=&quot;color: rgb(23, 5, 145);&quot;&gt;onGlobalFocusChanged&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;View &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102); font-style: italic;&quot;&gt;oldFocus&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;View &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102); font-style: italic;&quot;&gt;newFocus&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;필요한 작업&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;리스너 해제&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getViewTreeObserver&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;removeOnGlobalFocusChangeListener&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;})&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95);&quot;&gt;// ViewTree&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;의 뷰가 그려질 때마다&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getViewTreeObserver&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;addOnGlobalLayoutListener&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;ViewTreeObserver.OnGlobalLayoutListener&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;() {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(127, 159, 191); font-weight: bold;&quot;&gt;@Override&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 159, 191); font-weight: bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;public void &lt;/span&gt;&lt;span style=&quot;color: rgb(23, 5, 145);&quot;&gt;onGlobalLayout&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;() {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;뷰의 생성된 후 크기와 위치 구하기&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getWidth&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getHeight&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getX&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getY&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;리스너 해제&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-family: 굴림체;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(86, 104, 116);&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;getViewTreeObserver&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;removeOnGlobalLayoutListener&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;})&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 51);&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;ViewTreeObserve의 유용한 리스너&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;680&quot; style=&quot;border-collapse:
 collapse;width:510pt&quot;&gt;
 &lt;colgroup&gt;&lt;col width=&quot;72&quot; style=&quot;mso-width-source:userset;mso-width-alt:2304;width:54pt&quot;&gt;
 &lt;col width=&quot;367&quot; style=&quot;mso-width-source:userset;mso-width-alt:11744;width:275pt&quot;&gt;
 &lt;col width=&quot;241&quot; style=&quot;mso-width-source:userset;mso-width-alt:7712;width:181pt&quot;&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;&lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl65&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl66&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnDrawListener.html&quot;&gt;ViewTreeObserver.OnDrawListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl67&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;&lt;font class=&quot;font7&quot;&gt;뷰를&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;그릴&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;때&lt;/font&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl68&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl69&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnGlobalFocusChangeListener.html&quot;&gt;ViewTreeObserver.OnGlobalFocusChangeListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl70&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;&lt;font class=&quot;font7&quot;&gt;전체&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;뷰의&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;포커스가&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;바뀔&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;때&lt;/font&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl68&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl69&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnGlobalLayoutListener.html&quot;&gt;ViewTreeObserver.OnGlobalLayoutListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl71&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;전체 뷰가 그려질 때&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl68&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl69&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnPreDrawListener.html&quot;&gt;ViewTreeObserver.OnPreDrawListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl71&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;뷰가 그려지기 전&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl68&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl69&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnScrollChangedListener.html&quot;&gt;ViewTreeObserver.OnScrollChangedListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl70&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;&lt;font class=&quot;font7&quot;&gt;스크로&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;상태의&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;변경시&lt;/font&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl68&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl69&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnTouchModeChangeListener.html&quot;&gt;ViewTreeObserver.OnTouchModeChangeListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl70&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;&lt;font class=&quot;font7&quot;&gt;터치&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;모드&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;변경시&lt;/font&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl68&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl69&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnWindowAttachListener.html&quot;&gt;ViewTreeObserver.OnWindowAttachListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl70&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;&lt;font class=&quot;font7&quot;&gt;뷰의&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;계층구조에&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;붙을&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;때와&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;떨어져&lt;/font&gt;&lt;font class=&quot;font5&quot;&gt; &lt;/font&gt;&lt;font class=&quot;font7&quot;&gt;나갈때&lt;/font&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr height=&quot;23&quot; style=&quot;height:17.25pt&quot;&gt;
  &lt;td height=&quot;23&quot; class=&quot;xl68&quot; width=&quot;72&quot; style=&quot;height:17.25pt;width:54pt&quot;&gt;&lt;span&gt;interface&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl69&quot; width=&quot;367&quot; style=&quot;width:275pt&quot;&gt;&lt;span&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/ViewTreeObserver.OnWindowFocusChangeListener.html&quot;&gt;ViewTreeObserver.OnWindowFocusChangeListener&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl71&quot; width=&quot;241&quot; style=&quot;width:181pt&quot;&gt;윈도우 포커스 변경시&lt;/td&gt;
 &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/30</guid>
      <comments>https://dwfox.tistory.com/30#entry30comment</comments>
      <pubDate>Mon, 11 Apr 2016 17:08:39 +0900</pubDate>
    </item>
    <item>
      <title>[FacebookSDK] 앱 설정 안됨</title>
      <link>https://dwfox.tistory.com/28</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;center&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot; style=&quot;text-align: start;&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;앱 설정 안됨&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;This app is Still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 내용&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;Facebook 개발자에서 앱설정이 개발모드로 되어있어 개발자가 허용한 계정외엔 접근할 수 없어 로그인 실패가 되는 경우&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;b&gt;( ※ 만약 개발자가 아닌 사용자가 저 메세지가 뜬다면 해당 앱 개발자에게 문의 해보세요&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 해결&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;1. Contact Email 설정하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start; margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;Setting -&amp;gt; Basic -&amp;gt; Contact Email 을 채우고 저장한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start; margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px; color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;※ Contact Email을 입력하지 않을 경우 2단계의 in App Review 탭에서 앱을 General Public으로 바꿀 수 없다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start; margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start; margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; margin-left: 2em; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2343AF3656F8DCE522&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2343AF3656F8DCE522&quot; width=&quot;900&quot; height=&quot;702&quot; filename=&quot;1.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: start; margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/center&gt;&lt;p style=&quot;margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 36, 38); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;2. App을 General Public으로 바꾸기&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;App Review -&amp;gt; Make [appname] public? Yes로 바꾸기&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 36, 38); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px; border: 0px; font-size: 15px; clear: none; color: rgb(34, 36, 38); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; text-align: center; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2228F03356F8DCF827&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2228F03356F8DCF827&quot; width=&quot;900&quot; height=&quot;649&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 36, 38); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 36, 38); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; ※ 바뀐페이지&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2255244457A97A8511&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2255244457A97A8511&quot; width=&quot;900&quot; height=&quot;732&quot; filename=&quot;그림1.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;위와 같은 방법으로 해결되지 않는다면&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;안되는 상황을 댓그로 남겨주시면 아는대로 답변드리겠습니다.&lt;/p&gt;</description>
      <category>Error/FacdbookSDK</category>
      <category>Android</category>
      <category>facebook</category>
      <category>sdk</category>
      <category>설정</category>
      <category>안됨</category>
      <category>앱</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/28</guid>
      <comments>https://dwfox.tistory.com/28#entry28comment</comments>
      <pubDate>Mon, 28 Mar 2016 16:28:24 +0900</pubDate>
    </item>
    <item>
      <title>[Android] Bitmap 회전, 좌우 / 상하 반전 적용하기 ( inverse, rotate )</title>
      <link>https://dwfox.tistory.com/27</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot; style=&quot;text-align: start;&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;[Android] Bitmap 회전, 좌우 / 상하 반전 적용하기 ( inverse, rotate )&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;b&gt;#&amp;nbsp;&lt;a href=&quot;http://dwfox.tistory.com/37&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;[Android] Bitmap 크기 조절 / 겹치기 / 잘라내기 바로가기&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 구현 예제&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/4qXa9zij1yg&quot; width=&quot;420&quot; height=&quot;315&quot; frameborder=&quot;&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;div style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Matrix를 이용한 Bitmap 변형&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;Bitmap을 생성할때 matrix에 속성을 넣어 생성하면 Matrix에 따른 옵션을 변경 할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;회전, 반전, 이동, 크기변경 등 여러가지 속성을 가지고 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Bitmap 상하 / 좌우 반전하기&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-size: 11.3pt;&quot;&gt;&lt;p style=&quot;font-family: 'Source Code Pro';&quot;&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Matrix &lt;/span&gt;sideInversion &lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;new &lt;/span&gt;Matrix&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;sideInversion&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setScale&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, -&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;  &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;&quot;&gt;// 상하반전&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px;&quot;&gt;sideInversion&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px;&quot;&gt;setScale&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(0, 0, 102);&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(51, 51, 51); font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(51, 51, 51);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(51, 51, 51); font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(0, 0, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(51, 51, 51);&quot;&gt;;  &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; font-size: 15.0667px; line-height: 22.6px; color: rgb(63, 127, 95);&quot;&gt;// 좌우반전&lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95);&quot;&gt;&lt;font face=&quot;Source Code Pro&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;Bitmap &lt;/span&gt;&lt;font face=&quot;Source Code Pro&quot;&gt;sideInversionImg &lt;/font&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(62, 126, 255); font-weight: bold;&quot;&gt;Bitmap&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(127, 159, 191); font-weight: bold;&quot;&gt;createBitmap&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(0, 0, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(0, 0, 102); font-style: italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51); font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51); font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(0, 0, 102); font-style: italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;&lt;font face=&quot;Source Code Pro&quot;&gt;getWidth&lt;/font&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(0, 0, 102); font-style: italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;.&lt;/span&gt;&lt;font face=&quot;Source Code Pro&quot;&gt;getHeight&lt;/font&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(0, 0, 102);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;, &lt;/span&gt;&lt;font face=&quot;Source Code Pro&quot;&gt;sideInversion&lt;/font&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(127, 0, 85); font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(0, 0, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: 'Source Code Pro'; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Activity 회전 Rotate&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&lt;p&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Matrix &lt;/span&gt;rotateMatrix &lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;new &lt;/span&gt;Matrix&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;font color=&quot;#333333&quot;&gt;&lt;b&gt;회전할 각도&lt;/b&gt;&lt;/font&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: rgb(63, 127, 95); font-size: 11.3pt; line-height: 1.5;&quot;&gt;//-360~360&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;sideInversionImg &lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;createBitmap&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;getWidth&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;getHeight&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Activity 전체 소스 ( &lt;/b&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;BitmapRotateActivity.java &lt;/span&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;package &lt;/span&gt;com&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;tistory&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;dwfox&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;dwfoxtest&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.app.Activity&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.graphics.Bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.graphics.BitmapFactory&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.graphics.Matrix&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.util.Log&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.view.View&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;android.widget.ImageView&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#395da1;&quot;&gt;/**&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#395da1;&quot;&gt; * Created by Administrator on 2016-03-22.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#395da1;&quot;&gt; */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;public class &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;BitmapRotateActivity &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;extends &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Activity &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;implements &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;View.OnClickListener&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;private &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;ImageView &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;private int &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;invertIndex &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;private int &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;bitmap &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;@Override&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;protected void &lt;/span&gt;&lt;span style=&quot;color:#170591;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bundle &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;savedInstanceState&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;onCreate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;savedInstanceState&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;setContentView&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.layout&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;bitmap_rotate_activity&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;imageView &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;ImageView&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;findViewById&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.id&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;bitmap &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;bitmap &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;BitmapFactory&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;decodeResource&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;getResources&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.drawable&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setImageBitmap&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;findViewById&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.id&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;invertion_button&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setOnClickListener&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;findViewById&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.id&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;rotate_button&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setOnClickListener&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;public &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;&lt;span style=&quot;color:#170591;&quot;&gt;InversionBitmap&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;int &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;inverse&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Matrix &lt;/span&gt;sideInversion &lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;new &lt;/span&gt;Matrix&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;inverse &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;sideInversion&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setScale&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;&quot;&gt;// &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;원본&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;inverse &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;sideInversion&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setScale&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;  &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;&quot;&gt;// &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;좌우반전&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;inverse &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;sideInversion&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setScale&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;&quot;&gt;// &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;원본&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;            &lt;/span&gt;sideInversion&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setScale&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, -&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;  &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;&quot;&gt;// &lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;상하반전&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#3f7f5f;font-family:'굴림체';&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;sideInversionImg &lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;createBitmap&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;getWidth&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;getHeight&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;sideInversion&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;return &lt;/span&gt;sideInversionImg&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;public &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;&lt;span style=&quot;color:#170591;&quot;&gt;rotateBitmap&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;int &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;){&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Log&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;TEST&quot;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;ROTATE : &quot; &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;+ &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Matrix &lt;/span&gt;rotateMatrix &lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;new &lt;/span&gt;Matrix&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;45&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;90&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;135&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;180&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;225&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;270&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;else&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;            &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;postRotate&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;315&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap &lt;/span&gt;sideInversionImg &lt;span style=&quot;color:#333333;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;Bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;createBitmap&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;getWidth&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;getHeight&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;rotateMatrix&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;return &lt;/span&gt;sideInversionImg&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;@Override&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f9fbf;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;public void &lt;/span&gt;&lt;span style=&quot;color:#170591;&quot;&gt;onClick&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;View &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;switch &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;getId&lt;span style=&quot;color:#000066;&quot;&gt;()){&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;case &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.id&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;invertion_button&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;invertIndex&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;++;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;invertIndex &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;invertIndex &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setImageBitmap&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;InversionBitmap&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;invertIndex &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;% &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;case &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.id&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;rotate_button&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;rotate&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;++;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;imageView&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;setImageBitmap&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;rotateBitmap&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;bitmap&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#566874;&quot;&gt;rotate &lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;% &lt;/span&gt;&lt;span style=&quot;color:#333333;font-weight:bold;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Layout&amp;nbsp;전체 소스 (&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;bitmap_rotate_activity.xml&lt;b&gt; )&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&amp;lt;?&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;xml version=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;1.0&quot; &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;encoding=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;?&amp;gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;RelativeLayout &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;xmlns:&lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;xmlns:&lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;tools&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;http://schemas.android.com/tools&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_width=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;match_parent&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_height=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;match_parent&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;tools&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:context=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;.MainActivity&quot;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;ImageView&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:id=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;@+id/bitmap&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_width=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;match_parent&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_height=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;wrap_content&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_centerInParent=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;true&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:scaleType=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;fitCenter&quot; &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;Button&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:id=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;@+id/invertion_button&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_width=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;125dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_height=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;50dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_alignParentBottom=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;true&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_alignParentLeft=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;true&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_marginBottom=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;25dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:text=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Inversion&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_marginLeft=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;50dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:background=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;@drawable/btn&quot; &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;Button&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:id=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;@+id/rotate_button&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_width=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;125dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_height=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;50dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:text=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Rotate&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_alignParentBottom=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;true&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_alignParentRight=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;true&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_marginBottom=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;25dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:layout_marginRight=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;50dp&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:background=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;@drawable/btn&quot; &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;RelativeLayout&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 예제 이미지&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 468px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2420A24556F27E1943&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2420A24556F27E1943&quot; width=&quot;468&quot; height=&quot;166&quot; filename=&quot;test.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Bitmap</category>
      <category>example</category>
      <category>image</category>
      <category>ImageView</category>
      <category>inverse</category>
      <category>Matrix</category>
      <category>Roate</category>
      <category>sample</category>
      <category>반전</category>
      <category>안드로이드</category>
      <category>예제</category>
      <category>이미지</category>
      <category>회전</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/27</guid>
      <comments>https://dwfox.tistory.com/27#entry27comment</comments>
      <pubDate>Wed, 23 Mar 2016 20:29:04 +0900</pubDate>
    </item>
    <item>
      <title>[Android] Activity 화면 이동 애니메이션 효과 적용하기</title>
      <link>https://dwfox.tistory.com/26</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;[Android] Activity 화면 이동 애니메이션 효과 적용하기&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(16, 16, 16); font-family: Helvetica, nanumgothic, 나눔고딕, dotum, sans-serif; font-size: 10pt; background-color: rgb(250, 250, 250);&quot;&gt;Applying Activity Animation Effect&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 구현 예제&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/OSUWUWdahDM&quot; width=&quot;420&quot; height=&quot;315&quot; frameborder=&quot;&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Activity 화면 이동&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&lt;p&gt;startActivity&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;new &lt;/span&gt;Intent&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;font color=&quot;#3e7eff&quot;&gt;&lt;b&gt;현재Activity&lt;/b&gt;&lt;/font&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;불러올Activity&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;overridePendingTransition&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.anim&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;font color=&quot;#05314d&quot;&gt;&lt;b&gt;현재(사라질)Activity애니메이션&lt;/b&gt;&lt;/font&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.anim&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;b style=&quot;line-height: 22.6px; color: rgb(5, 49, 77); font-size: 15.0667px;&quot;&gt;현재(사라질)Activity애니메이션&lt;/b&gt;&lt;span style=&quot;font-size: 11.3pt; line-height: 1.5; color: rgb(0, 0, 102);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 11.3pt; line-height: 1.5; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Activity Display 포지션&amp;nbsp;이해&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 400px; width: 400px; height: 407px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/21295A3F56D916742A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F21295A3F56D916742A&quot; width=&quot;400&quot; height=&quot;407&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 400px; height: 407px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;위와 같이 좌측상단이 기준이 되고 &amp;nbsp;해당 지점이 (0, 0)이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 579px; width: 579px; height: 407px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2522B04156D9171716&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2522B04156D9171716&quot; width=&quot;579&quot; height=&quot;407&quot; filename=&quot;3.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 579px; height: 407px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;X축 기준으로 -100%가 되면 Activity가 좌측으로 완전히 사라진다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;X축 기준으로 100%가 되면 Activity가 우측으로 완전히 사라진다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;X축대신 Y축을 대입하면 위, 아래 애니메이션 적용이 가능하다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;이를 이용하여&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(127, 0, 85); font-weight: bold; font-family: 'Source Code Pro'; font-size: 11.3pt; line-height: 1.5;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/animation/TranslateAnimation.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;translate&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;애니메이션을 이용하여 Activty를 slide 애니메이션을 적용한 효과를 줄 것이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; translate 애니메이션&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 370px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/24375C4156D918EF0E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F24375C4156D918EF0E&quot; width=&quot;370&quot; height=&quot;190&quot; filename=&quot;4.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;위와 같이 폴더를 구성하고 animation resource 파일을 생성한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;* anim_slide_in_left.xml (왼쪽에서 들어오는 애니메이션)&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;translate &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;xmlns:&lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:duration=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;250&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:fromXDelta=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;-100%&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:interpolator=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;@android:anim/decelerate_interpolator&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#566874;font-style:italic;&quot;&gt;android&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;:toXDelta=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;0%&quot; &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위와 같이 작성할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;fromXDelta&lt;/b&gt;는 애니메이션이 시작할 때 X축의 위치이고&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;toDelta&lt;/b&gt;는 애니메이션이 끝나는 지점이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;따라서 -100%위치에서 0%로 X축으로 이동하는 애니메이션이 될 것이고 decelerate_inerpolator을 설정하여 감속의 느낌을 줄 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;* anim_slide_out_right.xml (오른쪽으로 나가는&amp;nbsp;애니메이션)&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;translate &lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;xmlns:android=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;android:duration=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;250&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;android:fromXDelta=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;0%&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;android:interpolator=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;@android:anim/decelerate_interpolator&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;font-style:italic;&quot;&gt;android:toXDelta=&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;100%&quot; &lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;위 애니메이션과 짝을 이루어 생성될 Activity는&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;anim_slide_in_left을 적용하고&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;사라질 Activity는&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;anim_slide_out_right을 적용하면&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;왼쪽에서 오른쪽으로 슬라이드 인, 아웃하는 화면 전환을 구현할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;* 적용된 소스&lt;/b&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: 'Source Code Pro'; font-size: 11.3pt;&quot;&gt;startActivity&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;new &lt;/span&gt;Intent&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;MainActivity&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;MainActivity&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#7f0055;font-weight:bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;overridePendingTransition&lt;span style=&quot;color:#000066;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.anim&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;anim_slide_in_left&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#3e7eff;font-weight:bold;&quot;&gt;R.anim&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#05314d;font-weight:bold;&quot;&gt;anim_slide_out_right&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;finish&lt;span style=&quot;color:#000066;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 예제 Project App Download&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block;   height: auto; max-width: 100%;&quot;&gt;&lt;a href=&quot;https://t1.daumcdn.net/cfile/tistory/2578764F56D91B3F26&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://i1.daumcdn.net/cfs.tistory/v/0/blog/image/extension/zip.gif&quot; style=&quot;vertical-align: middle;&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;DWFOXTest.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Activity</category>
      <category>Android</category>
      <category>슬라이드</category>
      <category>안드로이드</category>
      <category>애니메이션</category>
      <category>예제</category>
      <category>전환</category>
      <category>화면이동</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/26</guid>
      <comments>https://dwfox.tistory.com/26#entry26comment</comments>
      <pubDate>Fri, 4 Mar 2016 13:58:50 +0900</pubDate>
    </item>
    <item>
      <title>[Java] Unsupported major.minor version 52.0 오류 / 해결</title>
      <link>https://dwfox.tistory.com/25</link>
      <description>&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;Java Exception :&amp;nbsp;Unsupported major.minor version 52.0&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 내용&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;Java Version 52.0 (JDK 8.0) 버전에서 컴파일하고&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;이하 버전에서 실행할때 발생&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 에러 Version 별&amp;nbsp;JDK 버전&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;Version 뒤에 숫자는 아래와 같은 버전을 의미 한다.&lt;/span&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;J2SE 8 &amp;nbsp; = Version 52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;J2SE 7 &amp;nbsp; = Version 51&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;J2SE 6.0 = Version 50&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;J2SE 5.0 = Version 49&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;JDK &amp;nbsp;1.4 = Version 48&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;JDK &amp;nbsp;1.3 = Version 47&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;JDK &amp;nbsp;1.2 = Version 46&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;JDK &amp;nbsp;1.1 = Version 45&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 확인사항&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&amp;nbsp; &amp;nbsp;- Class 실행 버전정보 확인&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(238, 238, 238); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;C:\&amp;gt;java -version&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;java version &quot;1.7.0_65&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;Java(TM) SE Runtime Environment (build 1.7.0_65-b19)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 해결&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;1.&amp;nbsp;컴파일 버전을 위 실행 버전으로 컴파일&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&amp;nbsp; &amp;nbsp;( 하위 버전으로 컴파일시 오류 발생 가능성 있음 )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;2. 실행할&amp;nbsp;JDK 버전을 위에러 Version 별 JDK로 변경하여 실행한다.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Error/Java</category>
      <category>Exception</category>
      <category>java</category>
      <category>jdk</category>
      <category>MAJOR</category>
      <category>solution</category>
      <category>Unsupported</category>
      <category>version</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/25</guid>
      <comments>https://dwfox.tistory.com/25#entry25comment</comments>
      <pubDate>Fri, 26 Feb 2016 13:33:59 +0900</pubDate>
    </item>
    <item>
      <title>[Android Studio] Android Studio OpenCV 모듈 사용하기</title>
      <link>https://dwfox.tistory.com/24</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;


&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;Android Studio OpenCV 모듈 사용하기&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; OpenCV 다운&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;a href=&quot;http://opencv.org/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://opencv.org/&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/26482D3756C14F2E09&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F26482D3756C14F2E09&quot; width=&quot;900&quot; height=&quot;388&quot; filename=&quot;1.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Android Studio에 OpenCV&amp;nbsp;모듈 추가&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;1. OpenCV for Android 다운로드하여 압축을 풀어 줍니다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;2. Android Studio에서 사용할 프로젝트를 생성합니다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;3. Import Module&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;File - Import Module...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 400px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/236AF53A56C1502D1F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F236AF53A56C1502D1F&quot; width=&quot;400&quot; height=&quot;227&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;압축 해제한 OpenCV 폴더에서&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;..\&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;OpenCV-android-sdk\sdk\java &lt;/span&gt;&lt;/b&gt;폴더를 선택하여 Import Module을 완료한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/22395E4B56C1514734&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F22395E4B56C1514734&quot; width=&quot;700&quot; height=&quot;449&quot; filename=&quot;3.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;4. OpenCV Module build.gradle&amp;nbsp;설정&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;모듈을 추가하고 나면 Android SDK 관련 에러가 발생할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;Error:Cause: failed to find target with hash string 'android-14' in: %android sdk path%&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;Open Android SDK Manager&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;현재 프로젝트와 OpenCV 모듈의 SDK버전에 따른 에러라면 build.gradle을 수정하여 에러를 잡도록 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;4-1&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24.4444px;&quot;&gt;현재 프로젝트의 app의 build.gradle에서 compileSdkVersion, buildToolsVersion, minSdkVersion, targetSdkVersion 을 복사한다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;android{
...
    compileSdkVersion 23
    buildToolsVersion &quot;23.0.2&quot;

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 23
    }
...
}&lt;/code&gt;&lt;/pre&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24.4444px;&quot;&gt;왼쪽 네비게이션을 Project로 설정하고 import 한 모듈(openCVLibrary310)의 build.gradle에 붙여 넣어 수정을 완료한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em; text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 580px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/275EAF3C56C1543927&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F275EAF3C56C1543927&quot; width=&quot;580&quot; height=&quot;551&quot; filename=&quot;4.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em; text-align: center; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24.4444px; text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em; text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24.4444px;&quot;&gt;OpenCV 수정된 build.gradle&lt;/span&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;apply plugin: 'com.android.library'

android {
    compileSdkVersion 23
    buildToolsVersion &quot;23.0.2&quot;

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/24</guid>
      <comments>https://dwfox.tistory.com/24#entry24comment</comments>
      <pubDate>Mon, 15 Feb 2016 13:11:42 +0900</pubDate>
    </item>
    <item>
      <title>[Android] Android SharedPreference 앱 전체 데이터 공유하기(임시 DB 만들기)</title>
      <link>https://dwfox.tistory.com/23</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;Android SharedPreference 앱 전체 데이터 공유하기 (임시 DB 만들기)&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; SharedPreference&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;참고 : &lt;/span&gt;&lt;a href=&quot;http://developer.android.com/intl/ko/reference/android/content/SharedPreferences.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;line-height: 1.5;&quot;&gt;http://developer.android.com/intl/ko/reference/android/content/SharedPreferences.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;앱 전체에 String이나 int값을 공유 하기 위해서 간단하게 사용할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;SharedPreference로 생성된 값은 앱을 삭제하거나 앱데이터를 삭제하기 전까지는 유지 할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;따라서 환경설정 값이나 기타 앱에서 기록하고 있어야 하는 데이터를 보관하는데 손쉽게 사용할 수 있는 기능이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;개별 클래스에서 SharedPreference를 선언하여 개별적으로 가져오고 저장하는 방법이 있지만 아래와 같이 Util Class를 작성하여&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;필요한 데이터를 깔끔하게 사용 할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;public class SharedPreferenceUtil{

    public static final String APP_SHARED_PREFS = &quot;thisApp.SharedPreference&quot;;

    private SharedPreferences sharedPreferences;
    private Editor editor;

    public SharedPreferenceUtil(Context context){
        this.sharedPreferences = context.getSharedPreferences(APP_SHARED_PREFS, Activity.MODE_PRIVATE);
        this.editor = sharedPreferences.edit();
    }

    public void setSharedTest(String test){
        editor.putString(&quot;test&quot;,test);
        editor.commit();
    }
    public String getSharedTest(){
        return sharedPreferences.getString(&quot;test&quot;,&quot;defValue&quot;); // &quot;test&quot;는 키, &quot;defValue&quot;는 키에 대한 값이 없을 경우 리턴해줄 값
    }
}
&lt;/code&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;아래와 같이 SharedPreferenceUtil을 아래와 같이 생성하여 필요한 부분만 간단하게 저장하거나 가져올 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;SharedPreferenceUtil sharedPreference = new SharedPreferenceUtil(context);
sharedPreference.setSharedTest(&quot;TEST&quot;); // 저장하기
sharedPreference.getSharedTest(); // 가져오기
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/23</guid>
      <comments>https://dwfox.tistory.com/23#entry23comment</comments>
      <pubDate>Thu, 11 Feb 2016 14:33:40 +0900</pubDate>
    </item>
    <item>
      <title>[Android Studio] Android Studio NDK 설정</title>
      <link>https://dwfox.tistory.com/22</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;

&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 24px;&quot;&gt;&lt;b&gt;Android Studio NDK 설정&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; NDK 다운받기&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://developer.android.com/ndk/index.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://developer.android.com/ndk/index.html&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2158773D56BBF4EE1B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2158773D56BBF4EE1B&quot; width=&quot;900&quot; height=&quot;358&quot; filename=&quot;1.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;위 페이지로 이동하면 NDK 사용방법과 Document, Download를 제공한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://developer.android.com/ndk/downloads/index.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;NDK 다운로드 페이지 &lt;/a&gt;:&amp;nbsp;&lt;a href=&quot;http://developer.android.com/ndk/downloads/index.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://developer.android.com/ndk/downloads/index.html&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;OS 환경에 맞게 다운받아 NDK를 사용할 위치에 압축을 푼다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;다운로드 페이지에서 OS별로 압축 푸는 방법까지 설명되어 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Android Stuido NDK 설정 - javah&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;먼저 jni에서 사용할 헤더파일을 만들때 필요한 javah 설정을 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;File - Settings - Tools - External Tools&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/22546A3D56BBF4F01D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F22546A3D56BBF4F01D&quot; width=&quot;900&quot; height=&quot;335&quot; filename=&quot;2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(254, 254, 184); padding: 10px; background-color: rgb(254, 254, 184);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b&gt;※ Tool settings&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Program : &amp;nbsp;&lt;/b&gt;jdk 폴더내 bin에 있는&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);&quot;&gt; javah.exe &lt;/span&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&amp;nbsp;Path&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Paramaters : &amp;nbsp;-classpath &quot;$Classpath$&quot; -v -jni $FileClass$&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Working directory : &lt;/b&gt;&amp;nbsp;&lt;b&gt;$ProjectFileDir$\app\src\main\jni&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;위와 같이 설정한다.&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;※ 수정&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: rgb(254, 254, 184);&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;이전 : Paramaters : &amp;nbsp;-classpath $Classpath$ -v jni $FileClass$&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: rgb(254, 254, 184);&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;2017.02.01 수정 : Paramaters : &amp;nbsp;-classpath &quot;$Classpath$&quot; -v -jni $FileClass$&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;b style=&quot;background-color: rgb(254, 254, 184);&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: rgb(254, 254, 184);&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: rgb(254, 254, 184);&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;NDKTest.java 클래스를 생성하여 아래와 같이 native 메소드를 작성한다. 추후 헤더파일에 자동으로 생성될 메소드이다.&lt;/span&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;public class NDKTest {
    public native void ndkTestMethod(String msg);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;Ctrl + B&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;를 통해 빌드 후 만들고자 하는 java파일 우클릭을 통해 빌드하여 .class파일이 생성되게 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 436px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2457C94656BCAF880D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2457C94656BCAF880D&quot; width=&quot;436&quot; height=&quot;532&quot; filename=&quot;4.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;NDK - javah 를 선택하면 아래와 같은 콘솔 멘트(Create file RegularFileObject[헤더파일명])와 함께 jni 폴더에 &lt;/span&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;com_test_dwfox_jnitest_NDKTest.h &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;파일이 생성된걸 알 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;이 헤더 파일을 가지고 NDKTest.java에서 C/C++ 라이브러리를 로드하여&amp;nbsp;native 메소드를 작성한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;아래는 생성된&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;com_test_dwfox_jnitest_NDKTest.h 이다. &lt;/b&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;native 메소드가 자동으로 변형된걸 알 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;/* DO NOT EDIT THIS FILE - it is machine generated */
#include &lt;jni.h&gt;
/* Header for class com_test_dwfox_jnitest_NDKTest */

#ifndef _Included_com_test_dwfox_jnitest_NDKTest
#define _Included_com_test_dwfox_jnitest_NDKTest
#ifdef __cplusplus
extern &quot;C&quot; {
#endif
/*
 * Class:     com_test_dwfox_jnitest_NDKTest
 * Method:    ndkTestMethod
 * Signature: (Ljava/lang/String;)V
 */
JNIEXPORT void JNICALL Java_com_test_dwfox_jnitest_NDKTest_ndkTestMethod
  (JNIEnv *, jobject, jstring);

#ifdef __cplusplus
}
#endif
#endif
&lt;/jni.h&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 449px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2138BB4256BC0C593C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2138BB4256BC0C593C&quot; width=&quot;449&quot; height=&quot;69&quot; filename=&quot;5.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Android Stuido NDK 설정 - ndk-build&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;javah와 마찬가지로&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;File - Settings - Tools - External Tools&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 617px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2408763656BC105615&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2408763656BC105615&quot; width=&quot;617&quot; height=&quot;488&quot; filename=&quot;6.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(254, 254, 184); padding: 10px; background-color: rgb(254, 254, 184);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;b&gt;※ Tool settings&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Program : &amp;nbsp;&lt;/b&gt;%ANDROID_NDK%&lt;b&gt;ndk-build.cmd # ndk 압축 해제 한곳 위치에 ndk-build.cmd 파일&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Paramaters : &amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Working directory :&amp;nbsp;&lt;/b&gt;&amp;nbsp;&lt;b&gt;$ProjectFileDir$\app\src\main\jni&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;위와 같이 설정한다.&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;C/C++ 파일을 만들고 위에서 생성했던 해더파일을 include 하여 필요한 jni 코딩후&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;cpp&quot;&gt;//NDKTest.cpp
#include &quot;com_test_dwfox_jnitest_NDKTest.h&quot;

JNIEXPORT void JNICALL Java_com_test_dwfox_jnitest_NDKTest_ndkTestMethod
(JNIEnv * env, jobject ob, jstring str)
{

}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;jni 폴더에 Android.mk와 Application.mk 파일로 빌드 설정을 하고&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;cpp&quot;&gt;//Android.mk
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := ndkTest
LOCAL_SRC_FILES := ndkTest.cpp

include $(BUILD_SHARED_LIBRARY)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 604px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/263C134256BC14602C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F263C134256BC14602C&quot; width=&quot;604&quot; height=&quot;868&quot; filename=&quot;7.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;ndk-build를 해주면 &amp;nbsp;libs에 .so 파일이 생성 된걸 볼 수 있다. 이 라이브러리를 사용할 java class에서&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;System.loadLibrary를 통해 사용 하면 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px; background-color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(70, 115, 255);&quot;&gt;※ NDK Sample 을 이용하여 android.mk와 Application.mk를 복사하거나 분석후 적용하는 것이 가장 빠를 수 있습니다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>interface</category>
      <category>java</category>
      <category>javah</category>
      <category>JNI</category>
      <category>native</category>
      <category>NDK</category>
      <category>studio</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/22</guid>
      <comments>https://dwfox.tistory.com/22#entry22comment</comments>
      <pubDate>Thu, 11 Feb 2016 11:55:17 +0900</pubDate>
    </item>
    <item>
      <title>[Java] static 변수 이해하기</title>
      <link>https://dwfox.tistory.com/21</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 205px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#003399&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(102, 0, 51); font-size: 24pt;&quot;&gt;[Java&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 0, 51); font-size: 24pt;&quot;&gt;] static 키워드 변수 이해하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(9, 0, 255);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;static&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;static는 변수나 메소드에 키워드로 사용한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px;&quot;&gt;&amp;nbsp;static 변수 사용하기 (1)&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt; public class SeoulCity{
    static String cityname = &quot;서울&quot;;

    public static void main(String[] args) {
        SeoulCity city1 = new SeoulCity();
        SeoulCity city2 = new SeoulCity();
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위와 같이 SeoulCity 클래스의 cityname은 항상 서울이 될 것이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;city1과 city2에 static을 선언하지 않는다면 city1의 cityname과 city2의 cityname이 메모리에 각각 할당되어 사용된다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;하지만 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;static을 사용한 변수는 메모리 할당이 한번으로 끝난다. 이렇게 되면 몇백개의 객체를 생성하게 되면 static이 없어 많은 메모리를 소비하게 된다&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;그렇지만 cityname을 city1, city2 각각 변경하여 사용하게 된다면 static을 사용하면 안된다. city1에서는 부산, city2에서는 대전으로 바꿔야 하는 일이 생긴다면 city1이든 city2든 바뀐값으로 사용되게 되므로 주의 해야 한다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;그래서 해당 변수의 값을 변경하지 못하게 하는 final과 함께 사용하여 그 값을 변하지 못하게 하면 된다. &lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;final&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;로 선언한 변수를 변경하려고 하면 예외가 발생하므로 주의 해야 한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px; background-color: rgb(255, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 20px; font-weight: bold; line-height: 30px;&quot;&gt;&amp;nbsp;static 변수 사용하기 (2)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt; public class CounterShare {
	static int count = 0;
	
	 public static void main(String[] args) {
		 CounterShare counter1 = new CounterShare();
		 CounterShare counter2 = new CounterShare();
		 
		 counter1.count = 1;
		 System.out.println(&quot;counter1 = &quot; + counter1.count);
		 
		 counter2.count++;
		 System.out.println(&quot;counter2 = &quot; + counter2.count);
	
	}
}
&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위 코드를 실행시키면 출력값은&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(254, 222, 199); padding: 10px; background-color: rgb(254, 222, 199);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;counter1 = 1&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;counter2 = 2&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;와 같이 나오게 된다.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;CounterShare의 count 값은 개별 클래스 객체의 값을 유지 하는 것이 아니다. counter1과 counter2의 같은 count를 공유하게 되는 것이다.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;참고 :&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://wikidocs.net/228&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;https://wikidocs.net/228&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Java</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/21</guid>
      <comments>https://dwfox.tistory.com/21#entry21comment</comments>
      <pubDate>Wed, 3 Feb 2016 16:11:55 +0900</pubDate>
    </item>
    <item>
      <title>[Android] 안드로이드 버튼 효과 커스텀 - Selector</title>
      <link>https://dwfox.tistory.com/20</link>
      <description>&lt;center&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;
&lt;/span&gt;&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;
&lt;/span&gt;&lt;!-- Tistory_act --&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;
&lt;/span&gt;&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;
&lt;/span&gt;&lt;script&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/span&gt;&lt;/script&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;
&lt;/span&gt;&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(5, 0, 153); font-size: 18pt;&quot;&gt;[Android] 버튼 효과 커스텀 하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=&quot;#050099&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;android button view custom&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Selector 속성&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;xml&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;
&amp;lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; &amp;gt;
    &amp;lt;item
        android:color=&quot;hex_color&quot;
        android:state_pressed=[&quot;true&quot; | &quot;false&quot;]
        android:state_focused=[&quot;true&quot; | &quot;false&quot;]
        android:state_selected=[&quot;true&quot; | &quot;false&quot;]
        android:state_checkable=[&quot;true&quot; | &quot;false&quot;]
        android:state_checked=[&quot;true&quot; | &quot;false&quot;]
        android:state_enabled=[&quot;true&quot; | &quot;false&quot;]
        android:state_window_focused=[&quot;true&quot; | &quot;false&quot;] /&amp;gt;
&amp;lt;/selector&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;위 옵션은 ture/false형태로 작성 될 것이고 button에서는 주로 pressed 옵션으로 효과만 사용하여 만들 것이다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;참고 :&amp;nbsp;&lt;a href=&quot;http://developer.android.com/intl/ko/guide/topics/resources/color-list-resource.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;Color State List Resource&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(219, 232, 251); padding: 10px; background-color: rgb(219, 232, 251);&quot;&gt;&lt;dt style=&quot;margin: 24px 0px 12px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;code style=&quot;font-size: 13px; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; -webkit-font-smoothing: subpixel-antialiased; padding: 3px 5px; background-color: rgb(247, 247, 247);&quot;&gt;android:state_pressed&lt;/code&gt;&lt;/dt&gt;&lt;dd style=&quot;margin: 0px 0px 10px 40px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;em&gt;Boolean&lt;/em&gt;. &quot;true&quot; if this item should be used when the object is pressed (such as when a button is touched/clicked); &quot;false&quot; if this item should be used in the default, non-pressed state.&lt;/dd&gt;&lt;dt style=&quot;margin: 24px 0px 12px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;code style=&quot;font-size: 13px; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; -webkit-font-smoothing: subpixel-antialiased; padding: 3px 5px; background-color: rgb(247, 247, 247);&quot;&gt;android:state_focused&lt;/code&gt;&lt;/dt&gt;&lt;dd style=&quot;margin: 0px 0px 10px 40px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Boolean&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;. &quot;true&quot; if this item should be used when the object is focused (such as when a button is highlighted using the trackball/d-pad); &quot;false&quot; if this item should be used in the default, non-focused state.&lt;/span&gt;&lt;/dd&gt;&lt;dt style=&quot;margin: 24px 0px 12px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;code style=&quot;font-size: 13px; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; -webkit-font-smoothing: subpixel-antialiased; padding: 3px 5px; background-color: rgb(247, 247, 247);&quot;&gt;android:state_selected&lt;/code&gt;&lt;/dt&gt;&lt;dd style=&quot;margin: 0px 0px 10px 40px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Boolean&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;. &quot;true&quot; if this item should be used when the object is selected (such as when a tab is opened); &quot;false&quot; if this item should be used when the object is not selected.&lt;/span&gt;&lt;/dd&gt;&lt;dt style=&quot;margin: 24px 0px 12px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;code style=&quot;font-size: 13px; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; -webkit-font-smoothing: subpixel-antialiased; padding: 3px 5px; background-color: rgb(247, 247, 247);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;android:state_checkable&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;&lt;dd style=&quot;margin: 0px 0px 10px 40px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Boolean&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;. &quot;true&quot; if this item should be used when the object is checkable; &quot;false&quot; if this item should be used when the object is not checkable. (Only useful if the object can transition between a checkable and non-checkable widget.)&lt;/span&gt;&lt;/dd&gt;&lt;dt style=&quot;margin: 24px 0px 12px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;code style=&quot;font-size: 13px; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; -webkit-font-smoothing: subpixel-antialiased; padding: 3px 5px; background-color: rgb(247, 247, 247);&quot;&gt;android:state_checked&lt;/code&gt;&lt;/dt&gt;&lt;dd style=&quot;margin: 0px 0px 10px 40px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Boolean&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;. &quot;true&quot; if this item should be used when the object is checked; &quot;false&quot; if it should be used when the object is un-checked.&lt;/span&gt;&lt;/dd&gt;&lt;dt style=&quot;margin: 24px 0px 12px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;code style=&quot;font-size: 13px; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; -webkit-font-smoothing: subpixel-antialiased; padding: 3px 5px; background-color: rgb(247, 247, 247);&quot;&gt;android:state_enabled&lt;/code&gt;&lt;/dt&gt;&lt;dd style=&quot;margin: 0px 0px 10px 40px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Boolean&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;. &quot;true&quot; if this item should be used when the object is enabled (capable of receiving touch/click events); &quot;false&quot; if it should be used when the object is disabled.&lt;/span&gt;&lt;/dd&gt;&lt;dt style=&quot;margin: 24px 0px 12px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;code style=&quot;font-size: 13px; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; -webkit-font-smoothing: subpixel-antialiased; padding: 3px 5px; background-color: rgb(247, 247, 247);&quot;&gt;android:state_window_focused&lt;/code&gt;&lt;/dt&gt;&lt;dd style=&quot;margin: 0px 0px 10px 40px; color: rgba(0, 0, 0, 0.682353); font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px;&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Boolean&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;. &quot;true&quot; if this item should be used when the application window has focus (the application is in the foreground), &quot;false&quot; if this item should be used when the application window does not have focus (for example, if the notification shade is pulled down or a dialog appears).&lt;/span&gt;&lt;/dd&gt;&lt;/div&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 안드로이드 버튼 이미지로 커스텀 하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;커스텀할 버튼 이미지를 res/drawable 폴더에&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(134, 229, 127);&quot;&gt;btn_normal.png&lt;/span&gt;와 &lt;span style=&quot;background-color: rgb(134, 229, 127);&quot;&gt;btn_pressed&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(134, 229, 127);&quot;&gt;.png&lt;/span&gt;&lt;/b&gt;를 넣&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;어 둔다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 164px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2316C74C56A45B4E1E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2316C74C56A45B4E1E&quot; width=&quot;164&quot; height=&quot;57&quot; filename=&quot;btn_normal.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;b&gt;&amp;lt; btn_normal.png &amp;gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 164px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/26040B4C56A45B4F07&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F26040B4C56A45B4F07&quot; width=&quot;164&quot; height=&quot;57&quot; filename=&quot;btn_pressed.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;b&gt;&amp;lt; btn_pressed.png &amp;gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(183, 240, 177);&quot;&gt;&lt;span style=&quot;background-color: rgb(134, 229, 127);&quot;&gt;res/drawable/button_selector&lt;/span&gt;&lt;span style=&quot;background-color: rgb(134, 229, 127);&quot;&gt;.xml&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;파일을 생성한다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;xml&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;
&amp;lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&amp;gt;
    &amp;lt;!-- Button 눌렀을 때 --&amp;gt;
    &amp;lt;item android:drawable=&quot;@drawable/btn_pressed&quot; android:state_pressed=&quot;true&quot;&amp;gt;&amp;lt;/item&amp;gt;
    &amp;lt;!-- Button 이벤트 없을 때 --&amp;gt; 
    &amp;lt;item android:drawable=&quot;@drawable/btn_normal&quot; android:state_pressed=&quot;false&quot;&amp;gt;&amp;lt;/item&amp;gt;
&amp;lt;/selector&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(134, 229, 127);&quot;&gt;&lt;b&gt;사용할 Button View에 background를 button_selector로 지정&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;하여 이미지 버튼 커스텀을 완성한다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;xml&quot;&gt;&amp;lt;Button
	android:id=&quot;@+id/button&quot;
	android:layout_width=&quot;82dp&quot;
	android:layout_height=&quot;28dp&quot;
	android:background=&quot;@drawable/button_selector&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;width와 heigt는 이미지 생성시 고려하여 생성하거나 생성된 이미지에 맞추서 제작하도록 한다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; 안드로이드 버튼 xml만 사용하여 (Shape)&amp;nbsp;커스텀 하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;버튼을 이미지 생성없이 효과를 주기 위해 Shape의 속성만으로 버튼을 커스텀 효과를 줄 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;기본적으로 Shape에 대한 속성을 알고 있으면 다양한 효과를 줄 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;아래 내용은 Gradient와 Corner효과만으로 효과적인 버튼을 만든다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;참고 : &lt;a href=&quot;http://developer.android.com/intl/ko/guide/topics/resources/drawable-resource.html#Shape&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;Shape Drawable&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;xml&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;
&amp;lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; &amp;gt;
    
    &amp;lt;item android:state_pressed=&quot;true&quot;&amp;gt;
        &amp;lt;shape &amp;gt;
            &amp;lt;solid android:color=&quot;#c71a1a&quot;/&amp;gt;
            &amp;lt;stroke
                 android:width=&quot;2dp&quot;
                 android:color=&quot;#4b4c4c&quot;/&amp;gt;
            &amp;lt;corners 
                android:bottomLeftRadius=&quot;12dp&quot;
            	android:bottomRightRadius=&quot;12dp&quot;
            	android:topLeftRadius=&quot;12dp&quot;
            	android:topRightRadius=&quot;12dp&quot;/&amp;gt;
        &amp;lt;/shape&amp;gt;
    &amp;lt;/item&amp;gt;
    &amp;lt;item android:state_pressed=&quot;false&quot;&amp;gt;
        &amp;lt;shape &amp;gt;
            &amp;lt;gradient 
                android:angle=&quot;270&quot;
                android:endColor=&quot;#c71a1a&quot;
                android:startColor=&quot;#ffb9b9&quot;/&amp;gt;            
            &amp;lt;stroke 
                android:width=&quot;2dp&quot;
                android:color=&quot;#4b4c4c&quot;/&amp;gt;
            &amp;lt;corners 
                android:bottomLeftRadius=&quot;12dp&quot;
            	android:bottomRightRadius=&quot;12dp&quot;
            	android:topLeftRadius=&quot;12dp&quot;
            	android:topRightRadius=&quot;12dp&quot;/&amp;gt;
        &amp;lt;/shape&amp;gt;
    &amp;lt;/item&amp;gt;
&amp;lt;/selector&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(134, 229, 127);&quot;&gt;selector xml 하나만 res/drawable에 생성&lt;/span&gt;해두고 위와 같이 Button &lt;span style=&quot;background-color: rgb(134, 229, 127);&quot;&gt;Background 속성&lt;/span&gt;에 가져다 쓰면 xml만으로 다양한 효과를 버튼에 커스텀 할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Button</category>
      <category>Button Custom</category>
      <category>Custermize</category>
      <category>Custom</category>
      <category>customize</category>
      <category>Selector</category>
      <category>Shape</category>
      <category>버튼이미지</category>
      <category>버튼커스텀</category>
      <category>안드로이드</category>
      <category>커스텀</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/20</guid>
      <comments>https://dwfox.tistory.com/20#entry20comment</comments>
      <pubDate>Sun, 24 Jan 2016 14:38:38 +0900</pubDate>
    </item>
    <item>
      <title>[Xcode] dmg파일로 Xcode 설치하기  (Xcode 7.2) - 앱스토어 없이</title>
      <link>https://dwfox.tistory.com/19</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 205px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#003399&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 22px;&quot;&gt;&lt;b&gt;[OSX] Xcode 설치하기 &amp;nbsp;(Xcode 7.2) - Without&amp;nbsp;App Store&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt; &amp;nbsp;Xcode란&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; font-weight: bold; line-height: 22px;&quot;&gt;출처 :&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://ko.wikipedia.org/wiki/%EC%97%91%EC%8A%A4%EC%BD%94%EB%93%9C&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://ko.wikipedia.org/wiki/%EC%97%91%EC%8A%A4%EC%BD%94%EB%93%9C&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(219, 232, 251); padding: 10px; background-color: rgb(219, 232, 251);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;엑스코드(Xcode)는 애플이 개발한 OS X의 개발 툴 모음이다. 3.2 버전은 맥 OS X 10.6에 포함되어 있으나 자동으로 설치되지는 않는다. 이전의 버전의 맥 OS X에서는 3.2를 지원하지 않기 때문에 옛 버전을 Apple Developer Connection에서 무료로 받을 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;엑스코드의 주 프로그램은 같은 이름의 통합 개발 환경이다. 여기에는 애플 개발자 문서와 그래픽 인터페이스를 만드는 데 쓰는 인터페이스 빌더가 포함되어 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;엑스코드는 자유 소프트웨어인 GCC의 수정된 버전(GCC, apple-darwin9-gcc-4.2.1, apple-darwin9-gcc-4.0.1)을 포함하고 있고 코코아, 카본, 자바에 대한 다양한 프로그래밍 모델을 포함하여 C, C++, 포트란, 오브젝티브-C, 오브젝티브-C++, 자바, 애플스크립트, 파이썬, 루비를 지원한다. 서드 파티로 GNU 파스칼, 프리 파스칼, 에이다, C 샤프, 펄, 하스켈, D를 지원한다. 엑스코드는 디버거의 백엔드로 GDB를 사용한다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 20px; line-height: 30px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;a href=&quot;https://developer.apple.com/downloads/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;https&lt;/a&gt;&lt;a href=&quot;http://https//developer.apple.com/downloads/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;://developer.apple.com/downloads/&lt;/a&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px; text-align: start;&quot;&gt;&lt;a href=&quot;https://developer.apple.com/downloads/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;애플 개발자 사이트&lt;/a&gt;에 개발 툴을 .dmg 타입으로 다운받을 수 있다&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;애플 개발자에 로그인이 되어있어야 아래 화면을 볼 수 있다. &lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;유료로 등록하지 않아도 다운받을 수 있다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px; text-align: start;&quot;&gt;2016년 1월 현재 7.2버전이 릴리즈 되었고 7.3버전이 베타로 나와있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/27293A3C56A207DE21&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F27293A3C56A207DE21&quot; width=&quot;840&quot; height=&quot;604&quot; filename=&quot;1.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;아래 와 같이 다운은 파일을 확인 하고 실행한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 816px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/262D453C56A207E134&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F262D453C56A207E134&quot; width=&quot;816&quot; height=&quot;481&quot; filename=&quot;2.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;왼쪽 Devices 목록에 Xcode가 추가 되고 Application으로 Xcode를 드래그 하면 Application에 추가된다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 811px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2142883C56A207E228&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2142883C56A207E228&quot; width=&quot;811&quot; height=&quot;473&quot; filename=&quot;3.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 460px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/273C393C56A207E30A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F273C393C56A207E30A&quot; width=&quot;460&quot; height=&quot;147&quot; filename=&quot;4.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;Launchpad를 통해 Xcode를 입력하면 아래와 같이 단축키가 나오는 것을 볼 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 318px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/233A093C56A207E430&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F233A093C56A207E430&quot; width=&quot;318&quot; height=&quot;267&quot; filename=&quot;5.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;이제 개발을 시작 하면 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2474243D56A20ABE1B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2474243D56A20ABE1B&quot; width=&quot;820&quot; height=&quot;501&quot; filename=&quot;6.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(254, 222, 199); padding: 10px; background-color: rgb(254, 222, 199);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;설치 정보&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;- OS X El Capitan ver10.11.1&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;- XCode ver 7.2&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/iOS</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/19</guid>
      <comments>https://dwfox.tistory.com/19#entry19comment</comments>
      <pubDate>Fri, 22 Jan 2016 19:33:49 +0900</pubDate>
    </item>
    <item>
      <title>[Android] ProGuard 코드 난독화 / 최적화 설정 - Android Stuido</title>
      <link>https://dwfox.tistory.com/18</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;font color=&quot;#003399&quot;&gt;&lt;span style=&quot;font-size: 24px; line-height: 22px;&quot;&gt;&lt;b&gt;[Android] ProGuard 코드 난독화 / 최적화&amp;nbsp;설정&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;ᆞProGuard란&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;출처 : &lt;a href=&quot;http://proguard.sourceforge.net/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://proguard.sourceforge.net/&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(219, 232, 251); padding: 10px; background-color: rgb(219, 232, 251);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;a href=&quot;http://proguard.sourceforge.net/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;ProGuard &lt;/a&gt;is a free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. Finally, it preverifies the processed code for Java 6 or higher, or for Java Micro Edition.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;무료툴이며코드상에서 사용되지 않는 불필요한 코드를 찾고 제거해서 최적화 시켜줌과 동시에 변수의 이름을 의미없는 이름으로 짧게 바꿔 난독화를 해준다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;* 좀더 강력한 기능을 원하면&amp;nbsp;&lt;a href=&quot;http://www.guardsquare.com/dexguard&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://www.guardsquare.com/dexguard&lt;/a&gt; 에서 유료버전을 사용해도 될듯 하다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2372A439569CABC02E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2372A439569CABC02E&quot; width=&quot;840&quot; height=&quot;497&quot; filename=&quot;1.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;ᆞAndroid Studio에서 ProGuard 설정하기&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;현재는 안드로이드에서 공직적으로 지원해서 간단한 Gradle 설정으로 적용시킬 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;출처 : &lt;a href=&quot;http://developer.android.com/intl/ko/tools/help/proguard.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://developer.android.com/intl/ko/tools/help/proguard.html&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; 1 &amp;nbsp;&lt;/span&gt;&amp;nbsp; Gradle Builds 설정&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;프로젝트를 생성하면 아래와 같이&amp;nbsp;build.gradle의 buildTypes{}에 proguard 설정이 되어있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;minifyEnabled&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(102, 0, 51);&quot;&gt;false&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;라고 기본설정 되어 있는&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&amp;nbsp;부분을&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(102, 0, 51);&quot;&gt;true&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px; color: rgb(102, 0, 51);&quot;&gt;로&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;바꿔준다. &lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px; color: rgb(255, 255, 255); background-color: rgb(70, 115, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(241, 95, 95);&quot;&gt;release&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;에서 알 수 있듯 프로젝트를 release할 때 ProGuard가 적용 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;   ...
buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
   ...&lt;font face=&quot;돋움&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;proguard-android.txt&lt;/b&gt;는 android SDK폴더의 tools/proguard/proguard-android.txt에서 수정 할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;a href=&quot;http://proguard.sourceforge.net/index.html#manual/examples.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;ProGuard 메뉴얼&lt;/a&gt;을 살펴보면 자세한 설정을 할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;추가로 규칙을 정의해 별도로 *-rules.pro 파일을 아래와 같이 적용시켜 주면 기본설정을 변경하지 않고 추가 설정을 할 수 있다&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;   ...
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
            'proguard-rules.pro', &lt;b&gt;'proguard-rules-new.pro'&lt;/b&gt;
        }
    }
 
   productFlavors {
        flavor1 {
        }
        flavor2 {
            proguardFile &lt;b&gt;'other-rules.pro'&lt;/b&gt;
        }
    }
   ...&lt;font face=&quot;돋움&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;Debug Build된 APK로&amp;nbsp;테스트 하고 싶을 땐 &lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(241, 95, 95);&quot;&gt;release&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;부분을 복사해서 &lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(241, 95, 95);&quot;&gt;debug&lt;/span&gt;&lt;/b&gt;로 바꿔주면 된다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;   ...
buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

   ...&lt;font face=&quot;돋움&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: rgb(70, 115, 255); color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; 2 &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp; ProGuard 규칙&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(238, 238, 238); padding: 10px; background-color: rgb(238, 238, 238);&quot;&gt;&lt;p&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;-&lt;span style=&quot;color: rgb(102, 0, 51);&quot;&gt;dontoptimize &lt;/span&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;최적화 하지 않기&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;-&lt;span style=&quot;color: rgb(102, 0, 51);&quot;&gt;dontshrink &lt;/span&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;사용하지 않는 메소드 유지&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;-&lt;span style=&quot;color: rgb(102, 0, 51);&quot;&gt;keep&lt;/span&gt; class&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;com.example.classname&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;ClassNotFoundException에러나 난독화를 진행하지 않고 유지하는 옵션&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;-&lt;span style=&quot;color: rgb(102, 0, 51);&quot;&gt;keepclassmembers &lt;/span&gt;class com.example.classname&amp;nbsp;{ 접근제어자&amp;nbsp;*; }&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;# 특정 클래스의 맴버 원상태 유지&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;-&lt;span style=&quot;color: rgb(102, 0, 51);&quot;&gt;keepattributes &lt;/span&gt;InnerClasses&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;내부클래스 원상태 유지 적용&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;위 옵션을&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;proguard-rules-new.pro 또는&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&amp;nbsp;proguard-rules-new.pro나 새 .pro 파일에 규칙을 추가해서 등록하도록 한다. 자세한 규칙은 &amp;nbsp;&lt;a href=&quot;http://proguard.sourceforge.net/manual/usage.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://proguard.sourceforge.net/manual/usage.html&lt;/a&gt; 참조&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;&lt;b&gt;ᆞ적용 전/후 간단 결과&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(219, 232, 251); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://dwfox.tistory.com/43&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;apk파일 추출 / 디컴파일&amp;nbsp;-&amp;nbsp;http://dwfox.tistory.com/43&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px; background-color: rgb(204, 61, 61);&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(70, 115, 255);&quot;&gt;아래가 적용 전 화면&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;라이브러리 클래스 이름이 모두 기존 클래스명으로 나와있고 오른쪽 화면에는 없지만 메소드 명도 그대로 나와있다&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;Mainactivity의 unusedMethod 메소드 같은 경우에는 상용된 곳이 없지만 그대로 컴파일되어 디컴파일 했을 때에도 나오는걸 알 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2132833F569CEBED28&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2132833F569CEBED28&quot; width=&quot;840&quot; height=&quot;600&quot; filename=&quot;pro_1.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;line-height: 16.3636px;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;background-color: rgb(204, 61, 61);&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(70, 115, 255);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;아래가 적용 &lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;화면&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;이다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;라이브러리 클래스 이름이 a,b,c,d...처럼 알파벳 단자리로 표기되어있으며 사용되지 않은 unuesdMethod는 코드에서 사라진 것을 볼 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;아래처럼 난독화도 외어있고 최적화도 되어있다.&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt; 하지만 난독화가 되어있어도 코드상의 흐름은 더 오랜 시간이 걸리겠지만 충분히 파악 할 수 있을 것이다.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px; line-height: 16.3636px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2152AA3F569CEBEB08&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2152AA3F569CEBEB08&quot; width=&quot;840&quot; height=&quot;600&quot; filename=&quot;2.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;line-height: 16.3636px; text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>ClassNotFoundException</category>
      <category>DexGuard</category>
      <category>proguard</category>
      <category>난독화</category>
      <category>안드로이드</category>
      <category>최적화</category>
      <category>코드</category>
      <category>프로가드</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/18</guid>
      <comments>https://dwfox.tistory.com/18#entry18comment</comments>
      <pubDate>Mon, 18 Jan 2016 19:20:36 +0900</pubDate>
    </item>
    <item>
      <title>[MariaDB] Toad for MySQL 연결하기 - MySQL GUI Tool</title>
      <link>https://dwfox.tistory.com/17</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 51, 153);&quot;&gt;[MariaDB] Toad for MySQL 연결하기 - MySQL GUI Tool&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(0, 153, 153); font-size: 20px; line-height: 30px;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;Toad for MySQL&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;Toad for MySQL는 MySQL 및 MariaDB를 관리할 수 있는 GUI 프로그램이다. Toad시리즈가 MySQL 외에도 많기 때문에 필요한 툴을 다운받아 쓰면된다. freeware라 제약사항이 없는것이 큰 장점일 것이다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; Toad for MySQL 다운로드&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 20px; line-height: 30px;&quot;&gt;&lt;a href=&quot;https://www.toadworld.com/m/freeware/1469&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;https://www.toadworld.com/m/freeware/1469&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;1. &lt;/b&gt;위 링크로 들어가서 &lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;Download&lt;/span&gt;&lt;/b&gt; 버튼을 눌러 설치파일을 받는 과정을 시작한다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;다른 툴을 확인하려면 상단의 &lt;span style=&quot;color: rgb(31, 218, 17);&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(34, 116, 28);&quot;&gt;&lt;a href=&quot;https://www.toadworld.com/m/freeware&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;를 눌러 확인하면 된다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px; line-height: 1.5; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2643AB44569890FA16&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2643AB44569890FA16&quot; width=&quot;840&quot; height=&quot;536&quot; filename=&quot;1.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;line-height: 1.5; text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;2. &lt;/b&gt;로그인을 요구하는데 &amp;nbsp;이미 델 소프트웨어의 계정이 있으면 로그인을 하고 없으면 아래 Create Account를 통해 이메일과 이름의 입력으로 가입하면된다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/230D4244569890FC29&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F230D4244569890FC29&quot; width=&quot;840&quot; height=&quot;630&quot; filename=&quot;2.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;3. &lt;/b&gt;이름과 이메일을 요구하는데 비밀번호 입력하는 곳이 없어 당황 할 수 있지만 해당 메일로 임시 비밀번호를 전송해 이메일인증을 동시에 진행한다. &lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;Join now&lt;/span&gt;버튼을 통해 가입한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/212C5444569890FD31&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F212C5444569890FD31&quot; width=&quot;840&quot; height=&quot;597&quot; filename=&quot;3.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;4. &lt;/b&gt;아래와 같이 입력한 이메일로 Temporary password를 발송하는데 해당 비밀번호를 로그인하고 개인 비밀번호로 변경하는 과정을 거치게 된다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/224D9B44569891010A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F224D9B44569891010A&quot; width=&quot;840&quot; height=&quot;714&quot; filename=&quot;4.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;5. &lt;/b&gt;다운로드 받기 바로 직전에 간단한 호구 조사? 를 하는데 아마 Job title의 수집이 가장 크지 않을까 생각한다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;Submit&lt;/span&gt;을 누르면 다운로드가 진행된다. 다운로드가 완료되면 설치하고 실행을 한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/262A16445698910435&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F262A16445698910435&quot; width=&quot;840&quot; height=&quot;745&quot; filename=&quot;5.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;Toad for MySQL 실행&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;툴은 for MySQL 이지만 &amp;nbsp;MariaDB를 연동해도 상관이 없다.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;아래와 같이 Connect 버튼을 눌러 연결을 설정한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2516B7345698940D0B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2516B7345698940D0B&quot; width=&quot;840&quot; height=&quot;636&quot; filename=&quot;6.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;Host 주소, DataBase User 아이디, 패스워드, 데이터베이스 생성한 이름, 포트를 입력하고&amp;nbsp;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(132, 132, 132);&quot;&gt;Connect&lt;/span&gt;를 하면 연결할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 840px; line-height: 1.5; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2663D9345698940F04&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2663D9345698940F04&quot; width=&quot;840&quot; height=&quot;689&quot; filename=&quot;7.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;line-height: 1.5; text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;- &lt;/span&gt;&lt;a href=&quot;http://dwfox.tistory.com/15&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Ubuntu 14.04 MariaDB / MySQL 초기 설정&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;- &lt;/span&gt;&lt;a href=&quot;http://dwfox.tistory.com/8&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Ubuntu 14.04&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;b style=&quot;font-size: 11pt; line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;a href=&quot;http://dwfox.tistory.com/15&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://dwfox.tistory.com/8&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB / MySQL&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;a href=&quot;http://dwfox.tistory.com/8&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;설치하기&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;</description>
      <category>Dev/DB</category>
      <category>Freeware</category>
      <category>GUI</category>
      <category>install</category>
      <category>mariadb</category>
      <category>MySQL</category>
      <category>Toad</category>
      <category>TOOL</category>
      <category>설치</category>
      <category>연결</category>
      <category>연동</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/17</guid>
      <comments>https://dwfox.tistory.com/17#entry17comment</comments>
      <pubDate>Fri, 15 Jan 2016 15:43:26 +0900</pubDate>
    </item>
    <item>
      <title>[MariaDB/Mysql] Ubuntu 14.04 MariDB/Mysql 초기 설정 및 데이터베이스 / 유저 생성</title>
      <link>https://dwfox.tistory.com/15</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 205px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 28px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 51, 153); font-size: 18pt;&quot;&gt;MariaDB(Mysql) 초기 설정 및 기본 명령어&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp; &lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;root 암호 설정&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px none rgb(0, 0, 0); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);&quot;&gt;#mysqladmin -u root -p password 새비밀번호&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);&quot;&gt;Enter password : //기존 비밀번호 입력&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;MariaDB/Mysql 접속&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px none rgb(0, 0, 0); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;#mysql -u root -p 데이터베이스 이름 &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;// 데이터베이스 이름을 입력하지 않으면 none으로 접속&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; color: rgb(255, 255, 255);&quot;&gt;Enter password : //비밀번호 입력&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;Character set 설정 확인&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;기본설정은 latin1으로 설정되어 있어 캐릭터 셋을 변경하지 않으면 한글 깨지거나 물음표로 표기 될 것이다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;show variables like 'c%'; 으로 Character set을 확인한다.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px none rgb(0, 0, 0); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt;&quot;&gt;MariaDB [(none)]&amp;gt; show variables like 'c%';&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| Variable_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_client &amp;nbsp; &amp;nbsp; | latin1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_connection | latin1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_database &amp;nbsp; | latin1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_filesystem | binary &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_results &amp;nbsp; &amp;nbsp;| latin1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_server &amp;nbsp; &amp;nbsp; | latin1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_system &amp;nbsp; &amp;nbsp; | utf8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_sets_dir &amp;nbsp; &amp;nbsp; &amp;nbsp; | /usr/share/mysql/charsets/ |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| collation_connection &amp;nbsp; &amp;nbsp; | latin1_swedish_ci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| collation_database &amp;nbsp; &amp;nbsp; &amp;nbsp; | latin1_swedish_ci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| collation_server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | latin1_swedish_ci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| completion_type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| NO_CHAIN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| concurrent_insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| ALWAYS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| connect_timeout &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;Character set 변경&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;아래 내용을 &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 12pt; background-color: rgb(102, 232, 255);&quot;&gt;my.conf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;에 추가 하도록 한다. ( 아래의 내용이 [mysql],&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;[client&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;],&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;[myql&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;], [mysqldump]&amp;nbsp;아래에 교체가 아닌&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;추가 &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;하도록 한다.)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;vim에서는 &amp;nbsp;' / '를 누르고 검색어를 입력하면 쉽게 해당 위치를 찾을 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px none rgb(0, 0, 0); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;#vim /etc/mysql/my.cnf &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;//mysql 설정 파일 &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt; line-height: 22px;&quot;&gt;#---------------------------------------------- my.cnf -----------------------------------------------------#&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt; line-height: 22px;&quot;&gt;...&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;[mysqld]&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;collation-server=utf8_unicode_ci&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;default-character-set=utf8&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;character-set-server=utf8&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;init_connect=set collation_connection=utf8_unicode_ci&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;init_connect=set names utf8&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;[client]&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;default-character-set=utf8&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;[mysql]&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;default-character-set=utf8&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;[mysqldump]&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt; line-height: 22px;&quot;&gt;default-character-set=utf8&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt; line-height: 22px;&quot;&gt;...&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt; line-height: 22px;&quot;&gt;#-----------------------------------------------------------------------------------------------------------#&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;캐릭터 셋 변경 확인&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px none rgb(0, 0, 0); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| Variable_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_client &amp;nbsp; &amp;nbsp; | utf8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_connection | utf8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_database &amp;nbsp; | utf8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_filesystem | binary &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_results &amp;nbsp; &amp;nbsp;| utf8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_server &amp;nbsp; &amp;nbsp; | utf8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_set_system &amp;nbsp; &amp;nbsp; | utf8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| character_sets_dir &amp;nbsp; &amp;nbsp; &amp;nbsp; | /usr/share/mysql/charsets/ |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| collation_connection &amp;nbsp; &amp;nbsp; | utf8_general_ci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| collation_database &amp;nbsp; &amp;nbsp; &amp;nbsp; | utf8_general_ci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| collation_server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | utf8_general_ci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| completion_type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| NO_CHAIN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| concurrent_insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| ALWAYS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| connect_timeout &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;Query OK, 1 row affected (0.01 sec)&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;데이터베이스 생성&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;show databases;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt; 로 현재 생성된 데이터베이스를 볼 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;기본적으로 생성되어 있는 데이터베이스들이 있는데 mysql과 관련된 데이터베이스이므로 추후 사용하도록 한다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px none rgb(0, 0, 0); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB[(none)]&amp;gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;show databases;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| Database &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| information_schema |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| performance_schema |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;| phpmyadmin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;+--------------------+&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;Query OK, 1 row affected (0.01 sec)&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;create database 데이터베이스이름;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;으로 데이터베이스를 생성한다.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;기본적으로 생성되어 있는 데이터베이스들이 있는데 mysql과 관련된 데이터베이스이므로 추후 사용하도록 한다.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;생성 후 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;use testdatabase; 를 &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;통해 사용할 데이터베이스를 바꿔준다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px none rgb(0, 0, 0); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB [(none)]&amp;gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;create database testdatabase;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt;&quot;&gt;Query OK, 1 row affected (0.00 sec)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px; color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB [(none)]&amp;gt;&amp;nbsp;use &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;testdatabase&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;Database changed&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB [&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;testdatabase&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;]&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);&quot;&gt;MariaDB/MySQL 사용자(User) 추가&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt; color: rgb(255, 255, 255); background-color: rgb(0, 153, 153);&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14.6667px; line-height: 28px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;생성&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; line-height: 28px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;사용자 이름 &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 12pt; background-color: rgb(102, 232, 255);&quot;&gt;'%'&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;대신 'localhost'를 사용하면 다른 host에서 접속이 안된다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; line-height: 28px;&quot;&gt;username에 사용자 이름과 &amp;nbsp;userpw 사용자 비밀번호를 입력하도록 한다.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 28px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 12pt; background-color: rgb(102, 232, 255);&quot;&gt;추후 원격 접속을 위해서 my.conf에서 bind-address = 127.0.0.1 부분을 주석처리 (앞부분에 # 을 추가) 해야 원격접속이 가능하다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(203, 203, 203); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB [testdatabases]&amp;gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;create user 'username'@'%' identified by 'userpw';&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;권한&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;*.*&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt; background-color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;는모든 데이터베이스에 대한 권한을 주겠다는 의미이다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;특정 데이터베이스만 권한을 주기위해서는 앞쪽 * 대신 데이터베이스 이름을 입력하면 된다.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;최종적으로 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 12pt; background-color: rgb(102, 232, 255);&quot;&gt;flush&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;를 하지 않으면 권한이 변경되지 않는다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(203, 203, 203); padding: 10px; background-color: rgb(53, 53, 53);&quot;&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;MariaDB [none]&amp;gt; grant all privileges on *.* to 'username'@'%';&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 12pt;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;MariaDB [&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;none]&amp;gt; flush privileges;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;
&lt;/span&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;font color=&quot;#ffffff&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 22px;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://dwfox.tistory.com/17&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;Toad for MySQL을 이용하여 MariaDB / MySQL GUI Tool 설치 및 연동하기&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/DB</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/15</guid>
      <comments>https://dwfox.tistory.com/15#entry15comment</comments>
      <pubDate>Wed, 13 Jan 2016 14:28:28 +0900</pubDate>
    </item>
    <item>
      <title>[Android] CheckBox 커스텀 / Listener</title>
      <link>https://dwfox.tistory.com/14</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(5, 0, 153);&quot;&gt;안드로이드 CheckBox 커스텀 하기 / 리스너 등록하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14pt; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;커스텀 체크박스&amp;nbsp;이미지 만들기 &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;Custom CheckBox&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;커스텀할 체크박스 이미지를 res/drawable 폴더에 &lt;b&gt;&lt;span style=&quot;background-color: rgb(183, 240, 177);&quot;&gt;check_press.png&lt;/span&gt;와&lt;/b&gt; &lt;b&gt;&lt;span style=&quot;background-color: rgb(183, 240, 177);&quot;&gt;check_nor.png&lt;/span&gt;&lt;/b&gt;를 넣어 둔다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;그리고 아래와 같이 &lt;b&gt;&lt;span style=&quot;background-color: rgb(183, 240, 177);&quot;&gt;res/drawable/custom_check_box.xml&lt;/span&gt;&lt;/b&gt; 파일을 생성한다.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;xml&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;
&amp;lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&amp;gt;
	&amp;lt;!-- 체크박스 해제상태  --&amp;gt;
	&amp;lt;item android:drawable=&quot;&lt;b&gt;@drawable/check_press&quot; &lt;/b&gt;android:state_checked=&quot;false&quot; /&amp;gt;
	&amp;lt;!-- 체크박스 선택상태 --&amp;gt;
	&amp;lt;item android:drawable=&quot;&lt;b&gt;@drawable/check_nor&quot; &lt;/b&gt;android:state_checked=&quot;true&quot; /&amp;gt;
	&amp;lt;!-- default state --&amp;gt;
	&amp;lt;item android:drawable=&quot;&lt;b&gt;@drawable/check_press&quot; &lt;/b&gt;/&amp;gt;
&amp;lt;/selector&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14pt; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;CheckBox에 Custom된 이미지 적용하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;레이아웃에 CheckBox를 작성할 때&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); background-color: rgb(183, 240, 177);&quot;&gt;android_button=&quot;@null&quot;&lt;/span&gt;&lt;/b&gt;을 지정해줘야 커스텀된 이미지가 체크박스의 크기에 맞게 들어간다.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;그리고 커스텀된 이미지를&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;    &lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;background-color: rgb(183, 240, 177);&quot;&gt;&lt;b&gt;android:background=&quot;@drawable/custom_check_box.xml&quot;&lt;/b&gt;&lt;/span&gt;과 같이 지정해 준다.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;아래와 같이 CheckBox를 넣어주면 커스텀된 체크박스를 사용할 수 있다.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;code class=&quot;xml&quot;&gt;&amp;lt;CheckBox
    android:id=&quot;@+id/check_box_id&quot;
    android:layout_width=&quot;20dp&quot;
    android:layout_height=&quot;20dp&quot;
&lt;b&gt;    android:background=&quot;@drawable/custom_check_box.xml&quot;&lt;/b&gt;
    android:button=&quot;@null&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14pt; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;CheckBox 변경 리스너 등록하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;체크박스를 초기화 하고 변경리스너를 등록한다.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;여러개의 체크박스를 아래와 같이 공통으로 등록할 때 &lt;span style=&quot;background-color: rgb(183, 240, 177);&quot;&gt;&lt;b&gt;buttonView&lt;/b&gt;의 &lt;b&gt;id&lt;/b&gt;를 가져와 &lt;b&gt;ClickListener&lt;/b&gt;를 등록할 때와 같이 switch&lt;/span&gt;로 사용하면 된다.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;	CheckBox checkBox = (CheckBox)findViewById(R.id.check_box_id) 
        checkBox.setOnCheckedChangeListener(onCheckedChangeListener ); // CheckBox에 리스너 등록
	
	private CompoundButton.OnCheckedChangeListener onCheckedChangeListener = 
		new CompoundButton.OnCheckedChangeListener() {
		@Override
		public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
			switch(buttonView.getId())
				case R.id.check_box_id: // Layout에 등록한 CheckBox의 id : 첫번째
					if (isChecked){
					//TODO 체크박스가 선택 체크 되었을때
					}
					else{
					//TODO 체크박스가 선택 해제 되었을때
					}
					break;
				case R.id.check_box_id_02: // Layout에 등록한 CheckBox의 id : 두번째
					if (isChecked){
					//TODO 체크박스가 선택 체크 되었을때
					}
					else{
					//TODO 체크박스가 선택 해제 되었을때
					}
					break;
				default:
					break;
			}
	};
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Background</category>
      <category>CheckBox</category>
      <category>CheckedChangeListener</category>
      <category>Custom</category>
      <category>리스너</category>
      <category>버튼</category>
      <category>안드로이드</category>
      <category>체크박스</category>
      <category>커스텀</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/14</guid>
      <comments>https://dwfox.tistory.com/14#entry14comment</comments>
      <pubDate>Mon, 11 Jan 2016 13:40:30 +0900</pubDate>
    </item>
    <item>
      <title>[Android] BroadcastReceiver 사용하기</title>
      <link>https://dwfox.tistory.com/10</link>
      <description>&lt;center&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Tistory_act --&gt;
&lt;ins class=&quot;adsbygoogle react_code_1&quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/center&gt;
&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14pt; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;BroadCast Receiver란&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;안드로이드 4대 컴포넌트 중에 하나이다. 말 그대로 방송 수신자이며 시스템이나 앱 등에서 이벤트 발생시 방송을 해주는 개념이다. 이렇게 방송된 이벤트는 각 앱에서 필요한 방송 이벤트를 받아들이고 이벤트에 대한 처리를 리시버를 통해 할 수 있게 해준다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14pt; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;SendBroadCast 방송 보내기&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;SendBroadcast라는 Context에 포함된&amp;nbsp;함수를 이용하여 인텐트를 전달한다. Intent에 putExtra를 통해 Integer, boolean, String 등 여러 단일 타입 또는 배열의 혈태로 전달 할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;Intent sendIntent = new Intent(&quot;com.dwfox.myapplication.SEND_BROAD_CAST&quot;);
sendIntent.putExtra(&quot;isBoolean&quot;, true);
sendIntent.putExtra(&quot;sendInteger&quot;, 123);
sendIntent.putExtra(&quot;sendString&quot;, &quot;Intent String&quot;);
sendBroadcast(sendIntent);
&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;b style=&quot;color: rgb(255, 255, 255); font-size: 20px; line-height: 30px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255); font-size: 14pt; background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Receiver 방송 받기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;SendBroadcast를 통해 전달된 Intent를 수신하는 리시버(Receiver)를 구현하여야 한다. 리시버에는 정적리시버와 동적 리시버가 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;정적 리시버 : &lt;/b&gt;한 번 등록하면 해제할 수 없다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;정적리시버는 AndroidManifest.xml에서 recevier를 등록하여 사용하도록 한다. 아래와 같이 리시버를 사용할 클래스와 intent Action name을 등록한다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;xml&quot;&gt;&amp;lt;receiver android:name=&quot;.TestReceiver&quot;&amp;gt;
   &amp;lt;intent-filter&amp;gt;
      &amp;lt;action android:name=&quot;com.dwfox.myapplication.SEND_BROAD_CAST&quot;/&amp;gt;
   &amp;lt;/intent-filter&amp;gt;
&amp;lt;/receiver&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;브로드캐스트 리시버 (BroadcastReceiver)&amp;nbsp;클래스를 구현하여 수신 처리를 등록한다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;public class TestReceiver extends BroadcastReceiver {

    private static final String TAG = TestReceiver.class.getSimpleName();
    @Override
    public void onReceive(Context context, Intent intent) {
        String name = intent.getAction();
            // Intent SendBroadCast로 보낸 action TAG 이름으로 필요한 방송을 찾는다.
	   if(name.equals(&quot;com.dwfox.myapplication.SEND_BROAD_CAST &quot;)){ 
            Log.d(TAG, &quot;BroadcastReceiver :: com.dwfox.myapplication.SEND_BROAD_CAST :: &quot;
            + intent.getStringExtra(&quot;sendString&quot;)); // putExtra를 이용한 String전달
         }
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;동적 리시버 : &lt;/b&gt;등록과 해제가 자유롭다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;정적리시버와는 달리 AndroidManifest.xml에 추가로 입력 할 사항이 없다.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;public class TestActivity extends Activity {

    private static final String TAG = ReceiverVideoFinish.class.getSimpleName();
    BroadcaastReceiver mReceiver;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //브로드캐스트의 액션을 등록하기 위한 인텐트 필터
        IntentFilter intentfilter = new IntentFilter();
        intentfilter.addAction(&quot;com.dwfox.myapplication.SEND_BROAD_CAST&quot;);

        //동적 리시버 구현
        mReceiver = new BroadcastRecevier(){
            @Override
            public void onRecevie(Context context, Intent intent){
                String sendString = intent.getStringExtra(&quot;sendString&quot;);
                Log.d(TAG, sendString);  
            }
        };

        //Receiver 등록
        registerReceiver(mReceiver, intentFilter);
    }
    //등록된 Receiver는 반드시 해제 해주어야 한다.
    unregisterReceiver(mReceiver);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;동적리시버는 등록과 해제가 자유롭게 이루어짐으로서 필요한 부분에 리시버를 등록하고 해지하면서 시스템이나 앱에 부하를 줄일 수 있다. 하지만 &amp;nbsp;해제를 적절하게 해주지 않으면 메모리 릭이 발생한다.&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>broadcast</category>
      <category>Intent</category>
      <category>receiver</category>
      <category>sendBroadcast</category>
      <category>리시버</category>
      <category>브로드캐스트</category>
      <category>안드로이드</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/10</guid>
      <comments>https://dwfox.tistory.com/10#entry10comment</comments>
      <pubDate>Mon, 28 Dec 2015 17:07:54 +0900</pubDate>
    </item>
    <item>
      <title>[MariaDB] MariaDB 설치</title>
      <link>https://dwfox.tistory.com/8</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Ubuntu 14.04 MariaDB 설치하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;MariaDB &lt;/span&gt;&lt;a href=&quot;https://downloads.mariadb.org&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;공식 페이지&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;에 가면 MariaDB 버전과 설치할 OS에 따라 설치방법이 안내되어있다.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Ubuntu 14.04에 MariaDB를 MariaDB 10.1 버전을&amp;nbsp;설치하기 위해 &amp;nbsp;설치방법이 안내 되어있는 페이지로 이동 한다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&amp;amp;distro=Ubuntu&amp;amp;distro_release=trusty--ubuntu_trusty&amp;amp;version=10.1&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&amp;amp;distro=Ubuntu&amp;amp;distro_release=trusty--ubuntu_trusty&amp;amp;version=10.1&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 1px solid rgb(219, 232, 251); padding: 10px; background-color: rgb(219, 232, 251);&quot;&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;ol style=&quot;list-style-type: decimal;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Choose a Dstro : Ubuntu&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Choose a Release : 14.04 &quot;trusty&quot;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Choose a Version : 10.1&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Choose a Mirror : KAIST File Archive&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위와 같이 4단계에 걸쳐 선택하면 Ubunut 명령어를 아래와 같이 볼 수 있게 된다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px; text-align: center; line-height: 1.5;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2614A748567B87CF25&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2614A748567B87CF25&quot; width=&quot;820&quot; height=&quot;559&quot; filename=&quot;20151224-001-mariadb.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center; line-height: 1.5;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;다른 환경이나 버전을 이용할 때 역시 이페이지를 이용하여 설치방법을 가져 올 수 있다.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;아래의 Commands를 입력하고 실행하면 Repository에 MariaDB를 추가한다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;b style=&quot;line-height: 1.5;&quot;&gt;&lt;/b&gt;&lt;/div&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb [arch=amd64,i386] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main'
&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Repository에 추가된 Mariadb를 설치 한다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;sudo apt-get update
sudo apt-get install mariadb-server&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB 실행&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;mysql -u root -p&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;위 명령을 통해 MariaDB를 실행한다. password는 MariaDB를 설치할 때 입력한 패스워드를 입력하면 된다.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Ubuntu&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: 18.6667px;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;MariaDB&amp;nbsp;Service 시작하기&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;service mysql start # 서비스 시작하기
service mysql stop # 서비스 중지하기
service mysql restart # 서비스 다시 시작하기&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://dwfox.tistory.com/17&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;Toad for MySQL 연결하기 - MySQL GUI Tool&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://dwfox.tistory.com/15&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;[MariaDB/Mysql] Ubuntu 14.04 MariDB/Mysql 초기 설정 및 데이터베이스 / 유저 생성&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;</description>
      <category>Dev/DB</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/8</guid>
      <comments>https://dwfox.tistory.com/8#entry8comment</comments>
      <pubDate>Thu, 24 Dec 2015 13:51:58 +0900</pubDate>
    </item>
    <item>
      <title>[Blog]Code Highlighter 적용하기 (티스토리)</title>
      <link>https://dwfox.tistory.com/5</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; color: rgb(0, 87, 102);&quot;&gt;티블로그에 Code Highlighter를 적용하는 방법&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;그나마 코드하이라이트를 적용시켜주는 에디터들도 가끔 소스코드의 확장자명으로 저장하지 않으면 하이라이트가 적용 되지 않는 경우가 많다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;게다가 블로그에 단일 색상으로 붙여넣은 코드들은 읽기도 전에 잘 정리되고 가독성 좋게 꾸며진 코드를 찾게 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Stack Overflow&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;는&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;아래와 같이 코드가 들어간 페이지에는 하이라이트를 적용시켜 가독성을 높일 수 있게 페이지를 구성해 놓았다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;img src=&quot;https://googledrive.com/host/0B1P4xo30B7rXRERqRXh2dGszak0/20151221-001-01-codehighlight.png&quot; border=&quot;0&quot; style=&quot;line-height: 1.5;&quot;&gt;&lt;b style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;lt;StackOverFlow CodeHighlight&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;그래서 이 블로그를 시작하기 전에 개발에 관련된 부분에 소스가 첨부될 때 스크린샷을 찍어 올리는 경우도 있겠지만&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;복붙에 용이하게 코드 하이라이트를 적용시켜보자.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt; color: rgb(0, 51, 153);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;티스토리에 Code HighLight를 적용하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;img src=&quot;https://googledrive.com/host/0B1P4xo30B7rXRERqRXh2dGszak0/20151221-001-02-codehighlight.png&quot; border=&quot;0&quot; style=&quot;line-height: 1.5;&quot;&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;ul style=&quot;list-style-type: square;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;https://highlightjs.org/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;https://highlightjs.org/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt; 이 코드 하이라이트 js를 사용할 것이다.&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;코드 하이라이트에 접속하면 간단한 예제가 나타나고 우측에 &lt;/span&gt;&lt;a href=&quot;https://highlightjs.org/static/demo/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;(Live Demo)&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;를 클릭하면 적용할 수 있는 스타일(테마)과 언어종류를 확인해볼 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em; text-align: center; clear: none; float: none;&quot;&gt;&lt;img src=&quot;https://googledrive.com/host/0B1P4xo30B7rXRERqRXh2dGszak0/20151221-001-03-codehighlight.png&quot; border=&quot;0&quot; style=&quot;text-align: center;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;Get Version을 통해 블로그 HTML&amp;nbsp;에 포함시킬 코드를 확인 할 수 있다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;//cdn.jsdelivr.net/highlight.js/9.0.0/styles/&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;default&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;.min.css&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;&amp;lt;script src=&quot;//cdn.jsdelivr.net/highlight.js/9.0.0/highlight.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;lt;script&amp;gt;hljs.initHighlightingOnLoad();&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em; clear: none; float: none; text-align: center;&quot;&gt;&lt;img src=&quot;https://googledrive.com/host/0B1P4xo30B7rXRERqRXh2dGszak0/20151221-001-04-codehighlight.png&quot; border=&quot;0&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;위 코드를 블로그내 HTML의 &amp;nbsp;&amp;lt;head&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;b style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 11pt;&quot;&gt;여기&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;lt;/haed&amp;gt; 에 포함시키도록 합니다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;스타일을 바꾸기 위해서는 &lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 11pt;&quot;&gt;default &lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;부분을 아래 스타일 디렉토리를 참조하여 이름만 바꾸어 적용시키면 됩니다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;https://github.com/isagalaev/highlight.js/tree/master/src/styles&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;https://github.com/isagalaev/highlight.js/tree/master/src/styles&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: square;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;코드 적용시키기&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;lt;pre&amp;gt;&amp;lt;code class=&quot;언어명&quot;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;하이라이트 시킬 코드 넣기&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;HTML 편집기로 들어가&amp;nbsp;위와 같이 pre사이에 언어를 설정해주고 코드를 넣고 적용시키면 하이라이트가 적용됩니다.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;line-height: 1.5; font-size: 14pt; color: rgb(0, 51, 153);&quot;&gt;※&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; color: rgb(0, 51, 153);&quot;&gt;적용전 코드&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;package com.dwp.myapplication;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.os.Bundle;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.support.design.widget.FloatingActionButton;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.support.design.widget.Snackbar;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.support.v7.app.AppCompatActivity;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.support.v7.widget.Toolbar;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.view.View;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.view.Menu;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;import android.view.MenuItem;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;public class MainActivity extends AppCompatActivity {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; @Override&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; protected void onCreate(Bundle savedInstanceState) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.onCreate(savedInstanceState);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setContentView(R.layout.activity_main);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setSupportActionBar(toolbar);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fab.setOnClickListener(new View.OnClickListener() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Override&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void onClick(View view) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Snackbar.make(view, &quot;Replace with your own action&quot;, Snackbar.LENGTH_LONG)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .setAction(&quot;Action&quot;, null).show();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;line-height: 1.5; font-size: 14pt; color: rgb(0, 51, 153);&quot;&gt;※&amp;nbsp;&lt;/span&gt;&lt;font color=&quot;#003399&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;적용후&amp;nbsp;코드 (&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 28px;&quot;&gt;monokai-sublime&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;Style )&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
package com.dwp.myapplication;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Snackbar.make(view, &quot;Replace with your own action&quot;, Snackbar.LENGTH_LONG)
                        .setAction(&quot;Action&quot;, null).show();
            }
        });
    }
}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;
&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(0, 0, 0);&quot;&gt;※&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(0, 0, 0);&quot;&gt;티스토리 내에 관련 파일을 업로드 시켜 적용시켜도 된다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(0, 0, 0);&quot;&gt;그럴일을 잘 없겠지만 위 사이트가 변경되면 Html Head에 적용시킨 코드 주소를 맞추어 바꾸어 줘야 한다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(0, 0, 0);&quot;&gt;하지만 티스토리에 업로드 시켜 사용하면 바꾸지 않아도 된다.&lt;/span&gt;&lt;/p&gt;</description>
      <category>Blog</category>
      <category>code</category>
      <category>codehighlight</category>
      <category>Dracula</category>
      <category>highlighter</category>
      <category>highlightjs</category>
      <category>티스토리 코드하이라이트</category>
      <category>하이라이터</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/5</guid>
      <comments>https://dwfox.tistory.com/5#entry5comment</comments>
      <pubDate>Mon, 21 Dec 2015 13:19:48 +0900</pubDate>
    </item>
    <item>
      <title>[Android Studio] Keymap 단축키(이클립스) 변경</title>
      <link>https://dwfox.tistory.com/4</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 28px;&quot;&gt;&lt;b&gt;안드로이드 단축키 (Keymap) 설정&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;이클립스를 사용하다 Android Studio를 사용하면 손에 익었던 단축키의 적응 필요하지만 Android Studio에서 단축키를 IDE(visual studio,Emacs,NetBeans 등)별로 가져 올 수 있다.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(255, 0, 0);&quot;&gt;File – Setting – Keymap&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;visual studio,Emacs,NetBeans,eclipse의 기본 단축키로 변경할 수 있다.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;※ 디폴트로 적응하는 것이 다른환경에 적응하는 가장 빠른방법이라고 생각하지만 안드로이드 스튜디오(Intellij)처럼 단축키 셋을 쉽게 바꿀 수 있다면 IDE를 바꾸는데 큰 도움이 될 것이다.&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;img src=&quot;https://googledrive.com/host/0B1P4xo30B7rXRERqRXh2dGszak0/20151218-001-01-keymap.png&quot; border=&quot;0&quot; style=&quot;text-align: center;&quot;&gt;&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;ul style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;원하는 &lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-size: 14pt;&quot;&gt;기능에 &lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;더블클릭 또는 우클릭&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;을 통하여 아래 와 같이 키보드나 마우스 단축키를 설정할 수 있다.&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;img src=&quot;https://googledrive.com/host/0B1P4xo30B7rXRERqRXh2dGszak0/20151218-001-02-keymap.png&quot; border=&quot;0&quot;&gt;&lt;/p&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: 14pt; line-height: 22px;&quot;&gt;&lt;b&gt;단축키를 등록 또는 수정할 수 있는 창이 뜬다.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;ol style=&quot;list-style-type: decimal;&quot;&gt;&lt;li style=&quot;line-height: 2;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;First Stroke :&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;Key를 입력하면&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt; 자동으로 아래와 같이 설정된다.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;line-height: 2;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Second Stroke : &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;First Stroke외&amp;nbsp;다른 단축키를 등록하면 중복으로 사용할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;line-height: 2;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Shortcut Preview : &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;단축키로 등록된 조합을 미리 보여준다.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;line-height: 2;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Conflicts &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;: 미리 설정된 단축키와 충돌여부를 알려준다. 미리설정된 Action의 이름과 부가적인 내용이 표시되므로 충동 Action을 변경하거나 다른 단축키를 등록하여 설정하도록 한다.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;img src=&quot;https://googledrive.com/host/0B1P4xo30B7rXRERqRXh2dGszak0/20151218-001-03-keymap.png&quot; border=&quot;0&quot; style=&quot;line-height: 1.5; text-align: center;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;Copy 버튼을 통해 Keymap 설정 복사&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;Copy를 통하여 기본 IDE 종류에 따른 설정을 그대로 가져와 기존 keymap 설정을 놔두고 &amp;nbsp;커스텀하여 사용할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;설정된 Keymap Export 하기&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;커스텀된 Keymap을 새로운 환경에 다시 적용하려면 적지않은 시간을 쏟아 부어야 할지도 모른게된다. 안드로이드 스튜디오는 설정(Settings)과 관련된 부분을 Export하여 jar파일로 setting파일을 생성해 준다.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;File - Export&amp;nbsp;Settings&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;메뉴를 통하여 설정과 관련된 부분을 선택적으로 Export 할 수 있게 된다.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Keymap을 Export 하기 위하여 Key maps 부분을 체크하고 경로를 설정하여 Export 하여 추후 다른 환경에서 사용할 때 또는 새롭게 설치할 때 Import settings를 통하여 가져와 사용하면 된다.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android Studio</category>
      <category>keymap</category>
      <category>단축키</category>
      <category>스튜디오</category>
      <category>안드로이드</category>
      <category>안드로이드 스튜디오</category>
      <category>이클립스</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/4</guid>
      <comments>https://dwfox.tistory.com/4#entry4comment</comments>
      <pubDate>Fri, 18 Dec 2015 13:11:43 +0900</pubDate>
    </item>
    <item>
      <title>[Android Studio] Javadoc 설정</title>
      <link>https://dwfox.tistory.com/1</link>
      <description>&lt;center&gt;&lt;br /&gt;
&lt;style&gt;
.Tistory_act  { width:320px; height: 250px; }
@media(min-width: 400px) { .Tistory_act  { width: 336px; height: 280px; } }
@media(min-width: 768px) { .Tistory_act  { width: 720px; height: 90px; } }
@media(min-width: 1440px) { .Tistory_act  { width: 820px; height: 180px; } }
&lt;/style&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle Tistory_act &quot; style=&quot;display:inline-block&quot; data-ad-client=&quot;ca-pub-4155860538151763&quot; data-ad-slot=&quot;3007592334&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/center&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;JavaDoc 이란?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ul style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;JavaDoc이란&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Java Document의 줄임말로 자바 문서이다. JavaDoc은 자바에서 제공하는 클래스와 메소드를 문서화 하며 API 문서를 제작할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;JavaDoc Annotation&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@author : 제작자(문서 또는 클래스 상에 표기 )&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@version :&amp;nbsp;버전&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;@exception : 메소드의 예외 기술&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@throws : 예외 Throws 기술&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@deprecated : 다음버전에 지원하지 않는 메소드 알림&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@param : 메소드 파라미터 기술&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 24px;&quot;&gt;@return : 리턴 타입 기술 ( void 이외에 리턴타입이 존재할 때 작성 )&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@serial : 기본적으로 직렬화 할 수 있는 클래스의 멤버를 설명&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@see : 클래스나 인터페이스, 메소드, 생성자 혹은 URL에 대한 전후 참조 표시&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;@since : Tag들이 언제 추가되었는지 기술&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 4em;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Android Stuido에서 JavaDoc 보기 설정&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;하기&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 20px;&quot;&gt;( ※ Android Studio에서는&amp;nbsp;Javadoc 보기가 기본설정이 되어 있지 않다. )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: square;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;File - Setting&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 269px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/255A0842567106A00C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F255A0842567106A00C&quot; width=&quot;269&quot; height=&quot;424&quot; filename=&quot;javadocs-1.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;list-style-type: square;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Editor - General - Show quick doc on mouse move&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 500px; line-height: 1.5;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2261483E5671084724&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2261483E5671084724&quot; width=&quot;500&quot; height=&quot;254&quot; filename=&quot;javadocs-2.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;line-height: 1.5;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 24px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;Doc 작성하기&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;생성된 메소드위에 /**를 입력하면 파라미터와 리턴타입을 자동을 생성하고 아래와 같이 설명을 작성하여 완료한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 11pt; line-height: 24px;&quot;&gt;아래와 같이 Annotation Tag들에 대하여 아래와 같이 마우스 오버를 하면 해당 메소드나 클래스에 대한 JavaDoc 정보들을 확인 할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;java&quot;&gt;&lt;code class=&quot;java&quot;&gt;
/**
 * Doc Test 입니다.
 * @param test01 파라미터 설명 01
 * @param test02 파라미터 설명 03
 * @param test03 파라미터 설명 03
 * @turn 리턴 설명
 */
&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;code class=&quot;java&quot;&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 500px; text-align: center;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/243E154F56736B6D13&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F243E154F56736B6D13&quot; width=&quot;500&quot; height=&quot;393&quot; filename=&quot;javadocs-3.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;text-align: center;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; line-height: 28px;&quot;&gt;&lt;b&gt;안드로이드 스튜디오에서 JavaDoc Generate 하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/code&gt;&lt;ul style=&quot;list-style-type: square;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Tool - Generate JavaDoc&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;해당 메뉴를 선택하며 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Generate JavaDoc scope&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; 항목에 범위를 설정한다.&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;(프로젝트 전체, 모듈 앱, File 이 기본 선택이며 Custom scope를 통해 자신이 필요한 범위를 설정한다.)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Output directory: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;를 통해&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;JavaDoc을 생성하기&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 1.5; font-size: 11pt;&quot;&gt;원하는 디렉토리 위치를 설정한다.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;Tag범위 등을 설정하고&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;&lt;b&gt;Other command line arguments:&lt;/b&gt;란에&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;-encoding UTF&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);&quot;&gt;-8 -charset UTF-8 -docencoding UTF-8&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;과 같이 인코딩 프로젝트 설정을 해주어야 Generating 중에 오류가 나지 않을 것이다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 2em;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 22px;&quot;&gt;완료가 되면 지정한 디렉토리에 패키지 명의 폴더와 JavaDoc 파일 (Html)이 생성된다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Dev/Android</category>
      <category>Android</category>
      <category>Android Stuido</category>
      <category>javadoc</category>
      <category>안드로이드</category>
      <category>안드로이드 스튜디오</category>
      <author>DWFOX</author>
      <guid isPermaLink="true">https://dwfox.tistory.com/1</guid>
      <comments>https://dwfox.tistory.com/1#entry1comment</comments>
      <pubDate>Wed, 16 Dec 2015 15:43:17 +0900</pubDate>
    </item>
  </channel>
</rss>