Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

録画時間に応じてサムネイルの取得方法を変える #63

Open
mizucoffee opened this issue Mar 16, 2017 · 0 comments
Open

Comments

@mizucoffee
Copy link
Owner

Chinachuで録画された実際のファイルの時間が取得できるようになったらサムネイルの取得をスマートにする

@BindingAdapter({"imageUrl","length"})
public static void setImageUrl(ImageView i, String url, int length){
    System.out.println(length);
    if(length > 30)
        Picasso.with(i.getContext()).load(url + "?pos=30").into(i);
    else
        Picasso.with(i.getContext()).load(url + "?pos=0").into(i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant