{"action":"created","issue":{"url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/132","labels_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/132/comments","events_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/132/events","html_url":"https://github.com/alamkanak/Android-Week-View/issues/132","id":79515553,"number":132,"title":"Set Calendar on WeekView - noOfVisibleDays=\"7\"","user":{"login":"Bruno-Piccinin-RealComm","id":10132491,"avatar_url":"https://avatars.githubusercontent.com/u/10132491?v=3","gravatar_id":"","url":"https://api.github.com/users/Bruno-Piccinin-RealComm","html_url":"https://github.com/Bruno-Piccinin-RealComm","followers_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/followers","following_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/following{/other_user}","gists_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/gists{/gist_id}","starred_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/subscriptions","organizations_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/orgs","repos_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/repos","events_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/events{/privacy}","received_events_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-22T16:21:43Z","updated_at":"2015-05-26T14:37:16Z","closed_at":"2015-05-25T07:30:27Z","body":"Hi,\r\n\r\nI have a problem when I start the app sample with noOfVisibleDays=\"7\" in layout:\r\n\r\n    <RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n        xmlns:tools=\"http://schemas.android.com/tools\"\r\n        xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        tools:context=\".MyActivity\"\r\n        android:background=\"#fff\">\r\n    \r\n        <com.alamkanak.weekview.WeekView\r\n            android:id=\"@+id/weekView\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            app:eventTextColor=\"@android:color/white\"\r\n            app:textSize=\"12sp\"\r\n            app:hourHeight=\"60dp\"\r\n            app:headerColumnPadding=\"8dp\"\r\n            app:headerColumnTextColor=\"@color/toolbar_text\"\r\n            app:headerRowPadding=\"12dp\"\r\n            app:columnGap=\"8dp\"\r\n            app:noOfVisibleDays=\"7\"\r\n            app:headerRowBackgroundColor=\"@color/toolbar\"\r\n            app:dayBackgroundColor=\"#05000000\"\r\n            app:todayBackgroundColor=\"#1848adff\"\r\n            app:headerColumnBackground=\"#ffffffff\"\r\n            app:todayHeaderTextColor=\"@color/accent\"/>\r\n    \r\n    </RelativeLayout>\r\n\r\nbut when the application start, the first day visible is not TODAY but it seems it is (TODAY - 11).\r\n\r\nFor example today(22/05/2015) I used the application and editing the layout with:\r\n- noOfVisibleDays=\"2\" sets first day visible of calendar on TODAY 22/05/2015\r\n- noOfVisibleDays=\"3\" sets first day visible of calendar on TODAY 22/05/2015\r\n- noOfVisibleDays=\"4\" sets first day visible of calendar on TODAY 22/05/2015\r\n- noOfVisibleDays=\"5\" sets first day visible of calendar on TODAY 22/05/2015\r\n- noOfVisibleDays=\"6\" sets first day visible of calendar on TODAY 22/05/2015\r\n- noOfVisibleDays=\"7\" sets first day visible of calendar on TODAY 11/05/2015 (22/05/2015 - 11 = 11/05/2015)\r\n\r\nI tried to use the following methods:\r\n\r\n        mWeekView.goToToday();\r\n        mWeekView.goToDate(Calendar.getInstance());\r\n\r\nbut nothing worked.\r\nI really need a big help to solve this problem. Any ideas?\r\n\r\nBest Regards\r\nBruno Piccinin"},"comment":{"url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/comments/105546726","html_url":"https://github.com/alamkanak/Android-Week-View/issues/132#issuecomment-105546726","issue_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/132","id":105546726,"user":{"login":"Bruno-Piccinin-RealComm","id":10132491,"avatar_url":"https://avatars.githubusercontent.com/u/10132491?v=3","gravatar_id":"","url":"https://api.github.com/users/Bruno-Piccinin-RealComm","html_url":"https://github.com/Bruno-Piccinin-RealComm","followers_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/followers","following_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/following{/other_user}","gists_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/gists{/gist_id}","starred_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/subscriptions","organizations_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/orgs","repos_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/repos","events_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/events{/privacy}","received_events_url":"https://api.github.com/users/Bruno-Piccinin-RealComm/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T14:37:16Z","updated_at":"2015-05-26T14:37:16Z","body":"Ok @caske33 ,\r\nI followed your advice.\r\n\r\nThank you"}}