Update detail scene
This commit is contained in:
1 parent
a26686c31b
commit
57acf0585d
15 files changed
+973
-71
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package com.hippo.util;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.Html;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.hippo.conaco.Conaco;
|
||||
import com.hippo.drawable.UnikeryDrawable;
|
||||
|
||||
public class URLImageGetter implements Html.ImageGetter {
|
||||
|
||||
private TextView mTextView;
|
||||
private Conaco mConaco;
|
||||
|
||||
public URLImageGetter(TextView view, Conaco conaco) {
|
||||
mTextView = view;
|
||||
mConaco = conaco;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Drawable getDrawable(String source) {
|
||||
UnikeryDrawable drawable = new UnikeryDrawable(mTextView);
|
||||
mConaco.load(drawable, source, source);
|
||||
return drawable;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user