问题描述
例如,我写了一个SuperTextView.
我的项目里,除了依赖了很多module,当我把刚刚写的自定义View放在非主module中.那么在布局中使用就不会有任何的提示.当我在写<SuperTextView时没有任何提示,当我手动写完<com.xxx.xxx.SuperTextView></com.xxx.xxx.SuperTextView>时,我再去写例如
android:layout_width='wrap_content'android:layout_height='wrap_content'
也没有任何提示.
如何才能有提示呢?
问题解答
回答1:你是否在build.gradle中添加了该module的依赖
compile project(’:moduleName’)