It is worth noting that while MyEclipse is more powerful than eclipse, it is better to choose ECLIPSE,SDK compatibility with Eclipse in the specific Android development process, with myeclipse words that are prone to a variety of minor problems, If
Objective
Android often use dialog to implement some hints and some special effects, and the style is not the same, each time have to look up a lot of information, it is not necessarily able to solve. dialog box is a good thing to create a simple
We develop a software, if the mobile phone installed too much software, it will be difficult to flip, so, there is a shortcut on the main page will be very good, the following is the detailed code:
Copy Code code as follows:
/**
*
The activity is set to full screen and untitled bar, using Andorid.view.Window and Android.view.WindowManager. Window.feature_no_title represents no title bar.
WindowManager.LayoutParams.FLAG_FULLSCREEN represents a full screen.
The
specific
Everyone, as we all know, two scrollview in the same direction in Android can not be nested, what if there is such a demand? (This requirement is usually made by people who don't know Android)
Is it really impossible to nest? Of course, as long as
Android Alertdialog Custom Style
Like a list of options for the pop-up dialog box, to change the style is generally taken to rewrite the layout way
Today to understand that can actually customize the style, and share with you, in fact, very simple
First, to introduce the following about PX, PT, PPI, DPI, DP knowledge
Terms
Description
Px
(pixel), pixel, the most basic point on the screen to display data
Pt
(point), Dot 1pt=1/72 inch
Manipulate the picture itself. Try not to use Setimagebitmap, Setimageresource, Bitmapfactory.decoderesource to set a large image, because these methods after completing the decode, ultimately through the Java layer of CreateBitmap to complete, need
The default toast of the Android system is very concise and easy to use. But sometimes our programs use the default toast and the overall style of the program, and this time we need to customize the toast to make it more integrated with our programs.
This tutorial for you to share the Android Popupwindow pop-up menu specific code, for your reference, the specific content as follows
Project code: Http://xiazai.jb51.net/201611/yuanma/PopupLeftMenu (jb51.net). rar
The Project SDK is 5.1,
This article GitHub code links
Https://github.com/AndroidMsky/AndoirdIOSPicker
Let's go ahead and figure it out:
This is the author of a recent project has been used a selector library, and I have made changes in it, and decided to continue to
Seekbar is a drag bar control, the simplest case is our adjust volume, as well as audio video playback, traditional Seekbar style, such as figure
The traditional implementation is too simple to be enough for us to be able to pretend to be forced.
The bottom pop-up box is often needed in the project, and here I'll tidy up one of the more convenient ways I use it (the bottom is a dialog with a horizontal full screen).
The effect diagram looks like this (only the key parts are shown):
The
Viewpager is used to achieve a multiple-page switching effect, which exists in Google's Compatibility Pack, so remember to include "Android-support-v4.jar" in Builldpath when quoting
You must first know that to use Viewpager, you must use
Android:theme= "@android: Style/theme.dialog": Activity shown as dialog box mode
Android:theme= "@android: Style/theme.notitlebar": Do not display the application title bar
Android:theme= "@android: Style/theme.notitlebar.fullscreen": Do not
Test environment for adnroid more than 2.1.
1.androidmanifest.xml Permission Configuration:
To add Internet access rights:
Copy Code code as follows:
2. Asynchronous Picture class Imagedownloadtask
Copy Code code
Custom Pulltorefreshlistview Inherits ListView and Adds a Drop-down header layout to the ListView header. Exactly the same as ListView usage.
The custom ListView code is detailed to refer to: http://www.jb51.net/article/97845.htm
Detailed code for
Copy Code code as follows:
Hide IME
Inputmethodmanager IMM = (Inputmethodmanager) getapplicationcontext (). Getsystemservice (Context.input_method_ SERVICE);
Show or hide IME
Imm.togglesoftinput (0, inputmethodmanager.hide_not_always);
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