You have to check if the device supports the Cocktail feature or not. You can check it with Slook instance as shown below :

boolean slookSupported = true;
Slook slook = new Slook();
try {
} catch (SsdkUnsupportedException e) {
// the device unsupporting  Slook
slookSupported = false;
if (slookSupported  && Slook.isFeatureEnable(Slook.COCKTAIL_BAR)) {
SlookCocktailSubWindow.setSubContentView(activity, R,id.sub_layout);
} else {

The Cocktail of the bar type should have a vertical layout and a horizontal layout. If you try to implement a ListView in RemoteViews, you have to consider implementing a ListView for the horizontal layout. Unfortunately, Android Framework doesn’t support HorizontalListView as Widget so Samsung Framework included a HorizontalListView widget for RemoteViews. You just add the layout xml implementing HorizontalListView in the layout-land folder of resources. Please refer below :


<ListView android:id="@+id/widgetlist" android:layout_width="match_parent" android:layout_height="match_parent" />


<HorizontalListView android:id="@+id/widgetlist" android:layout_width="match_parent" android:layout_height="match_parent" />

The Look package depends on a Samsung implementation in the Android Framework’s View System. This means that the Look package is only supported in devices with this implementation.

The Look functions will not work on the device, but there will be no build errors or exceptions.

Set the gravity value to GRAVITY_HOVER_POINT.

If your CustomView inherits from ViewGroup, then you can use WritingBuddy directly. If not, add a framework for the exterior and use WritingBuddy from a FrameLayout.