Firefox Add-Ons(Extension) – Context Menu Yapımı (Search On Twitter)

4 Mar

Manifest.json> { “manifest_version”: 2, “name”:”Search on Twitter”, “description”: “Selected text Search on Twitter”, “version”: “1.0”, “author”: “Semih Çelikol”, “homepage_url”: “http://semihcelikol.com”, “icons”: { “48”: “icons/icon48.png”, “64”: “icons/icon64.png”, “96”: “icons/icon96.png” }, “permissions”: [“contextMenus”], “background”: { “scripts”: [ “background.js” ] } } background.js … Read More »

Xamarin.Android – SwipeRefreshLayout Kullanımı

18 Şub
SwipeRefreshLayoutExample

Örneğin bir Listview’ınız var ve bu Listview’a datanızı basıyorsunuz. Yapmamız gereken ilk adım, Listview’ı SwipeRefreshLayout içerisine almak. Şöyle: <android.support.v4.widget.SwipeRefreshLayout android:id="@+id/swipeRefreshLayoutMain" android:layout_width="match_parent" android:layout_height="match_parent"> <ListView android:id="@+id/listMain" android:layout_width="match_parent" android:layout_height="match_parent"/> </android.support.v4.widget.SwipeRefreshLayout> Şimdi kod kısmına geçip, ilgili objeyi çekip, refresh olduğunda yapacaklarımızı yazabiliriz. Benim örneğimde, … Read More »

Xamarin.Android – Diğer uygulamalarla paylaşım (Link/Text/Html/Image)

17 Şub
XamarinAndroidShareWithOtherApps

Text/Link paylaşımı için Intent sharingIntent = new Intent(Android.Content.Intent.ActionSend); sharingIntent.SetType("text/plain"); sharingIntent.PutExtra(Android.Content.Intent.ExtraText, "https://play.google.com/store/apps/details?id=" + PackageName); StartActivity(Intent.CreateChooser(sharingIntent, "Sharing link option")); string shareBodytext = string.Format("<html>" + "<title>{0}</title>" + "<body>Im watching {1} – {2}x{3} <br>" + "<img src='{4}'/> <br>" + "Check out app at: https://play.google.com/store/apps/details?id={5}"+ … Read More »

Asp.Net Core – DataTable client side kullanımı (Bootstrap ile)

30 Ara

Başlayalım: CoreDataTableExample isimli, ASP.Net Core 3.1 seçerek boş bir proje oluşturdum. Öncelikle projemde kullanmak üzere Product isimli bir model oluşturdum. public class Product { [Required] [StringLength(50)] [DisplayName("Ürün kodu")] public string Code { get; set; } [Required] [StringLength(150)] [DisplayName("Ürün adı")] public … Read More »

Xamarin.Android – Popup/Dialog/AlertDialog kullanımı

25 Kas

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:id="@+id/btnShow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Dialog/Popup Show" /> </RelativeLayout> protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); Button btnShow = FindViewById<Button>(Resource.Id.btnShow); … Read More »