{"id":1233,"date":"2023-03-18T09:22:27","date_gmt":"2023-03-18T01:22:27","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1233"},"modified":"2023-04-29T09:34:32","modified_gmt":"2023-04-29T01:34:32","slug":"compilation-of-android-development-tips","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/18\/compilation-of-android-development-tips\/","title":{"rendered":"Android\u5f00\u53d1\u5c0f\u6280\u5de7\u6574\u7406"},"content":{"rendered":"<h3>TextView\u8bbe\u7f6e\u4e2d\u5212\u7ebf<\/h3>\n<pre><code class=\"language-java\">textView.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);<\/code><\/pre>\n<p><!-- more --><\/p>\n<h3>\u83b7\u53d6\u989c\u8272\u8d44\u6e90<\/h3>\n<pre><code class=\"language-java\">textView.setTextColor(ContextCompat.getColor(context, R.color.colorPrimary));\ntextView.setTextColor(context.getResources().getColor(R.color.colorPrimary));<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TextView\u8bbe\u7f6e\u4e2d\u5212\u7ebf textView.getPaint().setFlags(Paint.STRIKE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-1233","post","type-post","status-publish","format-standard","hentry","category-android-basic"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1233"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1233\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}