Android Knowledge Collection

Source: Internet
Author: User


1. Intent (intention)

Explicit intent: Call the Intent.setcomponent () or Intent.setclass () method to explicitly specify the component name,

explicitly specifies which component the intent should be passed to.

Implicit intent: Without explicitly specifying the component name, the Android system is based on the action (action) set in the implicit intent,

Category, data (URI and data type) to find the most appropriate component to handle.


2, Android TextView content Super long scrolling view

1. First XML file TextView configuration

<textview
Android:id= "@+id/tv"
Android:layout_width= "500DP"
android:layout_height= "Fill_parent"
android:layout_marginleft= "30DP"
android:layout_margintop= "30DP"
Android:layout_marginbottom= "20DP"
Android:textsize= "22SP"
Android:textcolor= "#000000"
android:scrollbars= "Vertical"
android:background= "#C0C0C0"/>

2. Then code settings

TV = (TextView) This.findviewbyid (r.id.tv);

Tv.setmovementmethod (Scrollingmovementmethod.getinstance ())


3. Server aidl+jni+ serial Port

Mark Memory:

Server aidl+jni+ serial Port


4. Android screen adaptation

Example: VALUES-MCC310-EN-SW320DP-W720DP-H720DP-LARGE-LONG-PORT-CAR-NIGHT-LDPI-NOTOUCH-KEYSEXPOSED-NOKEYS-NAVEXPOSED-NONAV-V7

Explanation: values-mcc310 (sim operator)-en (language)-SW320DP (minimum screen width)-w720dp (best screen width)-h720dp (screen-optimal height)-large (screen size)-long (screen-length-side mode)-Port ( Current screen display mode)-car (dock mode)-night (daytime or night)-ldpi (screen best dpi)-notouch (Touch screen mode)-keysexposed (keyboard type)-nokey (hard key type)-navexposed ( Whether the arrow keys are available)-nonav (arrow key type)-v7 (Android version)

Android Knowledge Collection

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.