matrix, including multi-dimensional vector and dot matrix modeling classes, as well as some models in 3D space.
Pretty date A very good JavaScript library that displays dates in a very nice and friendly way.
XregexpThe Regexp object in Javascript already supports regular expressions,XregexpAdded more functions that may be included in future browsers (ecmascript 4-ES4 ). This library caches the Regexp object and adds many new features.
Javascript URL LibraryA JavaScript library used to process a
font site that can be sorted by letters, themes, and updated dates. Most fonts can be downloaded for free.
13. Icon Finder
A 100,000 free icon search engine is included.
14. whatthefont
I saw a nice font, but I don't know its name?
Submit the font image to whatthefont. It will find the font name closest to your font in the database, or ask the font enthusiast to help in the whatthefont forum.
15. lorem ipsum
Lorem ipsum is the meaningless text for printing the typographical industry. It is a
Android: hint = "enter a number! "// Set the prompt information displayed on the spaceAndroid: Numeric = "integer" // you can only enter an integer. If it is a decimalAndroid: singleline = "true" // you can specify a single-line Input. If this parameter is set to true, text is not automatically wrapped.Android: Password = "true" // you can only enter a password.Android: textcolor = "# ff8c00" // font colorAndroid: textstyle = "bold" // font, bold, italic, bolditalicAndroid: textsize = "20dip" //
Fonts play this important role in design. Designers often spend a lot of time selecting fonts. If you are looking for good-looking free English fonts, the 30 free English fonts collected below are exactly for you. Download them now.Homestead Font
Click to downloadHellforge
Click to downloadNovecento font family
Click to downloadRibbon Typeface
Click to downloadTetra
Click to downloadThe Kabel Font
Click to downloadQumpellkaNo12
Click to downloa
spacing between words.Android: typeface = "monospace" // font, normal, sans, serif, monospaceAndroid: background = "@ null" // background, which does not exist here. It is transparent.Android: layout_weight = "1" // weight, controls the status between controls, and is quite useful when the control is displayed.Android: textAppearance = "? Android: attr/textAppearanceLargeInverse "// text appearanceAndroid: layout_gravity = "center_vertical" // you ca
, Version 2.0 (the "License"); * you may not use this file License t in compliance with the License. * You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writin G, software * distributed under the License is distributed on an "as is" BASIS, * without warranties or conditions of any kind, either express or implied. * See the License for the specific language governing permissions and * limitations under the Li
!"); // Get roboto-italic font. Typeface tf = Typeface.createFromAsset(getActivity().getAssets(), "Roboto-Italic.ttf"); data.setCenterText1Typeface(tf); // Get font size from dimens.xml and convert it to sp(library uses sp values). data.setCenterText1FontSize(ChartUtils.px2sp(getResources().getDisplayMetrics().scaledDensity, (int) getResources().getDimens
Watermarks images in AndroidWatermark code
Public Bitmap addWaterMark (Bitmap src, String water, Context context) {Bitmap tarBitmap = src. copy (Config. ARGB_8888, true); int w = tarBitmap. getWidth (); int h = tarBitmap. getHeight (); Canvas canvas = new Canvas (tarBitmap); // enable anti-aliasing and use the device's text field to Paint textPaint = new Paint (Paint. ANTI_ALIAS_FLAG | Paint. DEV_KERN_TEXT_FLAG); // set textPaint for the font. setTextSize (35366f); // font size textPaint. setTyp
with the perfect pixel version.
Therefore, the most basic solution is to create a separate version for each image for each pixel density, set the same name for it and put it under the correct folder; in this way, Android selects the desired version based on the actual situation of the device platform.
Custom font
The implementation of custom fonts on Android is also very simple: copy the fonts to main/assets, and then use the following code to call them:
Ty
1. Menu Design
Press the device menu key to display the Options menu, which contains two groups of menu items: Icon menu (up to 6 menu items are supported, and checkboxes or radio buttons are not supported) and extended menu expanded menu;
Context menu is a floating menu list, which usually appears when you press the view;
Sub-menu submenu is also a floating menu list, which is displayed by selecting menu items in the option menu or context menu. nested sub-menus are not supported.
2. viewgroup
1. definition includes 1 textview layout: Main. xml
Android: Orientation = "vertical"Android: layout_width = "fill_parent"Android: layout_height = "fill_parent">Android: Id = "@ + ID/text"Android: layout_width = "fill_parent"Android: layout_height = "fill_parent"Android: gravity = "center"/>
2. The suffix of the downloaded font file is *. TTF. For example, biscuit_tin.ttf.
* Create a folder in the assets directory under the project directory: fonts, copy the *. TTF file to this directory, and
){Base. onrender (DC );// Draw a rectangleDC. drawrectangle (brushes. Red, new pen (brushes. Blue, 1 ),New rect (new point (20,20), new size (100,100 )));// Draw textDC. drawtext (New formattedtext ("Hello, world! ", Cultureinfo. currentculture,Flowdirection. lefttoright, new typeface ("Arial"), 40, brushes. Orange ),New Point (50, 60 ));}}}(2) Save the image to a file:Protected void savephoto (string filename){Drawingvisual = new drawingvisual ();Dra
: textstyle = "bold" // font, bold, italic, bolditalicAndroid: textsize = "20dip" // sizeAndroid: Capitalize = "characters" // write with uppercase lettersAndroid: textalign = "center" // edittext does not have this attribute, but textview hasAndroid: textcolorhighlight = "# cccccc" // specifies the background color of the selected text. The default value is blue.Android: textcolorhint = "# FFFF00" // sets the text color of the prompt message. The default value is gray.Android: textscalex = "1.5
(Rasterizer) // sets the grating.Shader setshader (shader) // sets the shadow.
Void settextalign (paint. Align align) // sets text alignment.
Void settextscalex (float scalex) // sets the text zoom factor. 1.0f is the originalVoid settextsize (float textsize) // you can specify the font size.Typeface settypeface (typeface) // sets the font. typeface includes the font type, width, skew, and color.
Void setu
typefaces PackageCom.example.titanictextview;ImportAndroid.content.Context;ImportAndroid.graphics.Typeface;ImportAndroid.util.Log;Importjava.util.Hashtable;/*** Created by Linux on 2016/6/9.*/ Public classtypefaces {Private Static FinalString TAG = "typefaces"; Private Static FinalhashtableNewHashtable(); Public StaticTypeface Get (Context C, String Assetpath) {synchronized(cache) {if(!Cache.containskey (Assetpath)) { Try{Typeface T=T
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.