, which is similar to tablelayout, but also adds some content:
1. You can set how the components in the container are aligned.
2. Components in a container can span multiple rows or across multiple columns
Need to pay attention to is because Android4.0 is added after, so API Level14 before the SDK can not be used directly, but also want to use the words on their own to Baidu method, here no longer say, because I think it should be very few people do 4.0 before the program?
Android learning notes-ImageView (Image view), android-imageview
From: http://www.runoob.com/w3cnote/android-tutorial-imageview.html
This section introduces:
The basic UI control introduced in this section is: ImageView (Image View), which is a View or control used to display images! Official API: ImageView. This secti
"Android Development Art Exploration" reading notes (14)--jni and NDK programmingNO1:If include> developed this id attribute, and the root element of the included layout file also has an id attribute, the No2:Drawing optimization1) do not create a new local object in OnDraw2) do not take time-consuming tasks in the OnDraw methodNo3:Memory leak optimizationScenario One: Memory leaks due to static variables:I
Notes on common layout in android development: android Development LayoutNotes on common la s
Linear layout:
The layout must be horizontal or vertical.
In the vertical layout, only the left-aligned and right-aligned horizontal center takes effect.
In the horizontal layout, only the top and bottom alignment align vertically.
Weight: the remaining part o
Android learning notes-Adapter basics, android-adapterThis section introduces
Starting from this section, we will talk about the UI control that deals with the Adapter. It is very important to understand and learn how to use this Adapter. The Adapter is an intermediate bridge used to help fill data, to put it simply, various types of data are displayed on the vie
the contents of the Asset directory Public voidReadfromasset (Context context) {Try { //Get asset managerAssetmanager Assetmanager =context.getassets (); //obtaining subdirectories under the asset directory through the asset managerstring[] Filesname = assetmanager.list ("txts"); //looping through the contents of a file for(inti = 0; i ) {InputStream InputStream= Assetmanager.open ("txts/" +Filesname[i]); byte[] bytes =New byte[Inputstream.available ()];
Problem:Want to use Gradle in an existing Eclipse ADT projectSolution:Eclipse ADT Plugin can help generate Gradle filesDiscuss:The ADT plugin for Eclipse was the main Android development tool before the launch of Gradle in 2013. The ADT project is now being replaced by Android studio, but there are still legacy projects.ADT Plug-ins can be based on existing project structures and dependencies that help you
Android development art Exploration Study Notes (11), android art Exploration
Chapter 2 Android threads and thread pools
In terms of usage, threads are divided into subthreads and main threads. The main thread mainly processes interface-related things, And subthreads are often used to execute time-consuming operations.
Android development art Exploration Study Notes (10) and android art Exploration
Chapter 10 message mechanism of Android
A frequently asked question during the interview: How handler transfers messages in sub-thread and main thread. This question can be answered accurately by understanding the message mechanism of
activity:The Robotium test inherits from ActivityInstrumentationTestCase2. The solo instance is initialized with the activity. Test the method of using the solo class, like Entertext,clickonbutton or SearchText.The only drawback to using Robotium is to test the structure using the old JUnit3, with predefined setup and Teardown methods, all of which must conform to the public void testxyz format. In contrast, easy-to-write tests are still outstanding.Test classes like other
Android Animation Study Notes
For the implementation of Animation, Android provides Animation and introduces two Animation modes in Android SDK:
1. Tween Animation: A gradient Animation is generated by constantly performing image transformations (translation, scaling, and rotation) on objects in the scenario;
2. Frame
Download, compile and test Android source code1. Configure the Android source code download environmentBefore downloading, you must perform some command configuration environment on Linux terminal.Create the directory where the script files are stored "mkdir ~/bin" "Path=~/bin: $PATH"; download repo script file "Curl address > ~/bin/repo" "chmod a+x ~/bin/repo"; Create directory for
Android development environment. It has several modules, such as File Explorer, Logcat, emulator control, and so on.The difference and connection between the JDK and the JRE and the JVM:Jdk:java Development ToolKit (JavaDevelopment Kit). JDKis the entireJAVAthe core, including theJavaOperating Environment (Java Runtime envirnment), a bunch ofJavaTools (Javac/java/jdb, etc.) andJavathe underlying class library (that is,Java APIincludeRt.jar). jre:ja
process of outputting and returning data from the server to the server, and if the server Response.getInputStream.write () returns information to Andorid, it can be converted by InputStreamReader. The returned data is displayed with Bufferreader.The specific code is as follows:The servlet side receives the data and returns the notification:Post Way:The post transmission method does not pass in the URL, but also solves a series of deficiencies, such as small get transfer volume, easy tampering a
Environment: Ubuntu 12.04 + Android Studio 1.0 + JDKJDK using Sun's JDK, there are more tutorials on the web to teach how to configure, Android studio to download from the Android website, the reason for the great Chinese wall, what the problem everyone understand, the SDK download will still automatically download some content, you can choose to set the image do
access data.You can use the Getcontentresolver () method of the context to get the ContentProvider objectAfter you have obtained the Contentresolver object, you can manipulate the data using the following methods:Insert (URI uri,contentvalues values): inserts the data for the values corresponding to the URI corresponding to the ContentProvider.Delete (URI uri,string where,string[] selectionargs): Delete the corresponding contentprovider in the URI where the matching data is submitted.Update (Ur
));}Break;CaseXmlpullparser. end_tag:Log. d ("xml", "endtap:" + xpp. getName ());Break;CaseXmlpullparser. Text:Log. d ("xml", "text:" + xpp. getText ());Break;Default:Log. d ("xml", "eventType =" + eventType );Break;}Eventtype = xpp. Next ();}Log. d ("xml ", "*************** end ****************");} Catch (throwable t ){Log. e ("xml", "testXMLget exception t:" + t. getMessage ());}
For more detailed code instructions, read the Android learning
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.