{"action":"created","issue":{"url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1451","repository_url":"https://api.github.com/repos/MvvmCross/MvvmCross","labels_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1451/labels{/name}","comments_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1451/comments","events_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1451/events","html_url":"https://github.com/MvvmCross/MvvmCross/issues/1451","id":181309511,"number":1451,"title":"RadioButton's width doesn't use match_parent","user":{"login":"iqbalmineraltown","id":3488542,"avatar_url":"https://avatars.githubusercontent.com/u/3488542?v=3","gravatar_id":"","url":"https://api.github.com/users/iqbalmineraltown","html_url":"https://github.com/iqbalmineraltown","followers_url":"https://api.github.com/users/iqbalmineraltown/followers","following_url":"https://api.github.com/users/iqbalmineraltown/following{/other_user}","gists_url":"https://api.github.com/users/iqbalmineraltown/gists{/gist_id}","starred_url":"https://api.github.com/users/iqbalmineraltown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iqbalmineraltown/subscriptions","organizations_url":"https://api.github.com/users/iqbalmineraltown/orgs","repos_url":"https://api.github.com/users/iqbalmineraltown/repos","events_url":"https://api.github.com/users/iqbalmineraltown/events{/privacy}","received_events_url":"https://api.github.com/users/iqbalmineraltown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T02:17:42Z","updated_at":"2016-12-06T17:17:25Z","closed_at":null,"body":"I was trying to create border around each of radio buttons, but it wouldn't set its `width` to `match_parent` as I specified in XAML. The `width` would always be set to `wrap_content`\n\nBut if I specify the `width` in numbers (e.g. 300dp), it works\n\nThis is related to the problem mentioned in https://github.com/MvvmCross/MvvmCross/pull/454\n\nIs this behaviour intended?\n### Steps to reproduce\n\nMy RadioGroup\n\n```\n<MvxRadioGroup\n        local:MvxBind=\"ItemsSource OptionList; SelectedItem SelectedOption\"\n        local:MvxItemTemplate=\"@layout/radio_button_item\"\n        android:orientation=\"vertical\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:paddingLeft=\"20dp\"\n        android:paddingRight=\"20dp\" />\n```\n\nRadioButtonTemplate (radio_button_item)\n\n```\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RadioButton xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:local=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_marginTop=\"10dp\"\n    android:background=\"@drawable/style_border_item\"\n    android:paddingLeft=\"25dp\"\n    android:paddingTop=\"25dp\"\n    android:paddingBottom=\"25dp\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    local:MvxBind=\"Text Value\"\n    android:text=\"Test\"\n    android:textSize=\"16sp\" />\n```\n\nMy RadioButton's Background(style_border_item)\n\n```\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n  <item android:state_checked=\"true\">\n    <shape android:shape=\"rectangle\">\n      <stroke\n         android:width=\"2dp\"\n         android:color=\"@color/colorLightGreen\" />\n    </shape>\n  </item>\n  <item>\n    <shape android:shape=\"rectangle\">\n      <stroke\n       android:width=\"2dp\"\n       android:color=\"@color/colorGrey\" />\n    </shape>\n  </item>\n</selector>\n```\n### Expected behavior\n\nRadioButton's `width` should `match_parent`\n### Actual behavior\n\nRadioButton's `width` were `wrap_content` regarding to each own's `text`\n### Configuration\n\n**Version:** 4.1.0\n\n**Platform:** Android\n"},"comment":{"url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/comments/265211480","html_url":"https://github.com/MvvmCross/MvvmCross/issues/1451#issuecomment-265211480","issue_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1451","id":265211480,"user":{"login":"Cheesebaron","id":249719,"avatar_url":"https://avatars.githubusercontent.com/u/249719?v=3","gravatar_id":"","url":"https://api.github.com/users/Cheesebaron","html_url":"https://github.com/Cheesebaron","followers_url":"https://api.github.com/users/Cheesebaron/followers","following_url":"https://api.github.com/users/Cheesebaron/following{/other_user}","gists_url":"https://api.github.com/users/Cheesebaron/gists{/gist_id}","starred_url":"https://api.github.com/users/Cheesebaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cheesebaron/subscriptions","organizations_url":"https://api.github.com/users/Cheesebaron/orgs","repos_url":"https://api.github.com/users/Cheesebaron/repos","events_url":"https://api.github.com/users/Cheesebaron/events{/privacy}","received_events_url":"https://api.github.com/users/Cheesebaron/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T17:17:25Z","updated_at":"2016-12-06T17:17:25Z","body":"This should be fixed whenever someone looks at #1465 "}}
{"actor":{"display_login":"Cheesebaron"}}