{"id":570,"date":"2010-05-08T00:01:20","date_gmt":"2010-05-07T23:01:20","guid":{"rendered":"http:\/\/www.lightsoft.se\/?p=570"},"modified":"2010-05-08T11:31:00","modified_gmt":"2010-05-08T10:31:00","slug":"blogging-windows-live-writer-2","status":"publish","type":"post","link":"https:\/\/www.lightsoftai.com\/?p=570","title":{"rendered":"Blogging: Windows Live Writer"},"content":{"rendered":"<p>I have started to use <a href=\"http:\/\/windowslivewriter.spaces.live.com\/\">Windows Live Writer<\/a> for my blogging.<\/p>\n<p>A wonderful tool to do offline blogging and cross posting to<\/p>\n<p>multiple blogs. Live Writer handles all the common blog sites and tools.<\/p>\n<p>Live writer has a large number of plugins that easily can be deployed.<\/p>\n<p>So far I can recommend the following plugins:<\/p>\n<p>For cross posting:<\/p>\n<p><a href=\"http:\/\/xpollinate.codeplex.com\/\">http:\/\/xpollinate.codeplex.com\/<\/a><\/p>\n<p>For code samples:<br \/>\n<a title=\"http:\/\/www.amergerzic.com\/post\/WLWSourceCodePlugin.aspx\" href=\"http:\/\/www.amergerzic.com\/post\/WLWSourceCodePlugin.aspx\">http:\/\/www.amergerzic.com\/post\/WLWSourceCodePlugin.aspx<\/a><\/p>\n<p>[sourcecode language=&#8221;java&#8221;]<br \/>\npackage se.lightsoft.common.gui;<\/p>\n<p>import android.R;<br \/>\nimport android.content.Context;<br \/>\nimport android.content.res.TypedArray;<br \/>\nimport android.util.AttributeSet;<br \/>\nimport android.view.LayoutInflater;<br \/>\nimport android.view.View;<br \/>\nimport android.widget.LinearLayout;<br \/>\nimport android.widget.TextView;<br \/>\nimport android.widget.Toast;<\/p>\n<p>public class Toolbar extends LinearLayout {<\/p>\n<p>\tpublic Toolbar(final Context context) {<br \/>\n\t\tsuper(context);<br \/>\n\t}<\/p>\n<p>\tpublic Toolbar(final Context con, AttributeSet attrs) {<br \/>\n\t\tsuper(con,attrs);<br \/>\n\t\tsetOrientation(HORIZONTAL);<br \/>\n\t\tsetBackgroundColor(getResources().<br \/>\n\t\t\t\tgetColor(android.R.color.transparent));<\/p>\n<p>\t\tLayoutInflater inflater = (LayoutInflater)<br \/>\n\t\tcon.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<br \/>\n\t\tinflater.inflate(R.layout.navigation, this);<\/p>\n<p>\t\tTypedArray a = con.obtainStyledAttributes(attrs,<br \/>\n\t\t\t\tR.styleable.Toolbar);<br \/>\n\t\tString option = a.getString(R.styleable.Toolbar_textViewId);<\/p>\n<p>\t\tString resourceId = &#8220;se.lightsoft.demo:id\/&#8221;+option;<br \/>\n\t\tint optionId = getResources().getIdentifier(resourceId,null,null);<br \/>\n\t\tTextView currentOption = (TextView) findViewById(optionId);<br \/>\n\t\tcurrentOption.setBackgroundColor(getResources().<br \/>\n\t\t\t\tgetColor(android.R.color.white));<br \/>\n\t\tcurrentOption.setTextColor(getResources().<br \/>\n\t\t\t\tgetColor(android.R.color.black));<br \/>\n\t\tcurrentOption.requestFocus(optionId);<br \/>\n\t\tcurrentOption.setFocusable(false);<br \/>\n\t\tcurrentOption.setClickable(false);<\/p>\n<p>\/\/\t\tTextView option1 = (TextView) findViewById(R.id.option1);<br \/>\n\/\/\t\toption1.setOnClickListener(new OnClickListener() {<br \/>\n\/\/\t\t\tpublic void onClick(View v) {<br \/>\n\/\/\t\t\t\tCharSequence txt = &#8220;Hello!&#8221;;<br \/>\n\/\/\t\t\t\tint len = Toast.LENGTH_SHORT;<br \/>\n\/\/\t\t\t\tToast toast = Toast.makeText(con, txt, len);<br \/>\n\/\/\t\t\t\ttoast.show();<br \/>\n\/\/\t\t\t}<br \/>\n\/\/\t\t});<br \/>\n\t}<br \/>\n}<br \/>\n[\/sourcecode]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have started to use Windows Live Writer for my blogging. A wonderful tool to do offline blogging and cross posting to multiple blogs. Live Writer handles all the common blog sites and tools. Live writer has a large number of plugins that easily can be deployed. So far I can recommend the following plugins: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[51],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-coding","tag-tools"],"_links":{"self":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=570"}],"version-history":[{"count":5,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":571,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions\/571"}],"wp:attachment":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}