android - No preview of custom views on UI designer in Eclipse -


background

i've been creating many types of custom views, , previews shown fine on ui designer of adt.

lately, after updating newest version of adt ( 22.0.5.v201307292155--757759 ), can't see type of custom view, not simplest 1 .

the problem

now, know sure custom views can previewed fine , since if create new workspace , create them, can see them fine.

the problem on current workspace, has many settings projects, keep getting error:

the following classes not found: - ... (change ... , fix build path, edit xml, create class)

where "..." class of custom view.

i gray rectangle each custom view use, , lint complains:

class referenced in layout file, ..., not found in project or libraries

this weird, since used correct syntax custom views in xml (and i've done lot). drag&drop didn't help.

it's weird because eclipse can find classes (using ctrl+click on xml tag goes right correct class) , doesn't seem find them while viewing.

i've tried uninstall adt , reinstall it, didn't help. i've tried uninstall , re-install relevant components sdk manager. nothing helped.

here's sample code of custom view doesn't show @ :

public class customtextview extends textview {      public customtextview(context context) {         super(context);     }      public customtextview(context context, attributeset attrs) {         super(context, attrs);     }      public customtextview(context context, attributeset attrs, int defstyle) {         super(context, attrs, defstyle);     } } 

as can see, there nothing special in code.

the question

why occur? how can fix it? can perhaps copy (and mean all) settings of current workspace new 1 solve it?

does else have problem? adt bug?

note: not want reset workspace. has far many special settings projects within it.

did update eclipse plugin adt?

i know happened me once missed.

maybe if there updates actual platform sdk's update them well. can try change version of sdk preview uses latest or earlier 1 (this android icon on top left in preview should 18).

i know custom views don't render if use shadows example on text. set isineditmode flag inside custom view skip those.

at end download new zip adt bundle , try again :)

hope helps somehow.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -