Android software development basics and android software development1. android features: openness: a foundation of open source, convenience: Equality: 2. four basic components of Android are Activity, Service, Content Provider, and BroadcastReceiver.
Android learning-RecyclerView Quick Start, Android recyclerview1. Add a JAR package
First, I felt this stuff was so complicated that it was fast and convenient without ListView.
Add a android-support-v7-recyclerview.jar package to a project
This
Android activates another Actitity, androidactitity1. Jump to a new Actitity
Create a project and create a java class OtherScreenActivity inherited from the Activity class
Package com. wuyudong. twoactivity; import android. app. activity; import
My android learning experience is 38, and my android learning experience is 38.
Memory modification of anddroid studio
A friend asked the following question yesterday.
This indicates that the memory allocated by android studio is insufficient.
Android creates a new Activity, androidactivity
This article Reprinted from: http://www.cnblogs.com/wuyudong/p/5658020.html
Create a project, create a java class, and inherit from Activity
Create an Android. xml file: activity_test.xml
Configure
Android Tab and androidtab
Original article address: Http://blog.csdn.net/crazy1235/article/details/42678877
Effect:Slide switch; click Label Switch.
Code:Https://github.com/ldb-github/Layout_Tab
1. Use ViewPager and PagerTabStrip/PagerTitleStrip
Displays the effect of the ListView floating header.
First look at the effect: the requirement is to slide the list. Some of the Views (the number of fans and the number of followers) do not disappear when they slide to the top end, but stay in the
Android Tab and androidtab
Original article address: Http://blog.csdn.net/crazy1235/article/details/42678877
TabActivity is replaced by fragment after API13, so it is not recommended to use
Effect:Click the Avatar label to switch.
Code:
Android Tab and androidtab
Original article address: Http://blog.csdn.net/crazy1235/article/details/42678877
Effect:Slide switching and automatic switch.
Code:
1. The layout interface uses the ViewPager label to switch between left and right
Use/serialize data of Android Parcelable interface, androidparcelable
First, we need to know that there are two Android serialization methods. One is to implement Serializable, which is an interface supported in JavaSE, later, google launched the
Android Tab and androidtab
Original article address: Http://blog.csdn.net/crazy1235/article/details/42678877
Effect:Slide switch; click Label Switch.
Code:
1. Layout: Use LinearLayout to deploy labels, use ViewPager to deploy Fragment, and use
Android java transmits string data to C and androidstring
This article introduces the unimplemented method of "passing int type data to C in Android java:
Public native String sayHelloInC (String s );
Post a tool method first. The specific meaning
Android java transmits int type data to C and androidint
This article is based on the development process in "Android jni simple development process" to implement a java to pass int type data to C
Create a project for simple layout
Create JNI.
HandlerThread creates an asynchronous background thread and handlerthread Asynchronously
HandlerThread has the following advantages:
1. Create a background asynchronous thread, and you can discard a task as needed, which is flexible to use;
2. The
Android calls logcat and androidlogcat in C code
This article adds the function of calling logcat in C code to "passing an array of int type to C in Android java ".
Add the following content to the Android. mk file:
LOCAL_LDLIBS + =-llog
Add the
[Android] two asynchronous Methods: android asynchronous
Use AsyncTask to enable the Sub-thread to obtain server data and update the UI
/*** Asynchronous task *** @ author taoshihan **/public class HttpAsyncTask extends AsyncTask {/*** run the */@
[Android] How to Implement the return key and android
Record the operation history of user clicks, use the stack data structure, frequently operate the stack top (ADD, retrieve, delete), and use the shortlist
Capture the user's return key operation,
One of the solutions to incomplete display of text when RecyclerView is nested with TextView
First, describe this small bug: when a simple TextView nested RecyclerView is used as an itemView, layout overwrites may occur in the text. The layout of
Click to expand the ListView menu.
I. Overview
Click the item display menu in ListView to achieve this effect:
The logic to be implemented is as follows:
1) Click a common item to expand the current menu and close other menus.
2) Click an expanded
Permission processing during Android 6.0 Runtime, android6.0
Request permissions at runtime
From Android 6.0 (API level 23), users are granted permissions to applications when they install programs. This method simplifies the application
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