4

I am using leanback and I want to make headers like Netflix has in its Android tv app like below.

enter image description here

enter image description here

when header fragment is opened it shows both text along with icon(first image) and when header is closed they only show icon and highlight it. (second image).

In my app I'm able to develop the customize header with text and icons but I want to show this half-way hiding like Netflix is doing. Is there any way to achieve this functionality. Kindly suggest.

Andrain
  • 872
  • 1
  • 16
  • 43
  • hey did you find the solution for it? Also, I want to ask you how did you implement the preview background like Netflix with focus maintained? I am able to do the former part but not sure how to do the latter i.e. maintaining focus. – Arpit J. Jan 14 '20 at 03:49
  • I did not find the solution with leanback but I had made it using other Recycler view. I can explain if you want. Please show me what is your required layout then I will suggest. – Andrain Jan 15 '20 at 08:40
  • it is same like netflix. On left side Side bar navigation should be shown always with icons visible and when hovered over/in-focus it should expand showing menu names as well. On right side, content/rows should start from below the background preview. – Arpit J. Jan 15 '20 at 09:09
  • For right side the way I have managed to add background preview is by adding a fragment and adding BrowseSupportFragment over it. But i had to override/increase rows top margin to make rows start from below the preview but this pushed menu on left also to down and doesn’t look good. Please suggest approaches, we can chat over other medium as well if you like. It’s important thanks. – Arpit J. Jan 15 '20 at 09:17
  • I don't think I would be able help you achieve this fully, but yeah lets discuss I will be happy to help. – Andrain Jan 16 '20 at 08:52
  • 2
    this is the solution https://github.com/Arpit0492/TVNavigationMenu – Arpit J. Jul 12 '20 at 14:05
  • I am glad you finally found it. Thank you for sharing it with me. I will explore it. – Andrain Jul 12 '20 at 20:38

0 Answers0