

{"id":1615,"date":"2022-03-13T23:50:56","date_gmt":"2022-03-13T14:50:56","guid":{"rendered":"https:\/\/curecode.jp\/tech\/?p=1615"},"modified":"2022-03-13T23:50:56","modified_gmt":"2022-03-13T14:50:56","slug":"android-materialcomponents-textinputedittext-style-inflateexception","status":"publish","type":"post","link":"https:\/\/curecode.jp\/tech\/android-materialcomponents-textinputedittext-style-inflateexception\/","title":{"rendered":"Android MaterialComponents \u306e TextInputEditText \u306e style \u3092\u6307\u5b9a\u3059\u308b\u3068 InflateException \u304c\u767a\u751f\u3059\u308b"},"content":{"rendered":"<p>\n  Android \u306e MaterialComponents \u306e\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u6b04\u3067\u3042\u308b TextInputEditText \u3092\u4f7f\u3046\u5834\u5408\u3067\u3059\u3002\n<\/p>\n<p>\n  \u9759\u7684\u306b\u751f\u6210\u3059\u308b\u5834\u5408\u306f\u7c21\u5358\u3067 xml \u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u3053\u306e\u3068\u304d TextInputLayout \u306e\u4e2d\u306b TextInputEditText \u3092\u5165\u308c\u5b50\u306b\u3057\u307e\u3059\u3002\n<\/p>\n<pre><code class=\"xml\">\r\n<com.google.android.material.textfield.TextInputLayout\r\n   android:id=\"@+id\/text_input_layout1\"\r\n   android:layout_width=\"0dp\"\r\n   android:layout_height=\"wrap_content\"\r\n   android:layout_margin=\"10dp\"\r\n   android:hint=\"@string\/label\"\r\n   style=\"@style\/Widget.MaterialComponents.TextInputLayout.OutlinedBox\">\r\n\r\n   <com.google.android.material.textfield.TextInputEditText\r\n       android:id=\"@+id\/edit_text1\"\r\n       android:layout_width=\"match_parent\"\r\n       android:layout_height=\"wrap_content\" \/>\r\n<\/com.google.android.material.textfield.TextInputLayout>\r\n<\/code><\/pre>\n<h3>\u30b9\u30bf\u30a4\u30eb<\/h3>\n<p>\n  TextInputEditText \u306f\u901a\u5e38\u306e\u30b9\u30bf\u30a4\u30eb\u306e\u4ed6\u306b\u3001FilledBix \u3068 OutlinedBox \u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\n<\/p>\n<figure>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2022\/03\/TextInputLayout-300x151.png\" alt=\"TextInputLayout \u306e\u7a2e\u985e\" width=\"300\" height=\"151\" class=\"aligncenter size-medium wp-image-1616\" srcset=\"https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2022\/03\/TextInputLayout-300x151.png 300w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2022\/03\/TextInputLayout-768x387.png 768w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2022\/03\/TextInputLayout-200x101.png 200w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2022\/03\/TextInputLayout.png 920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n<\/figure>\n<p>\n  \u3053\u306e\u5916\u89b3\u306e\u5909\u66f4\u306f TextInputLayout \u306b style \u3092\u9069\u7528\u3059\u308b\u3060\u3051\u3067\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002\n<\/p>\n<h3>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9<\/h3>\n<p>\n  \u3057\u304b\u3057\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\n<\/p>\n<pre>\r\nAndroid.Views.InflateException\r\n  Message=Binary XML file line #2 in jp.example.app:layout\/activity_main: Error inflating class com.google.android.material.textfield.TextInputLayout\r\n<\/pre>\n<h3>\u89e3\u6c7a\u65b9\u6cd5<\/h3>\n<p>\n \u30a2\u30d7\u30ea\u5168\u4f53\u306e\u30c6\u30fc\u30de\u304c MaterialComponents \u306e\u3082\u306e\u3092\u7d99\u627f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n<\/p>\n<p>\n  \u3053\u308c\u307e\u3067\u30a2\u30d7\u30ea\u5168\u4f53\u306e\u30c6\u30fc\u30de\u3092\n<\/p>\n<pre><code class=\"xml\">\r\n<style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\r\n<\/code><\/pre>\n<p>\n  \u3068\u3057\u3044\u305f\u7b87\u6240\u3092\n<\/p>\n<pre><code class=\"xml\">\r\n  <style name=\"AppTheme\" parent=\"Theme.MaterialComponents.Light.DarkActionBar\">\r\n<\/code><\/pre>\n<p>\n  \u306e\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n<\/p>\n<p>\n  \u52d5\u7684\u306b OutlinedBox \u3092\u751f\u6210\u3059\u308b\u5834\u5408\u306f\u3055\u3089\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304c\u5225\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\n<\/p>\n<h3>IT\u30a8\u30f3\u30b8\u30cb\u30a2\u52df\u96c6\u4e2d\uff01<\/h3>\n<p>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u682a\u5f0f\u4f1a\u793e\u306fIT\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u52df\u96c6\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u5c11\u4eba\u6570\u306e\u8077\u5834\u306a\u306e\u3067\u3001\u4e0a\u6d41\u30fb\u4e0b\u6d41\u3084\u30b5\u30fc\u30d0\u30fc\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5bfe\u5fdc\u306e\u57a3\u6839\u306a\u304f\u3001\u3042\u306a\u305f\u306e\u5f37\u307f\u3092\u6d3b\u304b\u3057\u306a\u304c\u3089 \u3044\u308d\u3044\u308d\u306a\u3053\u3068\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u53ef\u80fd\u3067\u3059\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066\u306e\u672a\u7d4c\u9a13\u306e\u65b9\u3001\u7d4c\u9a13\u304c\u5c11\u306a\u3044\u65b9\u3082\u6b53\u8fce\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u3088\u308aIT\u30a8\u30f3\u30b8\u30cb\u30a2\u52df\u96c6\u306e\u63a1\u7528\u60c5\u5831\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<div class=\"curecode_recruit_bn\">\n\t\t\t\t<a href=\"https:\/\/curecode.jp\/recruit\/itengineer\/\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/themes\/tech\/images\/it_recruit.png?20241220\" alt=\"\u4e8b\u696d\u62e1\u5927\u306b\u4f34\u3044\u65b0\u3057\u3044\u9818\u57df\u306b\u4e00\u7dd2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u304f\u30e1\u30f3\u30d0\u30fc\u3092\u52df\u96c6\u3057\u307e\u3059\u3002\"  width=\"500\" height=\"180\"\/><br \/>\n\t\t\t\t<\/a>\n\t\t<\/div>\n<h3>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u516c\u5f0f\u30a4\u30f3\u30b9\u30bf\u30b0\u30e9\u30e0<\/h3>\n<p>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u682a\u5f0f\u4f1a\u793e\u306e\u65b0\u30b5\u30fc\u30d3\u30b9\u60c5\u5831\u3084\u3001\u30aa\u30d5\u30a3\u30b9\u30e9\u30a4\u30d5\u306e\u7d20\u6575\u306a\u77ac\u9593\u307e\u3067\u3002\u79c1\u305f\u3061\u306e\u65e5\u3005\u306e\u55b6\u307f\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"curecode_recruit_bn\">\n\t\t\t\t<a href=\"https:\/\/www.instagram.com\/curecode\/\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/themes\/tech\/images\/insta_bn.png?20241220\" alt=\"\u4e8b\u696d\u62e1\u5927\u306b\u4f34\u3044\u65b0\u3057\u3044\u9818\u57df\u306b\u4e00\u7dd2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u304f\u30e1\u30f3\u30d0\u30fc\u3092\u52df\u96c6\u3057\u307e\u3059\u3002\"  width=\"500\" height=\"180\"\/><br \/>\n\t\t\t\t<\/a>\n\t\t<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Android \u306e MaterialComponents \u306e\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u6b04\u3067\u3042\u308b TextInput [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":1159,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[19,184,183],"class_list":["post-1615","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","tag-android","tag-materialcompoments","tag-xamairn"],"_links":{"self":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/1615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/comments?post=1615"}],"version-history":[{"count":1,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/1615\/revisions"}],"predecessor-version":[{"id":1617,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/1615\/revisions\/1617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/media\/1159"}],"wp:attachment":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/media?parent=1615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/categories?post=1615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/tags?post=1615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}