{"action":"created","issue":{"url":"https://api.github.com/repos/lawloretienne/QuickReturn/issues/14","labels_url":"https://api.github.com/repos/lawloretienne/QuickReturn/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/lawloretienne/QuickReturn/issues/14/comments","events_url":"https://api.github.com/repos/lawloretienne/QuickReturn/issues/14/events","html_url":"https://github.com/lawloretienne/QuickReturn/issues/14","id":55417637,"number":14,"title":"First and Second Item from ListView Is Covered By QRHeader (in Example Code)","user":{"login":"alukito","id":708537,"avatar_url":"https://avatars.githubusercontent.com/u/708537?v=3","gravatar_id":"","url":"https://api.github.com/users/alukito","html_url":"https://github.com/alukito","followers_url":"https://api.github.com/users/alukito/followers","following_url":"https://api.github.com/users/alukito/following{/other_user}","gists_url":"https://api.github.com/users/alukito/gists{/gist_id}","starred_url":"https://api.github.com/users/alukito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alukito/subscriptions","organizations_url":"https://api.github.com/users/alukito/orgs","repos_url":"https://api.github.com/users/alukito/repos","events_url":"https://api.github.com/users/alukito/events{/privacy}","received_events_url":"https://api.github.com/users/alukito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T14:38:07Z","updated_at":"2015-01-25T18:46:14Z","closed_at":null,"body":"Hello, thanks for creating such a nice library.\r\n\r\nI was running the example code and found that the first and second item from R.array.countries (United States Of America and Afghanistan) was covered by the header. I'm trying to scroll up and down, but it still cannot show the first and second item.\r\n\r\nScreenshot:\r\n![quickreturnitemnotshown](https://cloud.githubusercontent.com/assets/708537/5891816/42390678-a4da-11e4-9d78-71cb6cbb6ec1.png)\r\n\r\nAfter checking the layout (fragment_list_quick_return_header.xml), I find that the problem is in the layout. The CustomTextView and the ListView do not have the position set between each other. I try to change the layout:\r\n\r\n```\r\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\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\r\n    <com.etiennelawlor.quickreturn.views.CustomFontTextView\r\n        android:id=\"@+id/quick_return_tv\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"80dp\"\r\n        android:background=\"@color/transparent_black_ninty\"\r\n        android:textSize=\"22sp\"\r\n        android:text=\"@string/header\"\r\n        android:textColor=\"@android:color/white\"\r\n        android:gravity=\"center\"\r\n        app:textFont=\"Roboto_Bold\"/>\r\n\r\n    <ListView\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:id=\"@android:id/list\"\r\n        android:layout_below=\"@id/quick_return_tv\"/>\r\n\r\n</RelativeLayout>\r\n```\r\n\r\nAfter I change the layout into the code above, the first and second item is now shown but there is now a white gap on top of the list when scrolling.\r\n\r\n![quickreturnwhitegap](https://cloud.githubusercontent.com/assets/708537/5891858/4efca322-a4dc-11e4-8609-80f9ba43c948.png)\r\n\r\nThanks for your help."},"comment":{"url":"https://api.github.com/repos/lawloretienne/QuickReturn/issues/comments/71385547","html_url":"https://github.com/lawloretienne/QuickReturn/issues/14#issuecomment-71385547","issue_url":"https://api.github.com/repos/lawloretienne/QuickReturn/issues/14","id":71385547,"user":{"login":"lawloretienne","id":311187,"avatar_url":"https://avatars.githubusercontent.com/u/311187?v=3","gravatar_id":"","url":"https://api.github.com/users/lawloretienne","html_url":"https://github.com/lawloretienne","followers_url":"https://api.github.com/users/lawloretienne/followers","following_url":"https://api.github.com/users/lawloretienne/following{/other_user}","gists_url":"https://api.github.com/users/lawloretienne/gists{/gist_id}","starred_url":"https://api.github.com/users/lawloretienne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawloretienne/subscriptions","organizations_url":"https://api.github.com/users/lawloretienne/orgs","repos_url":"https://api.github.com/users/lawloretienne/repos","events_url":"https://api.github.com/users/lawloretienne/events{/privacy}","received_events_url":"https://api.github.com/users/lawloretienne/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T18:46:14Z","updated_at":"2015-01-25T18:46:14Z","body":"That would be great if you could provide a pull request for this issue.\r\n\r\nOn Sun Jan 25 2015 at 6:38:09 AM Andreas Lukito <notifications@github.com>\r\nwrote:\r\n\r\n> Hello, thanks for creating such a nice library.\r\n>\r\n> I was running the example code and found that the first and second item\r\n> from R.array.countries (United States Of America and Afghanistan) was\r\n> covered by the header. I'm trying to scroll up and down, but it still\r\n> cannot show the first and second item.\r\n>\r\n> Screenshot:\r\n> [image: quickreturnitemnotshown]\r\n> <https://cloud.githubusercontent.com/assets/708537/5891816/42390678-a4da-11e4-9d78-71cb6cbb6ec1.png>\r\n>\r\n> After checking the layout (fragment_list_quick_return_header.xml), I find\r\n> that the problem is in the layout. The CustomTextView and the ListView do\r\n> not have the position set between each other. After I change the layout\r\n> into the code below, it solve the problem.\r\n>\r\n> <RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\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>\r\n>     <com.etiennelawlor.quickreturn.views.CustomFontTextView\r\n>         android:id=\"@+id/quick_return_tv\"\r\n>         android:layout_width=\"match_parent\"\r\n>         android:layout_height=\"80dp\"\r\n>         android:background=\"@color/transparent_black_ninty\"\r\n>         android:textSize=\"22sp\"\r\n>         android:text=\"@string/header\"\r\n>         android:textColor=\"@android:color/white\"\r\n>         android:gravity=\"center\"\r\n>         app:textFont=\"Roboto_Bold\"/>\r\n>\r\n>     <ListView\r\n>         android:layout_width=\"match_parent\"\r\n>         android:layout_height=\"match_parent\"\r\n>         android:id=\"@android:id/list\"\r\n>         android:layout_below=\"@id/quick_return_tv\"/>\r\n>\r\n> </RelativeLayout>\r\n>\r\n> Hope it helps, I can provide a pull request if you want me to. Thanks\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/lawloretienne/QuickReturn/issues/14>.\r\n>"}}