Fragment, androidfragment
First, FragmentActivity class and layout;
public abstract class SingleFragmentActivity extends FragmentActivity { protected abstract Fragment createFragment(); @Override public void onCreate(Bundle
Android: standard of Activity Startup Mode
Let's take a look at the description of standard Startup Mode:
The default start mode is used. Every time an Activity is activated, an Activity instance is created and put into the Activity stack.
Next we
Introduction to nine subclasses of Android Drawable
Drawable represents an image in android. Note that it is an image rather than an image. An image is a subset of an image. Images can contain colors in addition to images.
In other words, Drawble is
A "bug" with three years of android development experience as "engineer"
A question about how to set scaleType in imageView.
Just at a.m., one of my outsourcing partners sent me a project code and asked me to look at such a "bug, after selecting an
Sort the StringBuffer tool class (1) and stringbuffer tool class
1 package com.gz civil. utils; 2 3/** 4 * same as StringBuffer 5*6 * @ author Dragon 7 * @ time 2013-3-1 8 */9 public class StrBuffer {10 private StringBuffer sb = null; 11 12 public
[Peer-to-peer technology] Collect Android data from Tom to Tom (2) and collect android data
I have introduced several technical documents on Android beginners and efficiency improvement in the article "Android programmers from Tom to John (1)".
Android custom AlertDialog and Activity transmit data to each other
Main functions:
1. Obtain the string settings from the TextView of the Activity to the TextView and EditText of AlertDialog.
2. Set the value in the EditText of AlertDialog to the
Circular ImageView (edge thickness and color can be set) -- Third-Party open source -- CircleImageView, circleimageview
: Https://github.com/hdodenhof/CircleImageView
Directly in xml:
Prompt & dialog box ---- Toast, android prompt
Toast (Toast)
1. Toast is a message prompt box. A message prompt box is displayed on the screen of the mobile phone. Without any buttons, the focus will not be obtained and will disappear
Callback in android
1. Introduction
The most classic callback in android is the click event setting listener (usually through switch (v. getId ().
btn_rigister.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View
Basic android control learning ----- SeekBar & RatingBar, basic android Control
SeekBar and RatingBar
1. SeekBar (drag bar)
(1) A simple understanding of a drag is a line that can be dragged. This is very common for us, such as video playback or
Android layout: Custom Shap circular ImageView. You can set the background and image separately,
I. Image preview:
I. implementation functions:
The layout must be a circular image. The background and icons of the image are separated and merged
Basic android control learning ----- RadioButton & CheckBox, basic android Control
Explanation of RadioButton and CheckBox:
I. Basic usage and event handling
(1) RadioButton is a single listener, which means only one of them can be selected. We need
Basic android control learning ----- ToggleButton & Switch, androidtogglebutton
ToggleButton and Switch:
I. Core Attributes:
(1) ToggleButton
TextOn: Text displayed when the button is selected
TextOff: Text displayed when the button is not
Android-based Activity and androidactivity
1. What is Activity?
Activity is one of the four main components of Android, and Activity is the most important component.
Activity provides users with a window for information interaction.
Ii. How to
Android layout ----- FrameLayout (frame layout) and framelayout
(-) Introduction to frame Layout
The frame layout container creates a blank area for each added component, which is called a frame. Each sub-component occupies one frame. These frames
Camera for android
When I first joined the current company, they wanted to write a series of image articles, starting from the place where the image was made-Camera.
If you only need to take a photo in your app, you only need to call the System
Talking about EventBus and eventbus
Overview:
EventBus is a release/subscription event bus optimized for Android.
The main function is to replace Intent, Handler, and BroadCast in Fragment, Activity, and Service.
The advantage of passing messages
Apktool (3) -- use Apktool and apktool
Role of yi.apk tool
The apk file of the Android app is not only a zip file that contains resources and compiled java code. If you try to decompress the file by using a decompression tool (such as stress), you
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