Hello,
I'm making a (wrapper)-library for the Samsung Galaxy Note SPen.
Samsung delivered an SDK with it, and i want to turn it into a Basic4Android compatible library.
I just need to know the basic on how I should be able to add the following:
1. Should I need to use a ViewWrapper? So yes, are there any Basic4Android examples
2. Can i register a CanvasView and SettingView programmatically instead of making an xml file?
3. How should i register the view then (see 2).
4. How should i be able to work with the CanvasView?
5. More things i should know?
Link to sdk: SAMSUNG Developers
Thanks,
Tomas
I'm making a (wrapper)-library for the Samsung Galaxy Note SPen.
Samsung delivered an SDK with it, and i want to turn it into a Basic4Android compatible library.
I just need to know the basic on how I should be able to add the following:
To develop an application using the drawing function of the SDK, a canvas on which the drawing is done is required. The SDK provides the canvas through the CanvasView class included in the package.
In addition, the SDK provides the SettingView class in the package so that developers can easily register a popup layout to the CanvasView class that can be used for the pen settings.
Developers can register SettingView to CanvasView as follows.
1. Add the view to be used to the layout xml file.
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.samsung.sdraw.CanvasView
android:id="@+id/canvas_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.samsung.sdraw.SettingView
android:id="@+id/setting_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
2. Register the CanvasView and SettingView
CanvasView mCanvasView = (CanvasView) findViewById(R.id.canvas_view);
SettingView mSettingView = (SettingView) findViewById(R.id.setting_view);
1. Should I need to use a ViewWrapper? So yes, are there any Basic4Android examples
2. Can i register a CanvasView and SettingView programmatically instead of making an xml file?
3. How should i register the view then (see 2).
4. How should i be able to work with the CanvasView?
5. More things i should know?
Link to sdk: SAMSUNG Developers
Thanks,
Tomas
Last edited: