

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>seafile &#8211; Max的程式語言筆記</title>
	<atom:link href="https://stackoverflow.max-everyday.com/tag/seafile/feed/" rel="self" type="application/rss+xml" />
	<link>https://stackoverflow.max-everyday.com</link>
	<description>我要當一個豬頭，快樂過每一天</description>
	<lastBuildDate>Mon, 19 Jun 2017 17:50:20 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://stackoverflow.max-everyday.com/wp-content/uploads/2017/02/max-stackoverflow-256.png</url>
	<title>seafile &#8211; Max的程式語言筆記</title>
	<link>https://stackoverflow.max-everyday.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>如何在toolbar 裡加icon,  然後只彈出一個小小的menu 的 dialog</title>
		<link>https://stackoverflow.max-everyday.com/2017/06/pop-up-menu-dialog/</link>
					<comments>https://stackoverflow.max-everyday.com/2017/06/pop-up-menu-dialog/#respond</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Mon, 19 Jun 2017 17:50:20 +0000</pubDate>
				<category><![CDATA[Android筆記]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[seafile]]></category>
		<guid isPermaLink="false">http://stackoverflow.max-everyday.com/?p=912</guid>

					<description><![CDATA[toolbar 裡加icon很簡單，寫在 Act...]]></description>
										<content:encoded><![CDATA[<p>toolbar 裡加icon很簡單，寫在 Activity 的：</p>
<pre>@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.menu_main_tab2015, menu);
    return true;
}</pre>
<hr />
<p>menu 的判斷寫在 Activity 的：</p>
<pre>@Override
public boolean onOptionsItemSelected(MenuItem item) {
    // Handle action bar item clicks here. The action bar will
    // automatically handle clicks on the Home/Up button, so long
    // as you specify a parent activity in AndroidManifest.xml.
    int id = item.getItemId();</pre>
<hr />
<p>如何彈出 menu dialog, 先寫一個 class , class 裡放一個 interface, 然後在 activity 裡去 implements 那一個 interface, 然後就可以變成在 fragment 裡去執行 activity 裡的 function.</p>
<p>sample, 主程式：</p>
<p><a href="https://github.com/haiwen/seadroid/blob/master/app/src/main/java/com/seafile/seadroid2/ui/activity/BrowserActivity.java">https://github.com/haiwen/seadroid/blob/master/app/src/main/java/com/seafile/seadroid2/ui/activity/BrowserActivity.java</a></p>
<p>&nbsp;</p>
<p>副程式：</p>
<p><a href="https://github.com/haiwen/seadroid/blob/master/app/src/main/java/com/seafile/seadroid2/ui/dialog/SortFilesDialogFragment.java">https://github.com/haiwen/seadroid/blob/master/app/src/main/java/com/seafile/seadroid2/ui/dialog/SortFilesDialogFragment.java</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2017/06/pop-up-menu-dialog/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>BottomSheet 彈出式選單</title>
		<link>https://stackoverflow.max-everyday.com/2017/03/bottomsheet/</link>
					<comments>https://stackoverflow.max-everyday.com/2017/03/bottomsheet/#respond</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Thu, 02 Mar 2017 18:15:40 +0000</pubDate>
				<category><![CDATA[Android筆記]]></category>
		<category><![CDATA[Dropboxlike開發筆記]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Dropboxlike]]></category>
		<category><![CDATA[seafile]]></category>
		<guid isPermaLink="false">http://stackoverflow.max-everyday.com/?p=291</guid>

					<description><![CDATA[這個套件真的又神奇又方便，可以直接把 menu ...]]></description>
										<content:encoded><![CDATA[<p>這個套件真的又神奇又方便，可以直接把 menu 裡的 xml 變成漂亮的彈出式選單。</p>
<p>官方網站：<a href="http://cocosw.com/BottomSheet/">http://cocosw.com/BottomSheet/</a></p>
<p>github: <a href="https://github.com/soarcn/BottomSheet">https://github.com/soarcn/BottomSheet</a></p>
<blockquote><p>One way to present a set of actions to a user is with bottom sheets, a sheet of paper that slides up from the bottom edge of the screen. Bottom sheets offer flexibility in the display of clear and simple actions that do not need explanation.</p></blockquote>
<p>我在使用上有遇到一個問題，就是無法在builder 裡 remove menu 的 group, 從外部無法存取到作者官方版本裡 private 的 menu object. 只能透過overwrite 作者的 object 並增加新的 method 才能做到。</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-292" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2017/03/BottomSheet.png" alt="" width="200" height="355" /></p>
<p>&nbsp;</p>
<p>更多執行畫面：</p>
<p><img decoding="async" src="https://github.com/soarcn/BottomSheet/blob/master/art/image1.png?raw=true" alt="Sample" /> <img decoding="async" src="https://github.com/soarcn/BottomSheet/blob/master/art/image2.png?raw=true" alt="Sample" /> <img decoding="async" src="https://github.com/soarcn/BottomSheet/blob/master/art/image3.png?raw=true" alt="Sample" /> <img decoding="async" src="https://github.com/soarcn/BottomSheet/blob/master/art/image4.png?raw=true" alt="Sample" /> <img decoding="async" src="https://github.com/soarcn/BottomSheet/blob/master/art/image5.png?raw=true" alt="Sample" /></p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2017/03/bottomsheet/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>seafile 的 batch mode 還有檔案的非法字元</title>
		<link>https://stackoverflow.max-everyday.com/2017/02/seafile-batch-mode/</link>
					<comments>https://stackoverflow.max-everyday.com/2017/02/seafile-batch-mode/#respond</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Wed, 22 Feb 2017 09:37:35 +0000</pubDate>
				<category><![CDATA[Android筆記]]></category>
		<category><![CDATA[Dropboxlike開發筆記]]></category>
		<category><![CDATA[Dropboxlike]]></category>
		<category><![CDATA[seafile]]></category>
		<guid isPermaLink="false">http://stackoverflow.max-everyday.com/?p=235</guid>

					<description><![CDATA[seafile 的 batch mode 是使用...]]></description>
										<content:encoded><![CDATA[<p>seafile 的 batch mode 是使用冒號來分隔檔名，拆解冒號的範例如下：</p>
<pre>String str = "aaa:bbb:ccc:ddd";
String[] tokens = str.split(":");
for (String token:tokens) {
 System.out.println(token);
}</pre>
<p>檔案（或是目錄）的非法字元(保留字元) 說明請看：<br />
<a href="https://stackoverflow.max-everyday.com/2017/02/filename-rule/">https://stackoverflow.max-everyday.com/2017/02/filename-rule/</a></p>
<p>上面這篇的重要是要說，冒號其實是合法字元，而且 Dropbox 支援去同步有冒號的目錄。</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2017/02/seafile-batch-mode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>universal image loader downlaod from https with post method</title>
		<link>https://stackoverflow.max-everyday.com/2017/02/universal-image-loader-downlaod-from-https-with-post-method/</link>
					<comments>https://stackoverflow.max-everyday.com/2017/02/universal-image-loader-downlaod-from-https-with-post-method/#respond</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Sun, 19 Feb 2017 00:09:23 +0000</pubDate>
				<category><![CDATA[Android筆記]]></category>
		<category><![CDATA[Dropboxlike開發筆記]]></category>
		<category><![CDATA[Dropboxlike]]></category>
		<category><![CDATA[seafile]]></category>
		<guid isPermaLink="false">http://stackoverflow.max-everyday.com/?p=184</guid>

					<description><![CDATA[認識 Android-Universal-Ima...]]></description>
										<content:encoded><![CDATA[<p>認識 Android-Universal-Image-Loader<br />
<a href="https://github.com/nostra13/Android-Universal-Image-Loader">https://github.com/nostra13/Android-Universal-Image-Loader</a></p>
<p>參數說明：<br />
<a href="https://github.com/nostra13/Android-Universal-Image-Loader/wiki/Useful-Info">https://github.com/nostra13/Android-Universal-Image-Loader/wiki/Useful-Info</a></p>
<p>&nbsp;</p>
<p>universal image loader 似乎內建直接用是 http + get, 要下載自有https 憑證會出問題。解法：<br />
<a href="https://github.com/nostra13/Android-Universal-Image-Loader/issues/713">https://github.com/nostra13/Android-Universal-Image-Loader/issues/713</a></p>
<p>增加header 範例：<br />
android universal image loader not caching or saving image<br />
<a href="http://stackoverflow.com/questions/25424103/android-universal-image-loader-not-caching-or-saving-image">http://stackoverflow.com/questions/25424103/android-universal-image-loader-not-caching-or-saving-image</a></p>
<p>Map&lt;String, String&gt; headers = new HashMap&lt;String, String&gt;();<br />
headers.put(&#8220;key&#8221;, Commons.CURRENT_ACTIVE_PROFILE.getKey());<br />
headers.put(&#8220;secret&#8221;, Commons.CURRENT_ACTIVE_PROFILE.getSecret());</p>
<p>displayImageOptions = new DisplayImageOptions.Builder()<br />
.extraForDownloader(headers)</p>
<p>&nbsp;</p>
<hr />
<p>使用範例：<br />
<a href="https://github.com/haiwen/seadroid/search?utf8=%E2%9C%93&amp;q=AuthImageDownloader">https://github.com/haiwen/seadroid/search?utf8=%E2%9C%93&amp;q=AuthImageDownloader</a></p>
<div class="code-list-item code-list-item-public repo-specific">
<p class="title">下載大頭照的：</p>
<p class="title"><a title="app/src/main/java/com/seafile/seadroid2/avatar/AuthImageDownloader.java" href="https://github.com/haiwen/seadroid/blob/d6175541b938b65944ca1d265a99ae02235e24df/app/src/main/java/com/seafile/seadroid2/avatar/AuthImageDownloader.java">app/src/main/java/com/seafile/seadroid2/avatar/AuthImageDownloader.java</a><br />
<span class="text-small text-gray match-count">Showing the top two matches.</span> <span class="text-small text-gray updated-at">Last indexed on Sep 15, 2016.</span></p>
<p class="title">public AuthImageDownloader(Context context, int connectTimeout,</p>
<p class="title">呼叫的主程式：</p>
<p class="title"><a title="app/src/main/java/com/seafile/seadroid2/SeadroidApplication.java" href="https://github.com/haiwen/seadroid/blob/d6175541b938b65944ca1d265a99ae02235e24df/app/src/main/java/com/seafile/seadroid2/SeadroidApplication.java">app/src/main/java/com/seafile/seadroid2/SeadroidApplication.java</a><br />
<span class="text-small text-gray match-count">Showing the top two matches.</span> <span class="text-small text-gray updated-at">Last indexed on Sep 15, 2016.</span></p>
<p class="title">.imageDownloader(new AuthImageDownloader(context, 10000, 10000))</p>
</div>
<hr />
<p class="title">範例2號：<br />
<a href="https://github.com/nostra13/Android-Universal-Image-Loader/issues/188">https://github.com/nostra13/Android-Universal-Image-Loader/issues/188</a></p>
<hr />
<p class="title">範例3:<br />
<a href="http://stackoverflow.com/questions/13586183/accessing-protected-images-in-universal-image-loader/29233984#29233984">http://stackoverflow.com/questions/13586183/accessing-protected-images-in-universal-image-loader/29233984#29233984</a></p>
<p class="title">
<hr />
<p class="title">PS:<br />
W/ImageLoader: Try to initialize ImageLoader which had already been initialized before. To re-init ImageLoader with new configuration call ImageLoader.destroy() at first.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2017/02/universal-image-loader-downlaod-from-https-with-post-method/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
