锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲精品高清在线,国产亚洲精品VA片在线播放,亚洲一级特黄大片在线观看http://www.tkk7.com/liuyanbo/category/49628.htmlzh-cnSun, 26 May 2019 06:22:32 GMTSun, 26 May 2019 06:22:32 GMT60Ubuntu16.04閰嶇疆Android緙栬瘧鐜http://www.tkk7.com/liuyanbo/archive/2019/04/03/433702.html澶╁畤鎭掓槦澶╁畤鎭掓槦Wed, 03 Apr 2019 03:29:00 GMThttp://www.tkk7.com/liuyanbo/archive/2019/04/03/433702.htmlhttp://www.tkk7.com/liuyanbo/comments/433702.htmlhttp://www.tkk7.com/liuyanbo/archive/2019/04/03/433702.html#Feedback0http://www.tkk7.com/liuyanbo/comments/commentRss/433702.htmlhttp://www.tkk7.com/liuyanbo/services/trackbacks/433702.html
sudo apt-get install -y  openjdk-8-jdk openjdk-8-jre git  build-essential libncurses5-dev:i386  libx11-dev:i386  libreadline6-dev:i386 g++-multilib  tofrodos python-markdown libxml2-utils xsltproc   dpkg-dev  libesd0-dev  git-core gnupg flex bison gperf build-essential  zip curl  gcc-multilib g++-multilib  libc6-dev-i386  lib32ncurses5-dev x11proto-core-dev libx11-dev   ccache   libxml2-utils xsltproc unzip m4 python-pip smbclient libgl1-mesa-dev libsdl1.2-dev zlib1g-dev:i386  lib32z-dev zlib1g-dev lib32z1 lib32ncurses5 lib32stdc++6 libbz2-1.0:i386 libssl-dev


]]>
瑙e帇System.img鐨勬柟娉?/title><link>http://www.tkk7.com/liuyanbo/archive/2019/04/03/433701.html</link><dc:creator>澶╁畤鎭掓槦</dc:creator><author>澶╁畤鎭掓槦</author><pubDate>Wed, 03 Apr 2019 03:27:00 GMT</pubDate><guid>http://www.tkk7.com/liuyanbo/archive/2019/04/03/433701.html</guid><wfw:comment>http://www.tkk7.com/liuyanbo/comments/433701.html</wfw:comment><comments>http://www.tkk7.com/liuyanbo/archive/2019/04/03/433701.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuyanbo/comments/commentRss/433701.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuyanbo/services/trackbacks/433701.html</trackback:ping><description><![CDATA[<br /><pre bash"="" style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; padding: 15px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; overflow-wrap: normal; color: #abb2bf; background: #282c34; border: 1px solid #cccccc; border-radius: 4px; word-break: break-word !important;"><code style="box-sizing: border-box; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; color: inherit; background-color: transparent; border-radius: 0px; padding: 0px; border: none; vertical-align: middle;">$ simg2img system.img system.ext4.img<br /><div>$ mkdir system <br />$ sudo mount -t ext4 system.ext4.img system</div></code></pre><img src ="http://www.tkk7.com/liuyanbo/aggbug/433701.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuyanbo/" target="_blank">澶╁畤鎭掓槦</a> 2019-04-03 11:27 <a href="http://www.tkk7.com/liuyanbo/archive/2019/04/03/433701.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>l2tp vpn 鍦ˋndroid6.0/4G緗戠粶妯″紡涓嬩笉鐢熸晥鐨勫鐞嗘柟娉?/title><link>http://www.tkk7.com/liuyanbo/archive/2017/05/31/432563.html</link><dc:creator>澶╁畤鎭掓槦</dc:creator><author>澶╁畤鎭掓槦</author><pubDate>Wed, 31 May 2017 06:48:00 GMT</pubDate><guid>http://www.tkk7.com/liuyanbo/archive/2017/05/31/432563.html</guid><wfw:comment>http://www.tkk7.com/liuyanbo/comments/432563.html</wfw:comment><comments>http://www.tkk7.com/liuyanbo/archive/2017/05/31/432563.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuyanbo/comments/commentRss/432563.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuyanbo/services/trackbacks/432563.html</trackback:ping><description><![CDATA[×#×#4636#×#× 榪涙墜鏈轟俊鎭紝“鍒囨崲DNS媯鏌?#8221;淇敼涓?allowed<img src ="http://www.tkk7.com/liuyanbo/aggbug/432563.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuyanbo/" target="_blank">澶╁畤鎭掓槦</a> 2017-05-31 14:48 <a href="http://www.tkk7.com/liuyanbo/archive/2017/05/31/432563.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android婧愮爜緙栬瘧鐜涓泦鎴恖eakcanary鍐呭瓨娉勯湶媯嫻嬪伐鍏風殑鏂規硶http://www.tkk7.com/liuyanbo/archive/2016/12/31/432223.html澶╁畤鎭掓槦澶╁畤鎭掓槦Sat, 31 Dec 2016 09:06:00 GMThttp://www.tkk7.com/liuyanbo/archive/2016/12/31/432223.htmlhttp://www.tkk7.com/liuyanbo/comments/432223.htmlhttp://www.tkk7.com/liuyanbo/archive/2016/12/31/432223.html#Feedback0http://www.tkk7.com/liuyanbo/comments/commentRss/432223.htmlhttp://www.tkk7.com/liuyanbo/services/trackbacks/432223.html
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS) 
LOCAL_STATIC_JAVA_AAR_LIBRARIES := leakcanary-android-aar leakcanary-watcher-aar leakcanary-analyzer-aar 
LOCAL_STATIC_JAVA_LIBRARIES :=  haha
LOCAL_MODULE_TAGS := optional 
LOCAL_AAPT_FLAGS := \
    --auto-add-overlay \
    --extra-packages com.squareup.leakcanary    
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_SRC_FILES := \
        $(call all-java-files-under, src)  
LOCAL_PACKAGE_NAME := XXXXX 
include $(BUILD_PACKAGE)

include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := 
        haha:libs/haha-2.0.3.jar \
        leakcanary-android-aar:libs/leakcanary-android-1.5.aar \
        leakcanary-watcher-aar:libs/leakcanary-watcher-1.5.aar \
        leakcanary-analyzer-aar:libs/leakcanary-analyzer-1.5.aar 
include $(BUILD_MULTI_PREBUILT)

include $(call all-makefiles-under,$(LOCAL_PATH))



]]>
Ubuntu 14.04 閰嶇疆Android緙栬瘧鐜http://www.tkk7.com/liuyanbo/archive/2016/06/22/430988.html澶╁畤鎭掓槦澶╁畤鎭掓槦Wed, 22 Jun 2016 06:37:00 GMThttp://www.tkk7.com/liuyanbo/archive/2016/06/22/430988.htmlhttp://www.tkk7.com/liuyanbo/comments/430988.htmlhttp://www.tkk7.com/liuyanbo/archive/2016/06/22/430988.html#Feedback0http://www.tkk7.com/liuyanbo/comments/commentRss/430988.htmlhttp://www.tkk7.com/liuyanbo/services/trackbacks/430988.html1.瀹夎鐩稿叧杞歡
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev libgl1-mesa-dev gcc-multilib g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libsdl-dev libesd0-dev libncurses5-dev lib32ncurses5 lib32stdc++6 rapidsvn nautilus-open-terminal libswitch-perl subversion openjdk-7-jdk lib32z1 libusb-dev libpcap-dev lib32bz2-1.0 libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9

2.璁劇疆鐜鍙橀噺錛屼慨鏀?bashrc
export ANDROID_SDK_HOME=/home/xxx/android_env/adt-bundle-linux-x86_64/sdk
export ANDROID_HOME=/home/xxx/android_env/adt-bundle-linux-x86_64/sdk
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JRE_HOME=$JAVA_HOME/jre
export PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/platform-tools:$GRADLE_HOME/bin:$PATH:
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib
export USE_CCACHE=1
export MAVEN_HOME=/home/xxx/android_env/apache-maven-3.3.9/
export GRADLE_HOME=/home/xxx/android_env/gradle-2.10
export GRADLE_USER_HOME=/home/xxx/android_env/gradle-2.10
export ANT_HOME=/home/xxx/android_env/apache-ant-1.9.7
export PATH=$GRADLE_HOME/bin:$MAVEN_HOME/bin:$ANT_HOME/bin:$PATH
export GOROOT=/root/go
export GOPATH=/root/goworkspace
export PATH="/root/go/bin:/root/goworkspace/bin:"$PATH


]]>
濡備綍瑙e喅Android 5.0涓嚭鐜扮殑璀﹀憡錛歋ervice Intent must be explicit http://www.tkk7.com/liuyanbo/archive/2016/05/31/430715.html澶╁畤鎭掓槦澶╁畤鎭掓槦Tue, 31 May 2016 05:19:00 GMThttp://www.tkk7.com/liuyanbo/archive/2016/05/31/430715.htmlhttp://www.tkk7.com/liuyanbo/comments/430715.htmlhttp://www.tkk7.com/liuyanbo/archive/2016/05/31/430715.html#Feedback0http://www.tkk7.com/liuyanbo/comments/commentRss/430715.htmlhttp://www.tkk7.com/liuyanbo/services/trackbacks/430715.html1銆佽緗瓵ction鍜宲ackageName錛?br style="word-wrap: break-word;" />鍙傝冧唬鐮佸涓嬶細
Intent mIntent = new Intent();
mIntent.setAction("XXX.XXX.XXX");//浣犲畾涔夌殑service鐨刟ction
mIntent.setPackage(getPackageName());//榪欓噷浣犻渶瑕佽緗綘搴旂敤鐨勫寘鍚?/span>
context.startService(mIntent);
姝ゆ柟寮忔槸google瀹樻柟鎺ㄨ崘浣跨敤鐨勮В鍐蟲柟娉曘?/span>

2銆佸皢闅愬紡鍚姩杞崲涓烘樉紺哄惎鍔細
public static Intent getExplicitIntent(Context context, Intent implicitIntent) {
        PackageManager pm = context.getPackageManager();
        List<ResolveInfo> resolveInfo = pm.queryIntentServices(implicitIntent, 0);
        if (resolveInfo == null || resolveInfo.size() != 1) {
            return null;
        }
        ResolveInfo serviceInfo = resolveInfo.get(0);
        String packageName = serviceInfo.serviceInfo.packageName;
        String className = serviceInfo.serviceInfo.name;
        ComponentName component = new ComponentName(packageName, className);
        Intent explicitIntent = new Intent(implicitIntent);
        explicitIntent.setComponent(component);
        return explicitIntent;
    }
璋冪敤鏂瑰紡濡備笅錛?/span>
Intent mIntent = new Intent();
mIntent.setAction("XXX.XXX.XXX");
Intent eintent = new Intent(getExplicitIntent(mContext,mIntent));
context.startService(eintent);



]]>
Media scan 鐨勪嬌鐢ㄦ柟娉?/title><link>http://www.tkk7.com/liuyanbo/archive/2012/11/23/391795.html</link><dc:creator>澶╁畤鎭掓槦</dc:creator><author>澶╁畤鎭掓槦</author><pubDate>Fri, 23 Nov 2012 01:12:00 GMT</pubDate><guid>http://www.tkk7.com/liuyanbo/archive/2012/11/23/391795.html</guid><wfw:comment>http://www.tkk7.com/liuyanbo/comments/391795.html</wfw:comment><comments>http://www.tkk7.com/liuyanbo/archive/2012/11/23/391795.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuyanbo/comments/commentRss/391795.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuyanbo/services/trackbacks/391795.html</trackback:ping><description><![CDATA[<br /><div><a href="http://www.tkk7.com/Green-nut/articles/336256.html">http://www.tkk7.com/Green-nut/articles/336256.html</a></div><img src ="http://www.tkk7.com/liuyanbo/aggbug/391795.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuyanbo/" target="_blank">澶╁畤鎭掓槦</a> 2012-11-23 09:12 <a href="http://www.tkk7.com/liuyanbo/archive/2012/11/23/391795.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ListView綰跨▼鍒鋒柊寮傚父鐨勯棶棰?/title><link>http://www.tkk7.com/liuyanbo/archive/2012/09/13/387616.html</link><dc:creator>澶╁畤鎭掓槦</dc:creator><author>澶╁畤鎭掓槦</author><pubDate>Thu, 13 Sep 2012 02:12:00 GMT</pubDate><guid>http://www.tkk7.com/liuyanbo/archive/2012/09/13/387616.html</guid><wfw:comment>http://www.tkk7.com/liuyanbo/comments/387616.html</wfw:comment><comments>http://www.tkk7.com/liuyanbo/archive/2012/09/13/387616.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuyanbo/comments/commentRss/387616.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuyanbo/services/trackbacks/387616.html</trackback:ping><description><![CDATA[濡備笅閿欒:<br /><br /><span style="font-size:12.0pt;font-family: 瀹嬩綋;">java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.</span><br /><br />鍙互浣跨敤濡備笅鏂瑰紡瑙e喅錛?br />灝唍otifyDataSetChanged 鏀懼湪handler涓紝鍚屾椂鍔犱笂綰㈠瓧瀛椾綋浠g爜錛?br /><br /><div><span style="color: red; ">mWifiListView.setVisibility(View.GONE);</span></div><div>mWifiListAdapter.notifyDataSetChanged();</div><div><span style="color: red; ">mWifiListView.setVisibility(View.VISIBLE);    </span></div><img src ="http://www.tkk7.com/liuyanbo/aggbug/387616.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuyanbo/" target="_blank">澶╁畤鎭掓槦</a> 2012-09-13 10:12 <a href="http://www.tkk7.com/liuyanbo/archive/2012/09/13/387616.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑾峰彇Preview鏁版嵁騫惰漿鎹㈡垚jpeg鏍煎紡鐨勬柟娉?/title><link>http://www.tkk7.com/liuyanbo/archive/2012/08/04/384760.html</link><dc:creator>澶╁畤鎭掓槦</dc:creator><author>澶╁畤鎭掓槦</author><pubDate>Sat, 04 Aug 2012 07:15:00 GMT</pubDate><guid>http://www.tkk7.com/liuyanbo/archive/2012/08/04/384760.html</guid><wfw:comment>http://www.tkk7.com/liuyanbo/comments/384760.html</wfw:comment><comments>http://www.tkk7.com/liuyanbo/archive/2012/08/04/384760.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuyanbo/comments/commentRss/384760.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuyanbo/services/trackbacks/384760.html</trackback:ping><description><![CDATA[<div>1.startPreview涔嬪墠璁劇疆PreviewCallback <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">   mCameraDevice.setPreviewCallback(mPreviewCallback);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />   mCameraDevice.startPreview();</span></div>2. 鑾峰彇preview鏁版嵁<br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">final</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> PreviewCallback </span><span style="color: #0000ff">implements</span><span style="color: #000000"> <br /><img id="Codehighlighter1_90_510_Open_Image" onclick="this.style.display='none'; Codehighlighter1_90_510_Open_Text.style.display='none'; Codehighlighter1_90_510_Closed_Image.style.display='inline'; Codehighlighter1_90_510_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_90_510_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_90_510_Closed_Text.style.display='none'; Codehighlighter1_90_510_Open_Image.style.display='inline'; Codehighlighter1_90_510_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif">        android.hardware.Camera.PreviewCallback </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_90_510_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_90_510_Open_Text"><span style="color: #000000">{<br /><img id="Codehighlighter1_167_507_Open_Image" onclick="this.style.display='none'; Codehighlighter1_167_507_Open_Text.style.display='none'; Codehighlighter1_167_507_Closed_Image.style.display='inline'; Codehighlighter1_167_507_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_167_507_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_167_507_Closed_Text.style.display='none'; Codehighlighter1_167_507_Open_Image.style.display='inline'; Codehighlighter1_167_507_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">         </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> onPreviewFrame(</span><span style="color: #0000ff">byte</span><span style="color: #000000">[] data, android.hardware.Camera camera) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_167_507_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_167_507_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                     <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                Size size </span><span style="color: #000000">=</span><span style="color: #000000"> mParameters.getPreviewSize();<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                YuvImage yuvimage </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> YuvImage(data, ImageFormat.NV21, size.width, <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                    size.height, </span><span style="color: #0000ff">null</span><span style="color: #000000">);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                ByteArrayOutputStream outputSteam </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> ByteArrayOutputStream();<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                yuvimage.compressToJpeg(</span><span style="color: #0000ff">new</span><span style="color: #000000"> Rect(</span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">0</span><span style="color: #000000">, size.width, size.height), </span><span style="color: #000000">80</span><span style="color: #000000">, outputSteam);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />            <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />         }</span></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />    }</span></span></div><br /></div><img src ="http://www.tkk7.com/liuyanbo/aggbug/384760.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuyanbo/" target="_blank">澶╁畤鎭掓槦</a> 2012-08-04 15:15 <a href="http://www.tkk7.com/liuyanbo/archive/2012/08/04/384760.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android涓嚜瀹氫箟View鐨凪easureSpec浣跨敤http://www.tkk7.com/liuyanbo/archive/2012/03/15/371969.html澶╁畤鎭掓槦澶╁畤鎭掓槦Thu, 15 Mar 2012 11:18:00 GMThttp://www.tkk7.com/liuyanbo/archive/2012/03/15/371969.htmlhttp://www.tkk7.com/liuyanbo/comments/371969.htmlhttp://www.tkk7.com/liuyanbo/archive/2012/03/15/371969.html#Feedback2http://www.tkk7.com/liuyanbo/comments/commentRss/371969.htmlhttp://www.tkk7.com/liuyanbo/services/trackbacks/371969.html鏈夋椂錛孉ndroid緋葷粺鎺т歡鏃犳硶婊¤凍鎴戜滑鐨勯渶姹傦紝鍥犳鏈夊繀瑕佽嚜瀹氫箟View銆傚叿浣撴柟娉曞弬瑙佸畼鏂瑰紑鍙戞枃妗o細http://developer.android.com/guide/topics/ui/custom-components.html


涓鑸潵璇達紝鑷畾涔夋帶浠墮兘浼氬幓閲嶅啓View鐨刼nMeasure鏂規硶錛屽洜涓鴻鏂規硶鎸囧畾璇ユ帶浠跺湪灞忓箷涓婄殑澶у皬銆?/p>

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

onMeasure浼犲叆鐨勪袱涓弬鏁版槸鐢變笂涓灞傛帶浠朵紶鍏ョ殑澶у皬錛屾湁澶氱鎯呭喌錛岄噸鍐欒鏂規硶鏃墮渶瑕佸璁$畻鎺т歡鐨勫疄闄呭ぇ灝忥紝鐒跺悗璋冪敤setMeasuredDimension(int, int)璁劇疆瀹為檯澶у皬銆?/p>


onMeasure浼犲叆鐨剋idthMeasureSpec鍜宧eightMeasureSpec涓嶆槸涓鑸殑灝哄鏁板鹼紝鑰屾槸灝嗘ā寮忓拰灝哄緇勫悎鍦ㄤ竴璧風殑鏁板箋傛垜浠渶瑕侀氳繃int mode = MeasureSpec.getMode(widthMeasureSpec)寰楀埌妯″紡錛岀敤int size = MeasureSpec.getSize(widthMeasureSpec)寰楀埌灝哄銆?/span>


mode鍏辨湁涓夌鎯呭喌錛屽彇鍊煎垎鍒負MeasureSpec.UNSPECIFIED, MeasureSpec.EXACTLY, MeasureSpec.AT_MOST銆?/span>


MeasureSpec.EXACTLY鏄簿紜昂瀵革紝褰撴垜浠皢鎺т歡鐨刲ayout_width鎴杔ayout_height鎸囧畾涓哄叿浣撴暟鍊兼椂濡俛ndorid:layout_width="50dip"錛屾垨鑰呬負FILL_PARENT鏄紝閮芥槸鎺т歡澶у皬宸茬粡紜畾鐨勬儏鍐碉紝閮芥槸綺劇‘灝哄銆?/span>


MeasureSpec.AT_MOST鏄渶澶у昂瀵革紝褰撴帶浠剁殑layout_width鎴杔ayout_height鎸囧畾涓篧RAP_CONTENT鏃訛紝鎺т歡澶у皬涓鑸殢鐫鎺т歡鐨勫瓙絀洪棿鎴栧唴瀹硅繘琛屽彉鍖栵紝姝ゆ椂鎺т歡灝哄鍙涓嶈秴榪囩埗鎺т歡鍏佽鐨勬渶澶у昂瀵稿嵆鍙傚洜姝わ紝姝ゆ椂鐨刴ode鏄疉T_MOST錛宻ize緇欏嚭浜嗙埗鎺т歡鍏佽鐨勬渶澶у昂瀵搞?/p>


MeasureSpec.UNSPECIFIED鏄湭鎸囧畾灝哄錛岃繖縐嶆儏鍐典笉澶氾紝涓鑸兘鏄埗鎺т歡鏄疉dapterView錛岄氳繃measure鏂規硶浼犲叆鐨勬ā寮忋?/p>


鍥犳錛屽湪閲嶅啓onMeasure鏂規硶鏃惰鏍規嵁妯″紡涓嶅悓榪涜灝哄璁$畻銆備笅闈唬鐮佸氨鏄竴縐嶆瘮杈冨吀鍨嬬殑鏂瑰紡錛?br />

@Override    
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {    
    setMeasuredDimension(getMeasuredLength(widthMeasureSpec, true), getMeasuredLength(heightMeasureSpec, false));    
}    
    
    
private int getMeasuredLength(int length, boolean isWidth) {    
    int specMode = MeasureSpec.getMode(length);    
    int specSize = MeasureSpec.getSize(length);    
    int size;    
    int padding = isWidth ? getPaddingLeft() + getPaddingRight()    
            : getPaddingTop() + getPaddingBottom();    
    if (specMode == MeasureSpec.EXACTLY) {    
        size = specSize;    
    } else {    
        size = isWidth ? padding + mWave.length / 4 : DEFAULT_HEIGHT    
                + padding;    
        if (specMode == MeasureSpec.AT_MOST) {    
            size = Math.min(size, specSize);    
        }    
    }    
    return size;    
}  



]]>
android 鑾峰彇鍜岃緗睆騫曚寒搴?/title><link>http://www.tkk7.com/liuyanbo/archive/2012/03/13/371799.html</link><dc:creator>澶╁畤鎭掓槦</dc:creator><author>澶╁畤鎭掓槦</author><pubDate>Tue, 13 Mar 2012 06:49:00 GMT</pubDate><guid>http://www.tkk7.com/liuyanbo/archive/2012/03/13/371799.html</guid><wfw:comment>http://www.tkk7.com/liuyanbo/comments/371799.html</wfw:comment><comments>http://www.tkk7.com/liuyanbo/archive/2012/03/13/371799.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/liuyanbo/comments/commentRss/371799.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuyanbo/services/trackbacks/371799.html</trackback:ping><description><![CDATA[<p style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 20px; "><strong># 鑾峰彇灞忓箷浜害</strong></p><div style="font-size: 12px; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; "><pre style="line-height: 20px; margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New'; "><span style="line-height: 1.5; color: #0000ff; ">public</span> <span style="line-height: 1.5; color: #0000ff; ">static</span> <span style="line-height: 1.5; color: #0000ff; ">int</span> getScreenBrightness(Activity activity) {<br /> <span style="line-height: 1.5; color: #0000ff; ">int</span> value = 0;<br /> ContentResolver cr = activity.getContentResolver();<br /> <span style="line-height: 1.5; color: #0000ff; ">try</span> {<br /> value = Settings.System.getInt(cr, Settings.System.SCREEN_BRIGHTNESS);<br /> } <span style="line-height: 1.5; color: #0000ff; ">catch</span> (SettingNotFoundException e) {<br /> <br /> }<br /> <span style="line-height: 1.5; color: #0000ff; ">return</span> value;<br />}</pre><div style="margin-top: 5px; "><span style="line-height: 18px;"><br /></span></div></div><p style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 20px; "><strong># 璁劇疆灞忓箷浜害</strong></p><div style="font-size: 12px; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; "><pre style="line-height: 20px; margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New'; "><span style="line-height: 1.5; color: #0000ff; ">public</span> <span style="line-height: 1.5; color: #0000ff; ">static</span> <span style="line-height: 1.5; color: #0000ff; ">void</span> setScreenBrightness(Activity activity, <span style="line-height: 1.5; color: #0000ff; ">int</span> value) {<br /> WindowManager.LayoutParams params = activity.getWindow().getAttributes();<br /> params.screenBrightness = value / 255f;<br /> activity.getWindow().setAttributes(params);<br />}</pre><div style="margin-top: 5px; "><span style="line-height: 18px;"><br /></span></div></div><img src ="http://www.tkk7.com/liuyanbo/aggbug/371799.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuyanbo/" target="_blank">澶╁畤鎭掓槦</a> 2012-03-13 14:49 <a href="http://www.tkk7.com/liuyanbo/archive/2012/03/13/371799.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>娣卞叆鐞嗚ВAndroid娑堟伅澶勭悊緋葷粺鈥斺擫ooper銆丠andler銆乀hreadhttp://www.tkk7.com/liuyanbo/archive/2011/09/20/359074.html澶╁畤鎭掓槦澶╁畤鎭掓槦Tue, 20 Sep 2011 06:56:00 GMThttp://www.tkk7.com/liuyanbo/archive/2011/09/20/359074.htmlhttp://www.tkk7.com/liuyanbo/comments/359074.htmlhttp://www.tkk7.com/liuyanbo/archive/2011/09/20/359074.html#Feedback0http://www.tkk7.com/liuyanbo/comments/commentRss/359074.htmlhttp://www.tkk7.com/liuyanbo/services/trackbacks/359074.html
鐔熸倝Windows緙栫▼鐨勬湅鍙嬪彲鑳界煡閬揥indows紼嬪簭鏄秷鎭┍鍔ㄧ殑錛屽茍涓旀湁鍏ㄥ眬鐨勬秷鎭驚鐜郴緇熴傝孉ndroid搴旂敤紼嬪簭涔熸槸娑堟伅椹卞姩鐨勶紝鎸夐亾鐞嗘潵璇翠篃搴旇鎻愪緵娑堟伅寰幆鏈哄埗銆傚疄闄呬笂璋鋒瓕鍙傝冧簡Windows鐨勬秷鎭驚鐜満鍒訛紝涔熷湪Android緋葷粺涓疄鐜頒簡娑堟伅寰幆鏈哄埗銆侫ndroid閫氳繃Looper銆丠andler鏉ュ疄鐜版秷鎭驚鐜満鍒訛紝Android娑堟伅寰幆鏄拡瀵圭嚎紼嬬殑錛堟瘡涓嚎紼嬮兘鍙互鏈夎嚜宸辯殑娑堟伅闃熷垪鍜屾秷鎭驚鐜級銆傛湰鏂囨繁鍏ヤ粙緇嶄竴涓婣ndroid娑堟伅澶勭悊緋葷粺鍘熺悊銆?/span>

    Android緋葷粺涓璍ooper璐熻矗綆$悊綰跨▼鐨勬秷鎭槦鍒楀拰娑堟伅寰幆錛屽叿浣撳疄鐜拌鍙傝僉ooper鐨勬簮鐮併?鍙互閫氳繃Loop.myLooper()寰楀埌褰撳墠綰跨▼鐨凩ooper瀵硅薄錛岄氳繃Loop.getMainLooper()鍙互鑾峰緱褰撳墠榪涚▼鐨勪富綰跨▼鐨凩ooper瀵硅薄銆?/font>

    鍓嶉潰鎻愬埌Android緋葷粺鐨勬秷鎭槦鍒楀拰娑堟伅寰幆閮芥槸閽堝鍏蜂綋綰跨▼鐨勶紝涓涓嚎紼嬪彲浠ュ瓨鍦紙褰撶劧涔熷彲浠ヤ笉瀛樺湪錛変竴涓秷鎭槦鍒楀拰涓涓秷鎭驚鐜紙Looper錛夛紝鐗瑰畾綰跨▼鐨勬秷鎭彧鑳藉垎鍙戠粰鏈嚎紼嬶紝涓嶈兘榪涜璺ㄧ嚎紼嬶紝璺ㄨ繘紼嬮氳銆備絾鏄垱寤虹殑宸ヤ綔綰跨▼榛樿鏄病鏈夋秷鎭驚鐜拰娑堟伅闃熷垪鐨勶紝濡傛灉鎯寵璇ョ嚎紼嬪叿鏈夋秷鎭槦鍒楀拰娑堟伅寰幆錛岄渶瑕佸湪綰跨▼涓鍏堣皟鐢↙ooper.prepare()鏉ュ垱寤烘秷鎭槦鍒楋紝鐒跺悗璋冪敤Looper.loop()榪涘叆娑堟伅寰幆銆傚涓嬩緥鎵紺猴細

  class LooperThread extends Thread {
      public Handler mHandler;

      public void run() {
          Looper.prepare();

          mHandler = new Handler() {
              public void handleMessage(Message msg) {
                  // process incoming messages here
              }
          };

          Looper.loop();
      }
  }

榪欐牱浣犵殑綰跨▼灝卞叿鏈変簡娑堟伅澶勭悊鏈哄埗浜嗭紝鍦℉andler涓繘琛屾秷鎭鐞嗐?/font>

     Activity鏄竴涓猆I綰跨▼錛岃繍琛屼簬涓葷嚎紼嬩腑錛孉ndroid緋葷粺鍦ㄥ惎鍔ㄧ殑鏃跺欎細涓篈ctivity鍒涘緩涓涓秷鎭槦鍒楀拰娑堟伅寰幆錛圠ooper錛夈傝緇嗗疄鐜拌鍙傝傾ctivityThread.java鏂囦歡銆?/font>

     Handler鐨勪綔鐢ㄦ槸鎶婃秷鎭姞鍏ョ壒瀹氱殑錛圠ooper錛夋秷鎭槦鍒椾腑錛屽茍鍒嗗彂鍜屽鐞嗚娑堟伅闃熷垪涓殑娑堟伅銆傛瀯閫燞andler鐨勬椂鍊欏彲浠ユ寚瀹氫竴涓狶ooper瀵硅薄錛屽鏋滀笉鎸囧畾鍒欏埄鐢ㄥ綋鍓嶇嚎紼嬬殑Looper鍒涘緩銆傝緇嗗疄鐜拌鍙傝僉ooper鐨勬簮鐮併?/font>

     Activity銆丩ooper銆丠andler鐨勫叧緋誨涓嬪浘鎵紺猴細

     涓涓狝ctivity涓彲浠ュ垱寤哄涓伐浣滅嚎紼嬫垨鑰呭叾浠栫殑緇勪歡錛屽鏋滆繖浜涚嚎紼嬫垨鑰呯粍浠舵妸浠栦滑鐨勬秷鎭斁鍏ctivity鐨勪富綰跨▼娑堟伅闃熷垪錛岄偅涔堣娑堟伅灝變細鍦ㄤ富綰跨▼涓鐞嗕簡銆傚洜涓轟富綰跨▼涓鑸礋璐g晫闈㈢殑鏇存柊鎿嶄綔錛屽茍涓擜ndroid緋葷粺涓殑weget涓嶆槸綰跨▼瀹夊叏鐨勶紝鎵浠ヨ繖縐嶆柟寮忓彲浠ュ緢濂界殑瀹炵幇Android鐣岄潰鏇存柊銆傚湪Android緋葷粺涓繖縐嶆柟寮忔湁鐫騫挎硾鐨勮繍鐢ㄣ?/font>

     閭d箞鍙﹀涓涓嚎紼嬫庢牱鎶婃秷鎭斁鍏ヤ富綰跨▼鐨勬秷鎭槦鍒楀憿錛熺瓟妗堟槸閫氳繃Handle瀵硅薄錛屽彧瑕丠andler瀵硅薄浠ヤ富綰跨▼鐨凩ooper鍒涘緩錛岄偅涔堣皟鐢℉andler鐨剆endMessage絳夋帴鍙o紝灝嗕細鎶婃秷鎭斁鍏ラ槦鍒楅兘灝嗘槸鏀懼叆涓葷嚎紼嬬殑娑堟伅闃熷垪銆傚茍涓斿皢浼氬湪Handler涓葷嚎紼嬩腑璋冪敤璇andler鐨刪andleMessage鎺ュ彛鏉ュ鐞嗘秷鎭?/font>

     榪欓噷闈㈡秹鍙婂埌綰跨▼鍚屾闂錛岃鍏堝弬鑰冨涓嬩緥瀛愭潵鐞嗚ВHandler瀵硅薄鐨勭嚎紼嬫ā鍨嬶細

1銆侀鍏堝垱寤篗yHandler宸ョ▼銆?/font>

2銆佸湪MyHandler.java涓姞鍏ュ涓嬬殑浠g爜錛?/font>

package com.simon;

import android.app.Activity;
import android.os.Bundle;
import android.os.Message;
import android.util.Log;
import android.os.Handler;

public class MyHandler extends Activity {
	static final String TAG = "Handler";
	Handler h = new Handler(){
    	public void handleMessage (Message msg)
    	{
    		switch(msg.what)
    		{
    		case HANDLER_TEST:
    			Log.d(TAG, "The handler thread id = " + Thread.currentThread().getId() + "\n");
    			break;
    		}
    	}
    };

	static final int HANDLER_TEST = 1;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d(TAG, "The main thread id = " + Thread.currentThread().getId() + "\n");

        new myThread().start();
        setContentView(R.layout.main);
    }

    class myThread extends Thread
    {
    	public void run()
    	{
    		Message msg = new Message();
    		msg.what = HANDLER_TEST;
    		h.sendMessage(msg);
    		Log.d(TAG, "The worker thread id = " + Thread.currentThread().getId() + "\n");
    	}
    }
}

鍦ㄨ繖涓緥瀛愪腑鎴戜滑涓昏鏄墦鍗幫紝榪欑澶勭悊鏈哄埗鍚勪釜妯″潡鐨勬墍澶勭殑綰跨▼鎯呭喌銆傚涓嬫槸鎴戠殑鏈哄櫒榪愯緇撴灉錛?/font>

09-10 23:40:51.478: DEBUG/Handler(302): The main thread id = 1
09-10 23:40:51.569: DEBUG/Handler(302): The worker thread id = 8
09-10 23:40:52.128: DEBUG/Handler(302): The handler thread id = 1

鎴戜滑鍙互鐪嬪嚭娑堟伅澶勭悊鏄湪涓葷嚎紼嬩腑澶勭悊鐨勶紝鍦ㄦ秷鎭鐞嗗嚱鏁頒腑鍙互瀹夊叏鐨勮皟鐢ㄤ富綰跨▼涓殑浠諱綍璧勬簮錛屽寘鎷埛鏂扮晫闈€傚伐浣滅嚎紼嬪拰涓葷嚎紼嬭繍琛屽湪涓嶅悓鐨勭嚎紼嬩腑錛屾墍浠ュ繀欏昏娉ㄦ剰榪欎袱涓嚎紼嬮棿鐨勭珵浜夊叧緋匯?/font>

     涓婁緥涓紝浣犲彲鑳芥敞鎰忓埌鍦ㄥ伐浣滅嚎紼嬩腑璁塊棶浜嗕富綰跨▼handler瀵硅薄錛屽茍鍦ㄨ皟鐢╤andler鐨勫璞″悜娑堟伅闃熷垪鍔犲叆浜嗕竴涓秷鎭傝繖涓繃紼嬩腑浼氫笉浼氬嚭鐜版秷鎭槦鍒楁暟鎹笉涓鑷撮棶棰樺憿錛熺瓟妗堟槸handler瀵硅薄涓嶄細鍑洪棶棰橈紝鍥犱負handler瀵硅薄綆$悊鐨凩ooper瀵硅薄鏄嚎紼嬪畨鍏ㄧ殑錛屼笉綆℃槸鍔犲叆娑堟伅鍒版秷鎭槦鍒楀拰浠庨槦鍒楄鍑烘秷鎭兘鏄湁鍚屾瀵硅薄淇濇姢鐨勶紝鍏蜂綋璇峰弬鑰僉ooper.java鏂囦歡銆備笂渚嬩腑娌℃湁淇敼handler瀵硅薄錛屾墍浠andler瀵硅薄涓嶅彲鑳戒細鍑虹幇鏁版嵁涓嶄竴鑷寸殑闂銆?/font>

     閫氳繃涓婇潰鐨勫垎鏋愶紝鎴戜滑鍙互寰楀嚭濡備笅緇撹錛?/font>

1銆佸鏋滈氳繃宸ヤ綔綰跨▼鍒鋒柊鐣岄潰錛屾帹鑽愪嬌鐢╤andler瀵硅薄鏉ュ疄鐜般?/font>

2銆佹敞鎰忓伐浣滅嚎紼嬪拰涓葷嚎紼嬩箣闂寸殑绔炰簤鍏崇郴銆傛帹鑽恏andler瀵硅薄鍦ㄤ富綰跨▼涓瀯閫犲畬鎴愶紙騫朵笖鍚姩宸ヤ綔綰跨▼涔嬪悗涓嶈鍐嶄慨鏀逛箣錛屽惁鍒欎細鍑虹幇鏁版嵁涓嶄竴鑷達級錛岀劧鍚庡湪宸ヤ綔綰跨▼涓彲浠ユ斁蹇冪殑璋冪敤鍙戦佹秷鎭疭endMessage絳夋帴鍙c?/font>

3銆侀櫎浜?鎵榪扮殑hanlder瀵硅薄涔嬪鐨勪換浣曚富綰跨▼鐨勬垚鍛樺彉閲忓鏋滃湪宸ヤ綔綰跨▼涓皟鐢紝浠旂粏鑰冭檻綰跨▼鍚屾闂銆傚鏋滄湁蹇呰闇瑕佸姞鍏ュ悓姝ュ璞′繚鎶よ鍙橀噺銆?/font>

4銆乭andler瀵硅薄鐨刪andleMessage鎺ュ彛灝嗕細鍦ㄤ富綰跨▼涓皟鐢ㄣ傚湪榪欎釜鍑芥暟鍙互鏀懼績鐨勮皟鐢ㄤ富綰跨▼涓換浣曞彉閲忓拰鍑芥暟錛岃繘鑰屽畬鎴愭洿鏂癠I鐨勪換鍔°?/font>

5銆丄ndroid寰堝API涔熷埄鐢℉andler榪欑綰跨▼鐗規э紝浣滀負涓縐嶅洖璋冨嚱鏁扮殑鍙樼錛屾潵閫氱煡璋冪敤鑰呫傝繖鏍稟ndroid妗嗘灦灝卞彲浠ュ湪鍏剁嚎紼嬩腑灝嗘秷鎭彂閫佸埌璋冪敤鑰呯殑綰跨▼娑堟伅闃熷垪涔嬩腑錛屼笉鐢ㄦ媴蹇冪嚎紼嬪悓姝ョ殑闂銆?/font>

     娣卞叆鐞嗚ВAndroid娑堟伅澶勭悊鏈哄埗瀵逛簬搴旂敤紼嬪簭寮鍙戦潪甯擱噸瑕侊紝涔熷彲浠ヨ浣犲綰跨▼鍚屾鏈夋洿鍔犳繁鍒葷殑璁よ瘑銆備互涓婃槸鏈榪慡imon瀛︿範Android娑堟伅澶勭悊鏈哄埗鐨勪竴鐐瑰効鎬葷粨錛屽鏈夐敊璇箣澶勮涓嶅悵鎸囨暀銆?/font>



]]>
緙栬瘧甯︽湁絎笁鏂筳ar鍖呯殑ap錛屽浣曟墠鑳借繃鐢╩mm緙栬瘧鎴愬姛http://www.tkk7.com/liuyanbo/archive/2011/09/20/359072.html澶╁畤鎭掓槦澶╁畤鎭掓槦Tue, 20 Sep 2011 06:49:00 GMThttp://www.tkk7.com/liuyanbo/archive/2011/09/20/359072.htmlhttp://www.tkk7.com/liuyanbo/comments/359072.htmlhttp://www.tkk7.com/liuyanbo/archive/2011/09/20/359072.html#Feedback1http://www.tkk7.com/liuyanbo/comments/commentRss/359072.htmlhttp://www.tkk7.com/liuyanbo/services/trackbacks/359072.html鍏蜂綋浠g爜濡備笅錛?br />
LOCAL_PATH := $(call my-dir)  
include $(CLEAR_VARS)  
LOCAL_STATIC_JAVA_LIBRARIES :
= libarity  
LOCAL_SRC_FILES :
= $(call all-java-files-under, src)  
LOCAL_PACKAGE_NAME :
= TestJar  
include $(BUILD_PACKAGE)  
##################################################  
include $(CLEAR_VARS)  
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES :
= libarity:lily.jar  
include $(BUILD_MULTI_PREBUILT)  
# Use the folloing include to make our test apk.  
include $(call all
-makefiles-under,$(LOCAL_PATH))  


鍏抽敭鍦ㄤ簬LOCAL_STATIC_JAVA_LIBRARIES := libarity鍜孡OCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libarity:lily.jar

鍏跺疄libarity鏄釜鍚嶅瓧鍙互闅忎究鍙栵紝浣嗘槸涓や釜灞炴х殑鍊艱涓鏍峰氨濂戒簡錛屼絾鏄悗闈㈤偅涓啋鍙烽噷闈㈠氨涓瀹氳鍐欎綘鐨刯ar鍖呭悕錛屼綘鐨刯ar鍖呬竴瀹氭斁鍦ㄥ伐紼嬬殑鏍圭洰褰曞氨濂戒簡錛岀洰褰曠粨鏋勫涓嬶細

-res

-src

-com

-ianc

-testjar

TestJar.java

android.mk

AndroidManifest.xml

default.properties

lily.jar




]]>
鍠勭敤Android棰勫畾涔夋牱寮?/title><link>http://www.tkk7.com/liuyanbo/archive/2011/09/20/359071.html</link><dc:creator>澶╁畤鎭掓槦</dc:creator><author>澶╁畤鎭掓槦</author><pubDate>Tue, 20 Sep 2011 06:45:00 GMT</pubDate><guid>http://www.tkk7.com/liuyanbo/archive/2011/09/20/359071.html</guid><wfw:comment>http://www.tkk7.com/liuyanbo/comments/359071.html</wfw:comment><comments>http://www.tkk7.com/liuyanbo/archive/2011/09/20/359071.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuyanbo/comments/commentRss/359071.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuyanbo/services/trackbacks/359071.html</trackback:ping><description><![CDATA[<span id="2qi4s2u" class="Apple-style-span" style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; background-color: #ffffff; "><h1 style="font-size: 2em; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; ">瀛椾綋澶у皬</h1><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">瀵逛簬鑳藉鏄劇ず鏂囧瓧鐨勬帶浠訛紙濡俆extView EditText RadioButton Button CheckBox Chronometer絳夌瓑錛夛紝浣犳湁鏃墮渶瑕佹帶鍒跺瓧浣撶殑澶у皬銆侫ndroid騫沖彴瀹氫箟浜嗕笁縐嶅瓧浣撳ぇ灝忋?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">"?android:attr/textAppearanceLarge"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">"?android:attr/textAppearanceMedium"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">"?android:attr/textAppearanceSmall"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">浣跨敤鏂規硶涓猴細</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">android:textAppearance="?android:attr/textAppearanceLarge" <br />android:textAppearance="?android:attr/textAppearanceMedium" <br />android:textAppearance="?android:attr/textAppearanceSmall"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">鎴?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">style="?android:attr/textAppearanceLarge" <br />style="?android:attr/textAppearanceMedium" <br />style="?android:attr/textAppearanceSmall"</p><h1 style="font-size: 2em; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; ">瀛椾綋棰滆壊</h1><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">android:textColor="?android:attr/textColorPrimary" <br />android:textColor="?android:attr/textColorSecondary" <br />android:textColor="?android:attr/textColorTertiary" <br />android:textColor="?android:attr/textColorPrimaryInverse" <br />android:textColor="?android:attr/textColorSecondaryInverse"</p><h1 style="font-size: 2em; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; ">ProgressBar</h1><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">style="?android:attr/progressBarStyleHorizontal" <br />style="?android:attr/progressBarStyleLarge" <br />style="?android:attr/progressBarStyleSmall" <br />style="?android:attr/progressBarStyleSmallTitle"</p><h1 style="font-size: 2em; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; ">鍒嗛殧絎?/h1><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">妯悜錛?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><View android:layout_width="fill_parent" <br />      android:layout_height="1dip" <br />      android:background="?android:attr/listDivider" /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">綰靛悜錛?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><View android:layout_width="1dip" <br />      android:layout_height="fill_parent" <br />      android:background="?android:attr/listDivider" /></p><h1 style="font-size: 2em; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; ">CheckBox</h1><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">style="?android:attr/starStyle"</p><h1 style="font-size: 2em; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; ">綾諱技鏍囬鏍忔晥鏋滅殑TextView</h1><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">style="?android:attr/listSeparatorTextViewStyle"</p><h1 style="font-size: 2em; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; ">鍏跺畠鏈夌敤鐨勬牱寮?/h1><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">android:layout_height="?android:attr/listPreferredItemHeight"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">android:paddingRight="?android:attr/scrollbarSize"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">style="?android:attr/windowTitleBackgroundStyle"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">style="?android:attr/windowTitleStyle"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">android:layout_height="?android:attr/windowTitleSize"</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">android:background="?android:attr/windowBackground"</p></span><img src ="http://www.tkk7.com/liuyanbo/aggbug/359071.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuyanbo/" target="_blank">澶╁畤鎭掓槦</a> 2011-09-20 14:45 <a href="http://www.tkk7.com/liuyanbo/archive/2011/09/20/359071.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://xingdagx.com" target="_blank">国产成人精品日本亚洲专区</a>| <a href="http://655060.com" target="_blank">亚洲欧洲日产国码一级毛片</a>| <a href="http://onisterwines.com" target="_blank">亚洲成色999久久网站</a>| <a href="http://vip98888.com" target="_blank">国产一区二区三区免费观在线</a>| <a href="http://glhrsydc.com" target="_blank">免费一级毛片免费播放</a>| <a href="http://352362.com" target="_blank">男女污污污超污视频免费在线看</a>| <a href="http://jastrelax.com" target="_blank">久久久久亚洲AV片无码下载蜜桃</a>| <a href="http://5079157.com" target="_blank">亚洲欧美不卡高清在线</a>| <a href="http://929119.com" target="_blank">午夜私人影院免费体验区</a>| <a href="http://xdxsw.com" target="_blank">亚洲一区二区三区高清在线观看 </a>| <a href="http://pohezi.com" target="_blank">国产91免费视频</a>| <a href="http://ttvv77.com" target="_blank">亚洲噜噜噜噜噜影院在线播放 </a>| <a href="http://goodwaysi.com" target="_blank">亚洲av无码专区在线</a>| <a href="http://zf91.com" target="_blank">毛片免费观看网址</a>| <a href="http://jnyygs.com" target="_blank">亚洲AV性色在线观看</a>| <a href="http://fense1.com " target="_blank">又爽又高潮的BB视频免费看</a>| <a href="http://929119.com" target="_blank">麻豆安全免费网址入口</a>| <a href="http://fuhui123.com" target="_blank">1024免费福利永久观看网站</a>| <a href="http://yanyingqiang.com" target="_blank">亚洲免费在线观看视频</a>| <a href="http://dsdkg.com" target="_blank">在线精品免费视频</a>| <a href="http://yutuzb.com" target="_blank">一区二区免费在线观看</a>| <a href="http://guhey.com" target="_blank">亚洲av色影在线</a>| <a href="http://612662.com" target="_blank">日韩av无码成人无码免费</a>| <a href="http://1444000.com" target="_blank">久久青青草原亚洲av无码app </a>| <a href="http://1444000.com" target="_blank">51视频精品全部免费最新</a>| <a href="http://conghui8.com" target="_blank">亚洲mv国产精品mv日本mv</a>| <a href="http://zaideqin.com" target="_blank">免费无码又爽又高潮视频</a>| <a href="http://15831883389.com" target="_blank">国产亚洲精品美女久久久久</a>| <a href="http://77tok.com" target="_blank">亚洲中文字幕无码日韩</a>| <a href="http://56p6.com" target="_blank">日韩电影免费在线观看</a>| <a href="http://zjhydouyaji.com" target="_blank">亚洲美女视频网址</a>| <a href="http://yiuzz.com" target="_blank">国产免费爽爽视频免费可以看</a>| <a href="http://zzz134.com" target="_blank">国产97视频人人做人人爱免费</a>| <a href="http://chinashineway.com" target="_blank">亚洲av福利无码无一区二区</a>| <a href="http://91ttvv.com" target="_blank">在线观看免费高清视频</a>| <a href="http://miya77772.com" target="_blank">麻豆亚洲AV成人无码久久精品</a>| <a href="http://91xx8.com" target="_blank">亚洲综合精品香蕉久久网</a>| <a href="http://sy8989.com" target="_blank">在线免费中文字幕</a>| <a href="http://beijinzhongliuyiyuan.com" target="_blank">亚洲精品美女久久久久</a>| <a href="http://172pk.com" target="_blank">18成禁人视频免费网站</a>| <a href="http://szgyk.com" target="_blank">亚洲国产精品无码久久久秋霞1</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>