Discover simple notepad for android, include the articles, news, trends, analysis and practical advice about simple notepad for android on alibabacloud.com
Notepad (8) for android projects ----- withdrawal, restoration, and clearing of the canvas Function
Finally, I will make a gif image. Check whether the dynamic figure below is similar to the QQ whiteboard function.
Previously, only the drawing function on the canvas was implemented. Therefore, the custom view was directly written into the activity. This section aims to implement the function of revoking,
Android project notepad (12) ----- proportional scaling of images and adding borders to imagesThis article is my learning notes, welcome to reprint, but please note the Source: http://blog.csdn.net/jesson20121020
In Android UI development, image scaling is often encountered. For example, in notepad, the current images
audition recording Activityif (Path.substring (Path.length ()- 3, Path.length ()). Equals ("Amr")) {Intent Intent = new Intent (addactivity.this,showrecord.class); Intent.putextra (" Audiopath ", path); startactivity (intent);} Picture, then jump to view the image of the interface else{//there are two ways to view the picture, the first is to directly call the system's library to view the picture, the second is to customize the activity//call system library to view the picture/*intent Intent =
Dialoginterface.onclicklistener () {@Overridepublic void OnClick ( Dialoginterface Dialog, int which) {Dialog.dismiss ();}}); Alertdialogbuilder.create (). Show (); }At this point, all the functions of the artboard have been implemented.In fact, there is a more interesting function, is to set a pencil icon for the brush, the main principle is that in the custom view of the OnDraw method, the pencil picture is loaded in, and set the picture to move along the path.In the OnDraw method in
Android notepad NoteBook and androidnotebook
It is also transplanted from the mtk sdk and can be used to classify events.
The specific code can be viewed on GitHub. The link is at the end of the article. Below is:
Main Activity, Note list:
package com.zms.notebook;import android.app.ActionBar;import android.app.AlertDialog;import android.app.ListActivity;import android.app.ProgressDialog;import android.co
cannot be centered. the first way to find a solution online is to set ImageView's ScaleType property to Fitcenter in the XML file, and then set Setontouchlistener before the ImageView setscal () method. EType (Scaletype.matrix); But this method I did not succeed, the picture initially or in the upper left corner, the other way is to calculate the phone screen height and width, to the image center point (x, Y), and then through the matrix translation to that position, and finally through the Set
Presumably everyone has used QQ whiteboard function, there are two main, one is the graffiti function, in fact, similar to the previous section of the artboard function, and the other is handwritten, that notepad how can not this function, today to add handwriting for our Notepad.First, look at the effect:See, is not the heartbeat? Then hurry up to do it, in fact, the handwriting function is not difficult to achieve, is generally full-screen writing,
Android project notepad (13) ----- view pictures and play recordings
This article is my learning notes, welcome to reprint, but please note the Source: http://blog.csdn.net/jesson20121020
Today, we will implement the function of viewing images and recordings. When editing or browsing the notebook, click an image to open a custom Activity (of course, you can also call the image library of the system to vi
The previous section discussed the deletion, recovery, and emptying features in handwriting, so how can the artboard be a function of undo, redo, and erase, which is implemented today.Finally will do GIF map, see the following dynamic diagram, is not and QQ whiteboard function very much like.Previously, it was simple to draw on the artboard, so the custom view was written directly in the activity, which was separated by the ability to undo, redo, and
Android Learning Series (41)-simple use of Android Studio, android-android1. Environment
UBUNTU 14.04 + Android Studio 0.8.22. Install jdk
Openjdk-7 is a good choice:
sudo apt-get updatesudo apt-get install openjdk-7-jdkIt is not excluded that you need to select a default ve
Winfrom: simple screen acquisition for Android phones and simple Android operations; winfrom android
Why do I need to do this? It is because projection demonstration apps are often used. There are a lot of such software that can be installed to place the mobile phone interf
Android boot is simple, and android boot is simple.
Today, we will mainly discuss how android can enable a service to automatically start upon startup. The Android mobile phone will trigger a Standard Broadcast Action during start
List (listview), table (gridview), which must be indispensable in mobile apps. How to implement a more complex interface? Let's take a look at my.
This layout is the most basic and commonly used. There are many implementation methods for such a layout on the Internet, but many of them need to implement the adapter by themselves, it seems complicated and unnecessary, because we have simple but not simple
Android development-simple login interface and Android login interface
Use the
Use the
The Code is as follows:
Xml code:
Android: layout_width = "match_parent"Android: layout_height = "match_parent"Android: orientation = "vertic
My Android advanced tour ------> A simple Log encapsulation for Android, android advanced
Android. util. Log class, which can be easily used to print logs during encoding and debugging. However, if too many logs are printed in the released products, the performance will be s
Android cainiao study note 13 ---- Android controls (2) simple examples of custom controls, android Custom Controls
Sometimes, you may feel that the control provided by the system is too ugly, and you need to customize the control to achieve the desired effect.
The following is a reference to the first line of code.
1.
Simple tutorial on Android practice-13th guns (five major layout studies) and five androidWe know that Android applications are generally composed of multiple activities, which are displayed in the form of views. Views are composed of components one by one. Components are common buttons and TextEdit. How do we see the beautiful interfaces on
Objective:Now the Android studio version has gone to 2.0 (I'm using the developer version for the time being), but it's still the same as the previous version.(because I used a lot of third-party UI controls, which led to a very long project in the Android studio build, it takes about two or three minutes to change about one character and a maximum of 5 minutes.)In eclipse, however, it takes up to half a mi
Android: The ListView cache mechanism and the three realms of BaseAdapter (simple, simple, and artistic)
As we all know, the listview format is certain, and the data source is indeed multiple and diverse. At this time, an adapter is required to convert the data source to the format to be displayed by listview.
BaseAdapter is born.
The display and cache mechanism
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.