Is Android DroidDraw such a simple feature? JAVA is not written by people __java

Source: Internet
Author: User

Here under the

http://code.google.com/p/droiddraw/

Need root

The linear layout beats, in the attribute, the point of apply also not, how should operate it.

I really want to ask Java people, basic functions can not do, but also to support the Mac OS, Linux advertising. No, it's the JVM, really, the writing Helloword program can support multiple systems.



It really doesn't take droiddraw,2011 years to write Android, Eclipse's XML editor has done well, DroidDraw should have been useful for 09 years when Android came out, and it hasn't been updated in 2 years, as is the case with open source projects No team financial support, always depends on the quality of the individual, so by eclipse catch is sure

button text How to hit the vertical, in early 11 when the problem almost no one understand, now Baidu can search a large pile out

button is inherited TextView, so can use TextView properties, android:ems= "1", or btn.setems (1);

Http://www.eoeandroid.com/thread-155951-1-1.html

can only show that the people who are now writing Android have a lot of, want to defy the old are not, go backwards.


Transformation

1. Conversion of Bitmap to Byte
Bytearrayoutputstream out = new Bytearrayoutputstream ();
Bitmap.compress (Bitmap.CompressFormat.PNG, out);
Byte[] array= Out.tobytearray ();

2. Byte converted to bitmap
Bitmap Bitmap = bitmapfactory.decodebytearray (data, 0, data.length);

3. Conversion of bitmap to drawable
drawable drawable = new fastbitmapdrawable (bitmap);

4. Conversion of drawable to bitmap
A. Bitmapdrawable, fastbitmapdrawable directly with Getbitmap
B. Other types of drawable painted on a bitmap with canvas
Canvas Canvas = new Canvas (bitmap)
Drawable.draw (Canvas)

5.id Conversion graphic.drawable
drawable drawable = Activity.getresources (). getdrawable (R.drawable.icon);

6.id converted into bitmap
Bitmap Bitmap = bitmapfactory. Decoderesource (resources res, int ID)

Adapter Mapping

Http://www.cnblogs.com/allin/archive/2010/05/11/1732200.html



Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.