Android--laundry Project Analysis (i)

Source: Internet
Author: User
<span id="Label3"></p><p><p></p></p><p><p>ScrollView nested ListView</p></p><p><p><span style="line-height: 1.5;">Both the ScrollView and the ListView can be sliding, so handle event Collisions.</span></p></p><p><p>Event conflicts are handled in two ways:</p></p><p><p>1, dynamically calculate the height of the LISTVIEW. Outside the listview, do not let the ListView slide (do not swipe or add data), let the ScrollView Slide.</p></p><p><p>2, Not recommended</p></p><p><p>Getviewitemtype () is the view above or the ListView on Top.</p></p><p><p>Getviewtypecount ()</p></p><p><p>A picture is covered above the LISTVIEW.</p></p><p><p></p></p><p><p>Number No. 9.19, analyze laundry items.</p></p>Delayed Jump (Android Threading Mechanism)<p><p>Splashactivity</p></p><p><p>Viewpager 2 seconds later, The main thread can not sleep the ANR exception ()</p></p><p><p>Before 4.0, the main thread can also sleep 5, 6 s, after 4.0, can not be in the main thread time-consuming operation, will report the ANR exception</p></p><p><p>Sleep within a child thread for two seconds,</p></p><pre><pre> <span style="color: #0000ff;">New</span> Handler (). postdelayed (<span style="color: #0000ff;">new</span> <span style="color: #000000;"> Runnable () { @Override </span>public<span style="color: #0000ff;"></span><span style="color: #0000ff;">void</span> <span style="color: #000000;"> run () { </span><span style="color: #0000ff;">New</span> Intent (mainactivity. <span style="color: #0000ff;"> </span>this, Splashactivity. <span style="color: #0000ff;">class</span> <span style="color: #000000;">); StartActivity (intent); Splashacitivity.</span> <span style="color: #0000ff;"></span> this <span style="color: #000000;">. Finish (); } },</span>2300);</pre></pre><p><p></p></p><p><p>Android.support.v4.view.ViewPager here is not Associative.</p></p><p><p> V4 Package and V7 package function                               &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                             Random slide Pictures.     </p></p><p><p>3 XML layouts, added locally with layoutinflater.inflater, followed by dynamic loading create a collection that adds These. Pageradapter mpageradapter = new PageAdapter ( ){}</p></p><p><p>There's isviewfromobject GetCount Destroyitem.</p></p><p><p>The color is inside a bag. Values inside Color.</p></p><p><p>android:numeric= "integer" can only enter Numbers.</p></p><p><p></p></p><p><p>[1] [34578]\\d{9} to determine whether the phone Number.</p></p><p><p>Flag value to judge, if yes, on the countdown 60S</p></p><p><p>countdown, is generally achieved with handler. The Android Countdowntimer is used here. <span style="color: #ff0000;"> <strong></strong></span></p></p><p><p>What is an oom exception, a memory leak exception, the thread is not closed, it is closed first</p></p><p><p>In the countdown 30S time, the user entered a verification code, to close in Time. This activity is useless, it's Closed.</p></p><p><p>webview, Nested Web Pages.</p></p><p><p></p></p><p><p>Android--laundry Project Analysis (i)</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.