{"id":12749,"date":"2019-11-25T19:56:19","date_gmt":"2019-11-25T19:56:19","guid":{"rendered":"https:\/\/ittutorial.org\/?p=12749"},"modified":"2020-01-16T08:24:30","modified_gmt":"2020-01-16T08:24:30","slug":"android-programming-4-button-component","status":"publish","type":"post","link":"https:\/\/ittutorial.org\/android-programming-4-button-component\/","title":{"rendered":"Android Programming -4  Button Component"},"content":{"rendered":"<p>Hi guys in this tutorial\u00a0\u00a0I will talk about button component.<\/p>\n<p>In my previous tutorial, I mentioned the textview and edittext components. If you have not read it yet, I recommend you read it first.<\/p>\n<p><a href=\"https:\/\/ittutorial.org\/android-programming-3-textview-and-edittext-components\/\">https:\/\/ittutorial.org\/android-programming-3-textview-and-edittext-components\/<\/a><\/p>\n<p>If we go through the login page,\u00a0when user enters user name and password with edittexts, we need check the correctness of the entered password.\u00a0Because according to this result, either the user will login to the application and access the data or login to the wrong password error.\u00a0Therefore, it is very important that this control mechanism works correctly.<\/p>\n<p>It is as important as when this control structure will work correctly.<\/p>\n<pre>&lt;RelativeLayout\r\n    xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n\u00a0\u00a0\u00a0\u00a0android:layout_width=\"match_parent\"\r\n\u00a0\u00a0\u00a0\u00a0android:layout_height=\"match_parent\"\r\n\u00a0\u00a0\u00a0\u00a0android:orientation=\"vertical\"\u00a0&gt;\r\n\r\n&lt;Button\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0android:id=\"@+id\/button_id\"\r\n\u00a0\u00a0\u00a0\u00a0\u00a0android:layout_centerInParent=\"true\"\r\n\u00a0\u00a0\u00a0\u00a0\u00a0android:layout_width=\"wrap_content\"\r\n\u00a0\u00a0\u00a0\u00a0\u00a0android:layout_height=\"wrap_content\"\r\n     android: text_color=\"#ffff\"\r\n     android:backgroud=\"#4b5320\"\r\n     android:text=\"Giri\u015f Yap\"\u00a0\/&gt; \r\n\r\n&lt;\/RelativeLayout&gt;\r\n\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12750\" src=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/11\/android-186x300.png\" alt=\"\" width=\"186\" height=\"300\" srcset=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/11\/android-186x300.png 186w, https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/11\/android.png 335w\" sizes=\"auto, (max-width: 186px) 100vw, 186px\" \/><\/pre>\n<p>Height, weight and id variables, which are common to all components, are defined.\u00a0The following set of features is entirely for the design of the page.<\/p>\n<p>For example, my design is at the bottom and in the middle of the page. The color is green and the text on it is black.\u00a0But your design is below the button textview in 20 dp,\u00a040 dp margins from left and right and\u00a0Color can be purple and text color can be white.<\/p>\n<p>As you can see, the features we set depend entirely on the design.\u00a0For this example, android: layout_centerInParent = \u201dTrue\u201d feature in the middle of the page we have made the button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi guys in this tutorial\u00a0\u00a0I will talk about button component. In my previous tutorial, I mentioned the textview and edittext components. If you have not read it yet, I recommend you read it first. https:\/\/ittutorial.org\/android-programming-3-textview-and-edittext-components\/ If we go through the login page,\u00a0when user enters user name and password with edittexts, we need check the correctness &hellip;<\/p>\n","protected":false},"author":44,"featured_media":8094,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[7017,7011,7007,7005,7015,4746,7009,7008,7010,7024,3319,7021,7026,7016,7022,7025,7018,7019,7020,7006,7014,7023,7012,7013],"class_list":["post-12749","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-android","tag-android-app-development","tag-android-app-development-software","tag-android-button-color-xml","tag-android-coding","tag-android-development-basics","tag-android-programming","tag-android-programming-language","tag-android-programming-tutorial","tag-android-programming-with-java","tag-android-project","tag-android-studio","tag-android-studio-basic-example","tag-android-studio-basic-projects","tag-android-studio-first-app","tag-android-studio-lessons","tag-android-studio-projects","tag-android-studio-tutorial","tag-android-studio-tutorial-for-beginners","tag-android-studio-tutorial-point","tag-android-xml-coding","tag-create-mobile-app-without-coding","tag-java-android-developer","tag-mobil-app-maker","tag-mobile-application-make"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/04\/featured-860x280.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/12749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/users\/44"}],"replies":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/comments?post=12749"}],"version-history":[{"count":4,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/12749\/revisions"}],"predecessor-version":[{"id":13660,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/12749\/revisions\/13660"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media\/8094"}],"wp:attachment":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media?parent=12749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/categories?post=12749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/tags?post=12749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}