protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_product_detail); mWebView = FindViewById <WebView>(Resource.Id.webview); var webSettings = mWebView.Settings; webSettings.JavaScriptEnabled = true; var intent = Intent; var key = intent.GetStringExtra(MainActivity.IntentProductKey); var context = new ProductApplicationContext(); var selectedProduct = context.GetProductDb().GetProductByName(key); mWebView.LoadUrl(selectedProduct.UrlWebPage); var actionBar = ActionBar; //actionBar.SetDisplayHomeAsUpEnabled(true); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); RendererConfiguration config = new RendererConfiguration { ShadowsEnabled = true, BloomEnabled = true, HDREnabled = true, PBREnabled = true }; mViroView = new ViroViewARCore(this, this); SetContentView(mViroView); var intent = Intent; string key = intent.GetStringExtra(IntentProductKey); ProductApplicationContext context = new ProductApplicationContext(); mSelectedProduct = context.GetProductDb().GetProductByName(key); View.Inflate(this, Resource.Layout.ar_hud, mViroView); mHudGroupView = FindViewById <View>(Resource.Id.main_hud_layout); mHudGroupView.Visibility = ViewStates.Gone; }
public CategoryAdapter() { mContext = new ProductApplicationContext(); mSelectedCategoryIndex = -1; }
public ProductAdapter(Context context) { mAppContext = new ProductApplicationContext(); }