Skip to content
Snippets Groups Projects
Commit 4bfd50ec authored by Alexandre Perraud's avatar Alexandre Perraud
Browse files

TV : Add a no thumbnail icon

parent 84d6fca1
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="48"
height="48"
id="svg4682"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="ic_no_thumbnail_big.svg"
inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4684" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="11.2"
inkscape:cx="40.613273"
inkscape:cy="27.939419"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid4134" />
</sodipodi:namedview>
<metadata
id="metadata4687">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1004.3622)">
<g
id="g3192"
transform="matrix(0.07058824,0,0,0.07058824,-44.880524,916.33969)"
inkscape:export-filename="/home/corbax/Dev/Design/Icons/test2.png"
inkscape:export-xdpi="600"
inkscape:export-ydpi="600">
<path
id="path3149-3"
d="m 807.46478,1654.5479 c -5.83666,0 -21.47003,8.7005 -25.21875,21.25 -0.0131,0.044 0.0131,0.081 0,0.125 -14.31487,48.912 -27.68596,94.5902 -40.1875,137.3125 -2.56743,8.7702 0.13164,15.3759 4.65625,20.0312 5.81488,5.9806 14.62212,8.7188 18.9375,8.7188 l 422.12502,0 c 3.3782,0 11.5767,-2.7165 17.1562,-8.7188 l -238.56247,0 -110.375,-110.375 c -6.09294,-4.1443 -11.7914,-8.6713 -17,-13.5937 -0.85891,-0.8021 -1.70307,-1.6092 -2.53125,-2.4375 -0.25615,-0.2562 -0.49204,-0.5107 -0.71875,-0.7813 -0.0149,-0.018 -0.0165,-0.045 -0.0312,-0.062 -0.2056,-0.2481 -0.41162,-0.4909 -0.59375,-0.75 -0.008,-0.012 -0.0229,-0.019 -0.0312,-0.031 -0.13485,-0.1932 -0.25266,-0.3949 -0.375,-0.5937 -0.0683,-0.1112 -0.12303,-0.2309 -0.1875,-0.3438 -0.0417,-0.073 -0.0849,-0.1452 -0.125,-0.2187 -0.13383,-0.2453 -0.28947,-0.4979 -0.40625,-0.75 -0.10803,-0.2331 -0.18708,-0.4805 -0.28125,-0.7188 -0.0494,-0.1255 -0.11063,-0.2481 -0.15625,-0.375 -0.0336,-0.093 -0.0622,-0.1877 -0.0937,-0.2812 -0.0722,-0.2147 -0.12539,-0.4384 -0.1875,-0.6563 -0.0568,-0.198 -0.10735,-0.3933 -0.15625,-0.5937 -0.0782,-0.3206 -0.15987,-0.6431 -0.21875,-0.9688 -0.0395,-0.2214 -0.0627,-0.433 -0.0937,-0.6562 -0.0493,-0.3549 -0.0958,-0.7042 -0.125,-1.0625 -0.0177,-0.2171 -0.0206,-0.4384 -0.0312,-0.6563 -0.0637,-1.2109 -0.0219,-2.4248 0.0937,-3.625 0.0645,-0.6698 0.14403,-1.3167 0.25,-1.9687 0.069,-0.4244 0.13623,-0.837 0.21875,-1.25 0.0277,-0.1387 0.0648,-0.269 0.0937,-0.4063 0.23015,-1.0854 0.49618,-2.1301 0.78125,-3.0937 0.0349,-0.1188 0.0585,-0.2273 0.0937,-0.3438 0.11173,-0.3671 0.23026,-0.6889 0.34375,-1.0312 0.24973,-0.7532 0.48461,-1.4538 0.71875,-2.0625 0.0396,-0.1028 0.0553,-0.1519 0.0937,-0.25 0.18419,-0.4738 0.34799,-0.7998 0.5,-1.1563 0.0716,-0.1671 0.15743,-0.4244 0.21875,-0.5625 0.0415,-0.099 0.0266,-0.073 0.0625,-0.1562 0.22135,-0.4938 0.34375,-0.75 0.34375,-0.75 l 8.71875,-26.1563 -0.53125,0 -37.1875,0 z"
style="fill:#ff8800"
inkscape:connector-curvature="0" />
<path
style="fill:#fafafa"
d="m 928.01312,1406.088 -30.51282,91.5384 c 52.3077,39.2308 104.04,39.488 156.9231,0 l -30.5128,-91.5384 c -34.87619,17.4358 -61.02568,17.4358 -95.89748,0 z m -65.3846,196.1538 -17.4359,52.3077 -8.71795,26.1538 c 0,0 -8.71795,17.4359 0,26.1539 34.73667,34.7366 92.78076,51.0741 149.42999,48.9033 49.98004,-1.9179 98.89204,-18.2554 129.54004,-48.9033 8.7179,-8.718 0,-26.1539 0,-26.1539 l -8.718,-26.1538 -17.4359,-52.3077 c -65.3846,56.6667 -161.27768,56.6667 -226.66228,0 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccssscccc"
id="path3151-2" />
<path
style="fill:#ff8800"
d="m 975.96184,1331.9854 c -6.71282,0 -12.12666,1.0636 -17.4359,4.359 -8.71794,4.359 -21.79487,43.5897 -21.79487,43.5897 l -8.71795,26.1539 c 34.8718,17.4358 61.02564,17.4358 95.89748,0 l -8.718,-26.1539 c 0,0 -13.0769,-39.2307 -21.79486,-43.5897 -5.31358,-3.2954 -10.7318,-4.359 -17.4359,-4.359 z m -78.46154,165.641 -34.87178,104.6154 c 65.38461,56.6667 161.28208,56.6667 226.66668,0 l -34.8718,-104.6154 c -52.8874,39.488 -104.6154,39.2308 -156.92309,0 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sccccccsccccc"
id="path3153-2" />
<path
style="opacity:0.6;fill:#ffffff;fill-opacity:0.3137"
d="m 975.96184,1349.4213 c -2.48461,-0.122 -5.44872,1.4515 -9.94282,4.9038 -7.19231,5.5272 -22.20461,55.0321 -22.20461,55.0321 l -1.08975,3.2692 -6.12872,18.1159 -25.0641,75.1923 -0.27026,0.9546 -28.33333,84.8649 -6.94819,20.8403 -7.35795,22.2046 -7.21846,21.3851 c 0,0 -7.15744,14.3672 0,21.5246 1.97897,4.638 11.09794,26.6769 55.03205,10.4877 9.7423,-2.7331 10.48769,-18.6608 10.48769,-18.6608 l 4.35897,-22.2046 1.49949,-8.1731 7.08333,-36.3712 14.98616,-77.7816 2.17949,-11.0325 14.98615,-77.7816 3.26051,-17.0261 0.95462,-5.1785 c 0,0 10.74923,-52.4907 6.26384,-59.1164 -1.29025,-2.0879 -1.19,-2.4279 -2.31462,-3.4043 -1.38616,-1.2118 -2.73308,-1.9703 -4.21949,-2.0444 z"
inkscape:connector-curvature="0"
id="path3155-2" />
<path
id="path3159-2"
d="m 1106.7172,1654.5479 8.7187,26.1562 c 0,0 8.718,17.4383 0,26.1563 -30.6479,30.6479 -79.5469,46.9883 -129.53124,48.9062 -53.95538,2.0705 -109.1123,-12.7367 -144.25,-44.1562 0.71875,1.0782 1.4736,2.1381 2.25,3.1875 l 29,29 26.40625,26.4062 9.1875,9.1875 c 18.01053,17.8844 35.96851,35.8724 53.875,53.875 2.89203,2.9076 5.79921,5.8114 8.6875,8.7188 l 216.71879,0 c 3.3782,0 11.5767,-2.7165 17.1562,-8.7188 4.4985,-4.8428 7.2898,-11.8506 4.5,-21.375 -6.6649,-22.7843 -13.2406,-45.2977 -19.875,-67.9687 l -20.3125,-69.0625 c -3.3869,-11.5513 -18.9892,-20.3125 -25.75,-20.3125 l -36.7812,0 z"
style="fill:#f46e00"
inkscape:connector-curvature="0" />
<path
style="fill:#f46e00"
d="m 746.70595,1833.2674 c 5.81487,5.9806 14.62,8.718 18.93538,8.718 l 422.13617,0 c 3.3782,0 11.5861,-2.7157 17.1656,-8.718 l -458.23715,0 0,0 z"
inkscape:connector-curvature="0"
id="path3147-5" />
</g>
</g>
</svg>
vlc-android/res/drawable-hdpi/ic_no_thumbnail_big.png

2.73 KiB

vlc-android/res/drawable-ldpi/ic_no_thumbnail_big.png

1.34 KiB

vlc-android/res/drawable-mdpi/ic_no_thumbnail_big.png

1.89 KiB

vlc-android/res/drawable-xhdpi/ic_no_thumbnail_big.png

3.69 KiB

......@@ -63,7 +63,7 @@ public class CardPresenter extends Presenter {
public CardPresenter(Activity context){
mContext = context;
mRes = mContext.getResources();
sDefaultCardImage = mRes.getDrawable(R.drawable.background_cone);
sDefaultCardImage = mRes.getDrawable(R.drawable.ic_no_thumbnail_big);
CARD_WIDTH = mRes.getDimensionPixelSize(R.dimen.tv_grid_card_thumb_width);
CARD_HEIGHT = mRes.getDimensionPixelSize(R.dimen.tv_grid_card_thumb_height);
}
......@@ -81,17 +81,16 @@ public class CardPresenter extends Presenter {
}
protected void updateCardViewImage(MediaWrapper mediaWrapper) {
mCardView.getMainImageView().setScaleType(ImageView.ScaleType.FIT_CENTER);
if (!TextUtils.isEmpty(mediaWrapper.getArtworkURL()) && mediaWrapper.getArtworkURL().startsWith("http")) {
mCardView.getMainImageView().setScaleType(ImageView.ScaleType.FIT_CENTER);
AsyncImageLoader.LoadImage(new HttpImageLoader(mediaWrapper.getArtworkURL()), mCardView);
} else {
mCardView.getMainImageView().setScaleType(mediaWrapper.getType() == MediaWrapper.TYPE_DIR ? ImageView.ScaleType.CENTER : ImageView.ScaleType.CENTER_CROP);
AsyncImageLoader.LoadImage(new CoverFetcher(mContext, mediaWrapper), mCardView);
}
}
protected void updateCardViewImage(Drawable image) {
mCardView.getMainImageView().setScaleType(ImageView.ScaleType.CENTER);
mCardView.getMainImageView().setScaleType(ImageView.ScaleType.FIT_CENTER);
mCardView.setMainImage(image);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment