Many reflection effects on the Internet are actually a symmetric transformation. You can change the transparency.
Matrix symmetric transformations include many types, including Y-axis symmetry, X-axis symmetry, and y =-x symmetry.
1. Y-axis
linearlayout is a linear layout control. Its child controls are arranged horizontally or vertically. sort all widgets or other containers, beyond the boundary, some controls will be missing or disappear. therefore, each row in a vertical list
Tablelayout is a complex layout. The simplest method is to drag the control to make an interface. However, tablelayout is often used in the Code, for example, to make a table. This topic describes how to use tablelayout.
1
Android: layout_above: Move the control's bottom to the control with the given IDAndroid: layout_below: place the top of the control under the control with the given IDAndroid: layout_toleftof align the right edge of the control with the left edge
Introduction
Google or Baidu is often used when we access the internet. If we enter the information we want in the input box, other prompts related to it will appear, which is very convenient. This effect is implemented using autocompletetextview in
Introduction
A scrollable view component with multiple entries displayed on the plane. entries in the component are associated with the component through a listadapter.
For example, the use of gridview is the first choice and the simplest method to
Introduction
In Android, there is an expandablelistview, which can be extended. The listview is the kind of display list that can be expanded by clicking it, And then clicked to contract back.
A view shows two levels of vertical scrolling list of
Introduction
A hierarchical layout container that allows users to scroll and display more content than the actual one. Scrollview isFrameLayoutThat is, you need to place a child element with its own scrolling content on it. A child element can be
How can we interact with the android program? To make the android program respond accordingly, we have to use Keyboard Events, touch events, sensor events, and so on.
The keyboard is the main input device in Android, and the response to the buttons
The most common thing we see is Frame Animation, which is indispensable in Android. It is easier to use. You only need to create one
The animationdrawabledf object represents the Frame Animation. Then, the addframe method is used to add the content
Poi search can be performed in three ways: search within earchinbounds by range and search term, search within earchincity by city poi, and search around within earchnearby.
Public intPoisearchincity(Java. Lang. String city, java. Lang. String key)
Convert drawable to bitmap
Public static bitmap drawabletobitmap (drawable) {// obtain the length and width of drawable int W = drawable. getintrinsicwidth (); int H = drawable. getintrinsicheight (); // retrieves the drawable color format bitmap.
Let's take a look.
How is it implemented? It's actually very easy!
First, use the matrix to rotate the image.
Second: Use the rotated image to create a bitmap reflectionimage with the same width. The height is the size of the original image (which
When processing an image, you sometimes need to add some borders to the image. The following describes how to add a simple border to the image.
The basic idea is: crop the border image into eight small images (the Best Picture size is the same,
Text can be moved as long as it is within the image range.
Package xiaosi. gettextimage; import android. content. context; import android. content. res. resources; import android. graphics. bitmap; import android. graphics. bitmapfactory;
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