18 Dec
Posted by support as General 22 views, 0 Comments
Hello, TableLayout
A TableLayout is a ViewGroup that will Lay child View elements into rows and columns.
Start a new project / Activity called HelloTableLayout.
Open the layout file. Make it like so:
<? xml version = "1.0" encoding = "utf-8"?> <TableLayout xmlns: android = "http://schemas.android.com/apk/res/android" android: [...]
18 Dec
Posted by support as General 2 views, 0 Comments
Original From: http://blog.sina.com.cn/s/blog_4ca975460100g5yj.html
Android if they had to switch on the screen solution
The time in the development of the game, some games are only horizontal screen play, so when placed in the erection of mobile phone, to keep the game screen is still horizontal screen. To achieve [...]
Custom ContentProvider ———- The content provider is used to deal with data sources, while the content parser (ContentResolver) responsible for operating the specific content provider. The data source can be a file or database. More content resolver can simultaneously access the content provider because it is thread-safe . [...]
17 Dec
Posted by support as General 22 views, 0 Comments
HelloFormStuff. Java code is as follows
package com.example.test; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.CheckBox; import android.widget.EditText; import android.widget.ImageButton; import android.widget.RadioButton; import android.widget.Toast; import android.widget.ToggleButton; public class HelloFormStuff extends Activity (/ ** Called when the activity is first created. * / @ Override public void onCreate (Bundle savedInstanceState) (super.onCreate [...]
17 Dec
Posted by support as General 0 views, 0 Comments
In the Android application development, usually using JAVA language, in addition to the familiar with the basics of JAVA language, they also need to understand Android provides extended functionality JAVA
JAVA applications in the general, if you need to use reference-based library, usually need to use the following method:
[...]
ListView control is relatively common, but have always felt a bit tedious steps to create a ListView, so to sum up what, for easy access.
The program's performance is to achieve a ListView, ListView inside title, content and images, and to join click and long press response.
First, the [...]