1<?xml version="1.0" encoding="utf-8"?> 2<resources xmlns:ns1="urn:oasis:names:tc:xliff:document:1.2"> 3 <attr format="reference" name="sliceViewStyle"/> 4 <declare-styleable name="SliceView"> 5 <!-- Color to use for any title text within the slice. --> 6 <attr format="color" name="titleColor"/> 7 <!-- Color to use for any other text within the slice. --> 8 <attr format="color" name="subtitleColor"/> 9 <!-- Color to use for tinting elements within the slice. Normally an app 10 providing a slice is able to specify a color to use for tinting, specifying 11 a tint color here will override the app supplied color. --> 12 <attr format="color" name="tintColor"/> 13 14 <!-- Text size to use for title text in the header of the slice. --> 15 <attr format="dimension" name="headerTitleSize"/> 16 <!-- Text size to use for subtitle text in the header of the slice. --> 17 <attr format="dimension" name="headerSubtitleSize"/> 18 <!-- Vertical padding to use between header title text and header subtitle text. --> 19 <attr format="dimension" name="headerTextVerticalPadding"/> 20 21 <!-- Text size to use for title text in a non-header row of the slice. --> 22 <attr format="dimension" name="titleSize"/> 23 <!-- Text size to use for subtitle text in a non-header row of the slice. --> 24 <attr format="dimension" name="subtitleSize"/> 25 <!-- Vertical padding to use between title text and subtitle text. --> 26 <attr format="dimension" name="textVerticalPadding"/> 27 28 <!-- Text size to use for title text in a grid row of the slice. --> 29 <attr format="dimension" name="gridTitleSize"/> 30 <!-- Text size to use for the subtitle text in a grid row of the slice. --> 31 <attr format="dimension" name="gridSubtitleSize"/> 32 <!-- Vertical padding to use between title text and subtitle text in a grid cell. --> 33 <attr format="dimension" name="gridTextVerticalPadding"/> 34 <!-- A grid row with all images goes right to the edge of the view if it's the first or 35 last row of a slice. Use this to specify padding to apply to the top of the grid row in 36 this situation. --> 37 <attr format="dimension" name="gridTopPadding"/> 38 <!-- A grid row with all images goes right to the edge of the view if it's the first or 39 last row of a slice. Use this to specify padding to apply to the bottom of the grid row in 40 this situation. --> 41 <attr format="dimension" name="gridBottomPadding"/> 42 </declare-styleable> 43 <dimen name="abc_slice_action_row_height">48dp</dimen> 44 <dimen name="abc_slice_big_pic_max_height">140dp</dimen> 45 <dimen name="abc_slice_big_pic_min_height">120dp</dimen> 46 <dimen name="abc_slice_grid_gutter">4dp</dimen> 47 <dimen name="abc_slice_grid_image_min_width">60dp</dimen> 48 <dimen name="abc_slice_grid_image_only_height">86dp</dimen> 49 <dimen name="abc_slice_grid_image_text_height">120dp</dimen> 50 <dimen name="abc_slice_grid_max_height">140dp</dimen> 51 <dimen name="abc_slice_grid_min_height">60dp</dimen> 52 <dimen name="abc_slice_grid_small_image_text_height">120dp</dimen> 53 <dimen name="abc_slice_grid_text_inner_padding">2dp</dimen> 54 <dimen name="abc_slice_grid_text_padding">10dp</dimen> 55 <dimen name="abc_slice_icon_size">24dp</dimen> 56 <dimen name="abc_slice_large_height">240dp</dimen> 57 <dimen name="abc_slice_padding">16dp</dimen> 58 <dimen name="abc_slice_row_active_input_height">120dp</dimen> 59 <dimen name="abc_slice_row_max_height">60dp</dimen> 60 <dimen name="abc_slice_row_min_height">48dp</dimen> 61 <dimen name="abc_slice_row_range_height">48dp</dimen> 62 <dimen name="abc_slice_shortcut_size">56dp</dimen> 63 <dimen name="abc_slice_small_height">48dp</dimen> 64 <dimen name="abc_slice_small_image_size">48dp</dimen> 65 <plurals name="abc_slice_duration_days"> 66 <item quantity="one"><ns1:g example="1">%d</ns1:g> day ago</item> 67 <item quantity="other"><ns1:g example="2">%d</ns1:g> days ago</item> 68 </plurals> 69 <plurals name="abc_slice_duration_min"> 70 <item quantity="one"><ns1:g example="1">%d</ns1:g> min ago</item> 71 <item quantity="other"><ns1:g example="2">%d</ns1:g> min ago</item> 72 </plurals> 73 <plurals name="abc_slice_duration_years"> 74 <item quantity="one"><ns1:g example="1">%d</ns1:g> yr ago</item> 75 <item quantity="other"><ns1:g example="2">%d</ns1:g> yr ago</item> 76 </plurals> 77 <string name="abc_slice_error">Couldn\'t connect</string> 78 <string name="abc_slice_more">More</string> 79 <string name="abc_slice_more_content">+ <ns1:g example="5" id="number">%1$d</ns1:g></string> 80 <string name="abc_slice_show_more">Show more</string> 81 <string name="abc_slice_updated">Updated <ns1:g example="5 min ago" id="time">%1$s</ns1:g></string> 82 <style name="Widget.SliceView" parent=""> 83 <item name="tintColor">@null</item> 84 <!-- Colors --> 85 <item name="titleColor">?android:attr/textColorPrimary</item> 86 <item name="subtitleColor">?android:attr/textColorSecondary</item> 87 88 <!-- Text sizes --> 89 <item name="headerTitleSize">16sp</item> 90 <item name="headerSubtitleSize">14sp</item> 91 <item name="titleSize">14sp</item> 92 <item name="subtitleSize">14sp</item> 93 <item name="gridTitleSize">12sp</item> 94 <item name="gridSubtitleSize">12sp</item> 95 </style> 96</resources>