En Yeni Konular

Button & TextView & EditText

Button & TextView & EditText

TextViewYazıları tutan bir görsel nesnedir

EditTextTextView den türeyen ve yazı girmemize olanak tanıyan bir görsel nesnedir.

Button: tıklama işlemlerimi gerçekleştirebildiğimiz bir görsel nesnedir. TextView’in alt sınıfıdır.

Çok Kullanılan Özellikleri

  • TextView
  • EditText
  • Button
ÖzellikAçıklama
android: idIt is used to uniquely identify the control
android:autoLinkIt will automatically found and convert urls and email addresses as a clickable links.
android: emsIt is used to make the textview be exactly this many ems wide.
android:hintIt is used to display the hint text when text is empty
android:widthIt makes the TextView be exactly this many pixels wide.
android:heightIt makes the TextView be exactly this many pixels tall.
android:textIt is used to display the text.
android:textColorIt is used to change the color of text.
android:gravityIt is used to specify how to align the text by the view’s x and y axis.
android:maxWidthIt is used to make the TextView be at most this many pixels wide.
android:minWidthIt is used to make the TextView be at least this many pixels wide.
android:textSizeIt is used to specify the size of text.
android:textStyleIt is used to change the style (bold, italic, bolditalic) of text.
android:textAllCapsIt is used to present the text in all CAPS
android:typefaceIt is used to specify the Typeface (normal, sans, serif, monospace) for the text.
android:textColorIt is used to change the color of text.
android:textColorHighlightIt is used to change the color of text selection highlight.
android:textColorLinkIt is used to change the text color of links.
android:inputTypeIt is used to specify the type of text being placed in a text fields.
android:fontFamilyIt is used to specify the fontFamily for the text.
android:editableIf we set, it specifies that this TextView has an input method.
ÖzellikAçıklama
android:idIt is used to uniquely identify the control
android:gravityIt is used to specify how to align the text like left, right, center, top, etc.
android:textIt is used to set the text.
android:hintIt is used to display the hint text when text is empty
android:textColorIt is used to change the color of text.
android:textColorHintIt is used to change the text color of hint text.
android:textSizeIt is used to specify the size of text.
android:textStyleIt is used to change the style (bold, italic, bolditalic) of text.
android:backgroundIt is used to set the background color for edit text control
android:emsIt is used to make the textview be exactly this many ems wide.
android:widthIt makes the TextView be exactly this many pixels wide.
android:heightIt makes the TextView be exactly this many pixels tall.
android:maxWidthIt is used to make the TextView be at most this many pixels wide.
android:minWidthIt is used to make the TextView be at least this many pixels wide.
android:textAllCapsIt is used to present the text in all CAPS
android:typefaceIt is used to specify the Typeface (normal, sans, serif, monospace) for the text.
android:textColorHighlightIt is used to change the color of text selection highlight.
android:inputTypeIt is used to specify the type of text being placed in a text fields.
android:fontFamilyIt is used to specify the fontFamily for the text.
android:editableIf we set false, EditText won’t allow us to enter or modify text
ÖzellikAçıklama
android:idIt is used to uniquely identify the control
android:gravityIt is used to specify how to align the text like left, right, center, top, etc.
android:textIt is used to set the text.
android:textColorIt is used to change the color of text.
android:textSizeIt is used to specify the size of text.
android:textStyleIt is used to change the style (bold, italic, bolditalic) of text.
android:backgroundIt is used to set the background color for button control.
android:paddingIt is used to set the padding from left, right, top and bottom.
android:drawableBottomIt’s a drawable to be drawn to the below of text.
android:drawableRightIt’s a drawable to be drawn to the right of text.
android:drawableLeftIt’s a drawable to be drawn to the left of text.
Bir an evvel asıl konulara geçmek için Görsel bileşenlerin detaylarına girmeceyegim

Listener özelliğini kullanarak bir örnek yapalım

Girilen isim ve soy ismi birleştirip ekrana yazan uygulama için, 1 textView, 2 editText, 1 Button ekliyoruz

Ekran Çıktısı
Uygulama Ciktisi

Hakkında Necip Akgöz

İLGİNİZİ ÇEKEBİLİR

Android Bottom Navigation View Kullanımı

Bottom Navigation View Kullanımı Örnek Kullanmak için material design kütüphanesi build.gradle dosyasına eklenmelidir.

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir