Amazon Look of the Wishlist Layout Again

Alter Homepage Layout, Sidebar, Continue Watching Row, and More

3: Customize the Appearance

Yous can customize the homepage layout to include a visible sidebar for navigating categories. Y'all can also modify the Continue Watching and Watchlist rows. Other topics (Change the App Logo, Icon, and Splash Screen and Change Font, Media Playback Elements, Related Content, and More) listing other changes you can make.)

  • Customize the Homepage Layout
  • Change the Homepage'south Visual Elements
  • Change the Sidebar in the "Full Browse" Homepage Layout
  • Remove the Watchlist Row and Push button
  • Modify the Continue Watching Row on the App's Home Screen
  • Customize the Search Push button
  • Update the Terms of Utilise
  • Side by side Steps

Customize the Homepage Layout

The default home screen layout uses the ContentBrowseActivity. This layout is referred to every bit the "Homepage Browse layout."

Home
Home with the ContentBrowseActivity . This view arranges the videos in various channels or groups. When you view a aqueduct, the first video in that aqueduct group appears as the featured background image, with its title and description in the upper-left.

You can change the homepage layout to a more than compressed view by using the FullContentBrowseActivity instead. This alternative homepage layout is referred to as the "Full Browse" homepage layout.

Home with FullContentBrowseActivity
Home with FullContentBrowseActivity . With this action, all the videos appear in a more compressed filigree, with the channels listed on the left in a sidebar. None of the videos are superimposed equally large featured images in the background. The app appears in the upper-right corner.

The left sidebar can collapse in when the user is browsing through the video titles. This gives more than space and focus to your video content.

To change the homepage to the Full Browse layout:

  1. Open the Navigator.json file (located in app > avails).
  2. In the graph object, locate the CONTENT_HOME_SCREEN:

                                      "com.amazon.android.tv.tenfoot.ui.activities.ContentBrowseActivity"                  :                                                      {                                                      "verifyScreenAccess"                  :                                                      fake                  ,                                                      "verifyNetworkConnection"                  :                                                      truthful                  ,                                                      "onAction"                  :                                                      "CONTENT_HOME_SCREEN"                                                      }                                                                  
  3. Change com.amazon.android.tv.tenfoot.ui.activities.ContentBrowseActivity to com.amazon.android.idiot box.tenfoot.ui.activities.FullContentBrowseActivity.

Change the Homepage'south Visual Elements

The post-obit diagram shows the visual properties you can customize on the homepage'due south Browse layout (the default):

See the section, Modify the App Logo for details.

Video title and description

You can change the color of the video title and description. In your app's custom.xml file, update the following chemical element:

                          <color              name=              "primary_text"              >#f4084f</color>              <!-- red Used for the text on the carte views and playback progress bar text. -->                      

This element likewise controls the color of the video title and description on the preview screen (which appears when you click a video but haven't started media playback). Information technology besides controls the color of the text on the buttons, such equally "Sentry At present" and "Resume Playback."

For details on how to change the font itself for these elements, see Change the Font.

Category title color

You tin can change the color of the category titles. Changing this colour also changes the text color in left navigation in Full Browse layout. In your app's custom.xml file, update the following chemical element:

                          <color              proper noun=              "tertiary_text"              >#99FFFFFF</color>                      

This element too controls the color of the "Related Content" text, which appears beneath videos on the preview screen and the media playback screen.

Carte video title colour

You can change the colour of the video title on cards. Irresolute this color also changes the text color on the progress bar during video playback. In your app's custom.xml file, update the post-obit element:

                          <color              proper noun=              "secondary_text"              >#FFFFFFFF</colour>                      

Background color

You can change the background color of the app. This holding affects all screens. In your app's custom.xml file, alter the following element:

                          <color              name=              "background"              >#22282E</color>                      

Slope width

Yous can control the size of the gradient between the background and the preview image. In your app's custom.xml file, adjust the dp value for the following chemical element:

                          <dimen              name=              "content_image_gradient_size"              >100dp</dimen>                      

Preview paradigm size

You can command the size of the preview paradigm in the upper-correct corner. In your app's custom.xml file, adapt the dp value for the following elements:

                          <dimen              name=              "content_image_height"              >350dp</dimen>              <dimen              name=              "content_image_width"              >540dp</dimen>                      

Search button icon and search background

Run into the following department, Customize the Search Button for information on how to customize the search. Customizations to the search button alter the button'southward appearance on the domicile screen and the search screen.

The full browse layout shows a left sidebar navigation. You can customize the color of the sidebar and the category titles that appear there.

You tin can change the color of the left navigation bar. In your app's custom.xml file, update the following element:

                          <color              proper noun=              "browse_headers_bar"              >#ff69b4</colour>                      

Category titles and subtitles in sidebar

You lot can modify the category titles that announced in the sidebar. Both the selected and not-selected category titles receive this colour. The selected category titles are assuming, and the non-selected category titles are softer and muted.

In your app'southward custom.xml file, updated the following chemical element:

                          <color              proper noun=              "tertiary_text"              >#99FFFFFF</color>                      

Note that for the default homepage layout ("Scan"), this chemical element controls the category championship higher up the videos rows. For the Full Browse layout, it changes the colour of the category titles in the left navigation bar.

Remove the Watchlist Row and Push

By default, the Content Details screen includes an "Add to Watchlist" button.

Videos that you add together to your watchlist appear on the "Watchlist" row on the app'due south Dwelling screen. There'southward no limit to the number of content items you can add to the Watchlist.

Change the Name of the Watchlist Row

To alter the displayed name of the Watchlist row, open your app'due south custom.xml file (located in app > assets > res > values) and add the following:

                          <cord              name=              "watchlist_row"              >Watchlist</cord>                      

Move the Watchlist Row to the Pinnacle

Currently, you cannot move the position of the Watchlist row.

Remove the Watchlist Row

To remove both the Watchlist row from the Domicile screen and the "Add together to Watchlist" push button from the Content Details screen, open your Navigator.json file (inside app > assets) and add enableWatchlistRow: imitation to the config object, like this:

                                                      "config"              :                                          {                                          "showRelatedContent"              :                                          truthful              ,                                          "useCategoryAsDefaultRelatedContent"              :                                          true              ,                                          "searchAlgo"              :                                          "basic"              ,                                          "enableCEA608"              :                                          false              ,                                          "enableRecentRow"              :                                          truthful              ,                                          "enableWatchlistRow"              :                                          false              ,                                          "maxNumberOfRecentItems"              :                                          5                                          }                                                  

Change the Go along Watching Row on the App's Home Screen

The "Go on Watching" row on the app'southward abode screen shows content that you were recently watching.

Continue Watching row
Continue Watching row

If content is played for more than 10 seconds, it gets added to this row.

Change the Threshold Time of the Go on Watching Row

If you want to modify this 10-second threshold time (the time until a video is considered recently watched), adjust the following value in your app's custom.xml file (located in app > assets > res > values):

                          <integer              name=              "recent_grace_period"              >10000</integer>                      

The value must be in milliseconds. The 10000 default is ten seconds.

Adapt the Number of Contempo Items in the Continue Watching Row

Past default, the "Keep Watching" row shows up to v items. You tin can arrange this limit up to a max of 20. To adjust the number of contempo items shown, open your Navigator.json file (inside app > assets) and change the maxNumberOfRecentItems value:

                          "config"              :                                          {                                          "showRelatedContent"              :                                          true              ,                                          "useCategoryAsDefaultRelatedContent"              :                                          true              ,                                          "searchAlgo"              :                                          "basic"              ,                                          "enableCEA608"              :                                          fake              ,                                          "enableRecentRow"              :                                          true              ,                                          "maxNumberOfRecentItems"              :                                          10                                          }                                                  

Modify the Proper noun of the Continue Watching Row

To change the displayed name of the Watchlist row, open up your app'south custom.xml file (located in app > avails > res > values) and add the following:

                          <string              proper noun=              "recent_row"              >Continue Watching</string>                      

Move the Continue Watching Row to the Top

Currently, you cannot movement the position of the Continue Watching row.

Remove the Go along Watching Row

To remove the Continue Watching row from the dwelling house screen, ready enableRecentRow to false in the same config object, like this:

                                                      "config"              :                                          {                                          "showRelatedContent"              :                                          true              ,                                          "useCategoryAsDefaultRelatedContent"              :                                          true              ,                                          "searchAlgo"              :                                          "basic"              ,                                          "enableCEA608"              :                                          imitation              ,                                          "enableRecentRow"              :                                          false              ,                                          "maxNumberOfRecentItems"              :                                          v                                          }                                                  

Customize the Search Button

You tin customize the search button icon, background color, and grade field color. The search button color and background also appear on the home screen.

Search button icon

To modify the search push button icon:

  1. If you lot haven't already created a drawable folder in your app, create a new folder called drawable inside your app's assets > res directory.
  2. Open your drawable binder via Finder or Explorer.
  3. Add your prototype for the search icon and background into this folder.

    You can copy the original ic_search.png epitome as an example. You tin find this image in TVUIComponent > res > drawable. Or if you desire to browse the file directory structure, become to TVUICopmonent > res > drawable > drawable-xhdpi. The search icon is a 34px x 34px transparent PNG prototype. The icon is white in order to dissimilarity with a nighttime background.

  4. In your app's custom.xml file, update the following file name to correspond to your new search icon:

                                      <drawable                  name=                  "search_icon"                  >@drawable/ic_search</drawable>                              

Search button background color

To change the background color of the search push button, accommodate the following element in your app'south custom.xml file:

                          <colour              name=              "accent"              >#EE962D</color>                      

Search Class Background Color

The search form background appears on the search screen when yous start typing your search query. This color is controlled through an prototype file (rather than a hex code) to attain a slope. To modify the colour of the search form background:

  1. If you haven't already created a drawable folder in your app, create a new folder called drawable inside your app'southward assets > res directory.
  2. Open your drawable binder via Finder or Explorer.
  3. Add your image for the search form background into this folder.

    You lot tin re-create the original bg_gradient_search image as an case. You can find this paradigm in TVUIComponent > res > drawable. Or if you want to browse the file directory structure, go to TVUIComponent > res > drawable > drawable-xhdpi. The file name is bg_gradient_search.9.png. It'southward a 3px wide by 1082px tall image. It repeats horizontally to fill the search background form space.

  4. In your app's custom.xml file, update the following file name to represent to your new search groundwork prototype:

                                      <drawable                  name=                  "search_background"                  >@drawable/bg_gradient_search</drawable>                              

Update the Terms of Utilize

The Terms of Utilize section appears in the footer of the app and links to the terms_of_use.html file (located in app > avails).

Terms of Use diagram

You tin can arrange the target for this link in your custom.xml file:

                          <cord              name=              "terms_of_use_file"              >terms_of_use.html</cord>                      

The Terms of Utilise file is a sample file that y'all should edit before distributing your app. For instance, you might choose to include terms of use, an finish user license agreement, privacy notices, and/or other legal notices in this file.

The Terms of Employ file as well includes notices for open source components that are built in to the sample app by default. These notices are provided equally a convenience only. Amazon makes no representations as to their accuracy or abyss and volition not be responsible for whatever inaccuracies or incompleteness.

Next Steps

If desired, go to Change Font, Media Playback Elements, Related Content, and More. This topic lists other possible modifications you lot can make to the advent of your app. You can as well get direct to the next map, IV: Add Components for More Functionality.


Last updated: January 16, 2018

daviswhiseve.blogspot.com

Source: https://developer.amazon.com/docs/fire-app-builder/optional-home-screen-changes.html

0 Response to "Amazon Look of the Wishlist Layout Again"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel