Port Android browser piemenu

Source: Internet
Author: User

I don't know. Some people found that the browser has multiple controls since Android 3.0.

Settings-> lab-> quickcontrolsAs shown in

Then, return to the browser and touch the two sides.QuickcontrolControls can be used, as shown in figure

then I think we can use this control in our Program . Fortunately Android open-source

just click it to open it androidbrowser Source Code analyzes the approximate MVC architecture v Control partially removed the rest is what we need

GoogleWritten by programmersCodeIt is quite organized and easy to read. 

Piemenu(I like it) isFramelayout
What isFramelayoutIf you do not understand it, you can view it.SDK

the elements are called pieitem , and then pieitem Yes View it can be used to write and Store Pictures, Google for pad and phone two la s are designed. You can view the source code.

After a long timeIn fact, it is not uncommon to change the code after careful analysis. The specific effect of porting is as follows:


In the future, use the following method to configure the event.You can write the callback function style. I use the handler method.

Piemenu mpie = new piemenu (this, mhandler); framelayout mcontentview = (framelayout) findviewbyid (R. id. main_content); layoutparams Lp = new layoutparams (layoutparams. match_parent, layoutparams. match_parent); mpie. setlayoutparams (LP); mcontentview. addview (mpie );

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.