我用svg-android.jar
从https://github.com/pents90/svg-android
它的做工精细,但只有在日食的仿真器设备.Agrrrr.在真实设备上,它只是imageView
在屏幕上清空.这是我的代码:
SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.test);
Drawable drawable = svg.createPictureDrawable();
imgView.setImageDrawable(drawable);
Run Code Online (Sandbox Code Playgroud)
有什么建议吗?
是否有可能以编程方式创建event method
一个comboBox
?
在工作表上我有一个ComboBox
,我可以通过代码得到它的名字:
Dim ole As OLEObject
For Each ole In ActiveSheet.OLEObjects
If TypeName(ole.Object) = "ComboBox" Then
' ole.Name '<<<<<<<< here
End If
Next ole
Run Code Online (Sandbox Code Playgroud)
我现在如何创建和分配event method
for ole.Name
:
Private Sub myComboBox_Change()
...
End Sub
Run Code Online (Sandbox Code Playgroud)
在Java中,可以使用:myComboBox.setOnChangeListener(...some code of listener interface...)
;)
我无法添加支持lib v7 appCompat
.我这样做是这样的:在这里输入链接描述(请参阅使用资源添加库Eclipse
).当我这样做时,我有下一个:
被...extras\android\support\v7\appcompat\src
夹必须为空?
我尝试...extras\android\support
从磁盘中删除文件夹并通过Android SDK manager
Eclipse 下载,但它对我没有帮助.
我做错了什么?