public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_information; Slook slook = new Slook(); LinearLayout l = (LinearLayout)findViewById(R.id.information); try { slook.initialize(this); } catch (SsdkUnsupportedException e) { l.addView(createTextView(e.ToString())); return; } l.addView(createTextView("*VersionCode:" + slook.VersionCode)); l.addView(createTextView("*Feature")); l.addView(createTextView(" - AirButton:" + slook.isFeatureEnabled(Slook.AIRBUTTON))); l.addView(createTextView(" - PointerIcon:" + slook.isFeatureEnabled(Slook.SPEN_HOVER_ICON))); l.addView(createTextView(" - SmartClip:" + slook.isFeatureEnabled(Slook.SMARTCLIP))); l.addView(createTextView(" - WritingBuddy:" + slook.isFeatureEnabled(Slook.WRITINGBUDDY))); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_information; Slook slook = new Slook(); LinearLayout l = (LinearLayout) findViewById(R.id.information); try { slook.initialize(this); } catch (SsdkUnsupportedException e) { l.addView(createTextView(e.ToString())); return; } l.addView(createTextView("*VersionCode:" + slook.VersionCode)); l.addView(createTextView("*Feature")); l.addView(createTextView(" - AirButton:" + slook.isFeatureEnabled(Slook.AIRBUTTON))); l.addView(createTextView(" - PointerIcon:" + slook.isFeatureEnabled(Slook.SPEN_HOVER_ICON))); l.addView(createTextView(" - SmartClip:" + slook.isFeatureEnabled(Slook.SMARTCLIP))); l.addView(createTextView(" - WritingBuddy:" + slook.isFeatureEnabled(Slook.WRITINGBUDDY))); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); Slook slook = new Slook(); try { slook.initialize(this); } catch (SsdkUnsupportedException) { return; } if (slook.isFeatureEnabled(Slook.COCKTAIL_BAR)) { // If device supports cocktail bar, you can set up the sub-window. ContentView = R.layout.activity_immersive_mode; SlookCocktailSubWindow.setSubContentView(this, R.layout.sub_view); } else { // Normal device ContentView = R.layout.activity_main; } mainText = (TextView)findViewById(R.id.main_text); ViewGroup subView = (ViewGroup)findViewById(R.id.sub_view_layout); if (subView != null) { int childCount = subView.ChildCount; for (int i = 0; i < childCount; i++) { if (subView.getChildAt(i) is ImageView) { subView.getChildAt(i).OnClickListener = mSubViewOnClickListener; } } } }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); Slook slook = new Slook(); try { slook.initialize(this); } catch (SsdkUnsupportedException) { return; } if (slook.isFeatureEnabled(Slook.COCKTAIL_BAR)) { // If device supports cocktail bar, you can set up the sub-window. ContentView = R.layout.activity_immersive_mode; SlookCocktailSubWindow.setSubContentView(this, R.layout.sub_view); } else { // Normal device ContentView = R.layout.activity_main; } mainText = (TextView)findViewById(R.id.main_text); ViewGroup subView = (ViewGroup)findViewById(R.id.sub_view_layout); if (subView != null) { int childCount = subView.ChildCount; for (int i = 0; i < childCount; i++) { if (subView.getChildAt(i) is ImageView) { subView.getChildAt(i).OnClickListener = mSubViewOnClickListener; } } } }