A new user guide library in the scan box style on Android and a new android user
Introduction
This is a new guide to the scan box style. The effect is as follows.Use Gradle
compile 'com.yanzhikaijky:YGuider:0.9.2'
Supported features
Currently, only one scan box guide is
Android Service is divided into two types:
Local Service: called in the same apk
Remote Service: called by another apk
Remote services must be completed using AIDL.What is AIDL?
AIDL (Android Interface Definition Language) is an IDL Language used to generate code for interprocess communication (IPC) between two pro
Swift custom control-input box
When developing Android projects, common functions are often encapsulated into controls. One is to reduce the amount of code, the other looks concise, and Apple development also prefers to encapsulate them into controls, then drag and drop in the storyboard. for IOS development, the code quality is not very high because it belongs t
Android implements the dialog box rounded corner Function
Android implements the custom dialog rounded corner Function
The customer has just drawn a UI for the company's Android project. The requirements are as follows:
The pop-up window requires four rounded corners, and the color of the title bar is different from
This example describes the custom control usage of Android development. Share to everyone for your reference, specific as follows:
Share with you today the use of the combined controls. Most of the time Android custom controls do not meet the requirements. There are many ways you can draw one yourself, you can override some of the steps by inheriting the underly
interface. if it is another thread, that is the one that executes your code in the service.Thus, if only local threads are accessing the service, you can completely control which threads are executing in it (but if that is the case, then you shouldn't be using aidl at all, but shoshould instead create the interface by implementingA binder ).
Callfrom a remote process are dispatched from a thread pool the
Basic usage of ProgressDialog
ProgressDialog is the progress dialog box. The Android phone comes with a simple dialog box that we can use to define what we want to show in the dialog box ProgressDialog.
First look at the ProgressDialog inside the method
Setprogressstyle: Set the progress bar style, the style is roun
Android custom message prompt box similar to QQ
When I saw the QQ message prompt box, I felt that the effect was very good. I made a similar display, as shown below:
Click to view short videosThe effect is good. The overall result is the combination of the Translate animation and the FrameLayout layout. Let's take a look at the code below:Activiy_main.xml
Android:aidl and remote service calls
The content of this talk, understand is difficult, perhaps you read a lot of material also can not see, but use up lack of simple deadly. So we simply take a music player in the progress bar example to illustrate the value of aidl and remote service and how to use, you put this example run side, experience is OK. The following example is my
Part of the project instanc
We all know that EditText and TextView are Android text input boxes and text display boxes, but based on the size of the phone screen, if you need to enter more text or display more content, the phone screen is far from enough, So the function of having a scroll bar on a text box is a must on the phone, and here's how to add a scroll bar.To add a scroll bar, it is very simple, simply add the scroll bar
[Android] mobile guard custom dialog box layout, android guard
Mobile phone anti-theft page
Click anti-theft on the mobile phone to determine whether to set a password. If no password is set, a dialog box is displayed. If a password has been set, the Enter Password dialog box
This example describes the Android Dialog dialog box usage. Share to everyone for your reference, specific as follows:
Activities provides an easy to manage dialog box mechanism for creating, saving, and replying, such as Oncreatedialog (int), onpreparedialog (int, Dialog), ShowDialog (int), Methods such as DismissDialog (int), which, if used, will return the ac
, marked with red 1 as RadioButton, and marked with red 2 as TextView. All control logics are implemented in the current Activity.
2: The red box marked with 3 is an ImageSelectFragment, which corresponds to a Framelayout layout in the Activity and controls its display and hiding.
3: all the images displayed by ImageSelectFragment are displayed in a GridView, and the corresponding GridAdapter is configured
I am troubled by work problems, so I have not written any blogs for the past few days.
Recently, I felt I was lazy. As a programmer, we had to keep learning when we were charging, so we couldn't leave ourselves alone.
Let's take a look at the use of the Spinner control in the drop-down box.
Step 1: Create a project Ep. Spinner, and use the default values for the rest.
Step 2: edit the view to place a Spinne
publicvoid Beforetextchanged (Charsequences,intstart,intbefore,intcount) { if (! Resettext) { cursorpos=getselectionend (); // here with s.tostring () And not directly with s because if you use s, // So, Inputaftertext and s are pointing to the same address in memory, S has changed, nbsP;//inputaftertext also changed, then the expression filter failed inputaftertext= s.tostring (); }} @Override publicvoidontextchanged (charsequences,intstart,int Before,intcount) { if (!resettext) { if (count
Getting started with Android 2016 (13)-blocking dialog box PopupWindow
The non-blocking dialog box is described in the previous two chapters. Today we will talk about the blocking dialog box-PopupWindow
So what is blocking and what is non-blocking? What is the difference between PopupWindow and AlertDialog?
First, let'
Android custom view Control and androidview Control
Reprinted from: develop 2. Compile a subclass that inherits the custom View 3. Add properties for the custom View Class 4. Draw controls 5. respond to user messages 6. Custom callback function 1. View Structure Principle Android system the view structure is also desig
Write in frontEngaged in Android development so far, a reference to the use of Android Development dialog box to think of Alertdialog or Popupwindow, I also summarized in the previous blog The use of the two dialog box, interested in the reliable look look Android dialog
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.