Java Code Examples for com.socks.jiandan.utils.FileUtil#savePicture()
The following examples show how to use
com.socks.jiandan.utils.FileUtil#savePicture() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImageDetailActivity.java From JianDanRxJava with Apache License 2.0 | 6 votes |
@OnClick({R.id.img_back, R.id.img_share, R.id.tv_unlike, R.id.tv_like, R.id.img_comment, R.id.img_download}) void click(View v) { switch (v.getId()) { case R.id.img_back: finish(); break; case R.id.img_share: ShareUtil.sharePicture(this, img_urls[0]); break; case R.id.tv_like: ToastHelper.Short(UN_CLICK); break; case R.id.tv_unlike: ToastHelper.Short(UN_CLICK); break; case R.id.img_comment: Intent intent = new Intent(this, CommentListActivity.class); intent.putExtra(DATA_THREAD_KEY, threadKey); startActivity(intent); break; case R.id.img_download: FileUtil.savePicture(img_urls[0], this); break; } }
Example 2
Source File: ImageDetailActivity.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 5 votes |
@OnClick({R.id.img_back, R.id.img_share, R.id.tv_unlike, R.id.tv_like, R.id.img_comment, R.id.img_download}) @Override public void onClick(View v) { switch (v.getId()) { case R.id.img_back: finish(); break; case R.id.img_share: ShareUtil.sharePicture(this, img_urls[0]); break; case R.id.tv_like: ShowToast.Short("别点了,这玩意不能用"); break; case R.id.tv_unlike: ShowToast.Short("别点了,这玩意不能用"); break; case R.id.img_comment: Intent intent = new Intent(this, CommentListActivity.class); intent.putExtra(DATA_THREAD_KEY, threadKey); startActivity(intent); break; case R.id.img_download: FileUtil.savePicture(this, img_urls[0], this); break; } }
Example 3
Source File: ImageDetailActivity.java From JianDan with Apache License 2.0 | 5 votes |
@OnClick({R.id.img_back, R.id.img_share, R.id.tv_unlike, R.id.tv_like, R.id.img_comment, R.id.img_download}) @Override public void onClick(View v) { switch (v.getId()) { case R.id.img_back: finish(); break; case R.id.img_share: ShareUtil.sharePicture(this, img_urls[0]); break; case R.id.tv_like: ShowToast.Short("别点了,这玩意不能用"); break; case R.id.tv_unlike: ShowToast.Short("别点了,这玩意不能用"); break; case R.id.img_comment: Intent intent = new Intent(this, CommentListActivity.class); intent.putExtra(DATA_THREAD_KEY, threadKey); startActivity(intent); break; case R.id.img_download: FileUtil.savePicture(this, img_urls[0], this); break; } }
Example 4
Source File: ImageDetailActivity.java From JianDan_OkHttp with Apache License 2.0 | 5 votes |
@OnClick({R.id.img_back, R.id.img_share, R.id.tv_unlike, R.id.tv_like, R.id.img_comment, R.id.img_download}) @Override public void onClick(View v) { switch (v.getId()) { case R.id.img_back: finish(); break; case R.id.img_share: ShareUtil.sharePicture(this, img_urls[0]); break; case R.id.tv_like: ShowToast.Short("别点了,这玩意不能用"); break; case R.id.tv_unlike: ShowToast.Short("别点了,这玩意不能用"); break; case R.id.img_comment: Intent intent = new Intent(this, CommentListActivity.class); intent.putExtra(DATA_THREAD_KEY, threadKey); startActivity(intent); break; case R.id.img_download: FileUtil.savePicture(this, img_urls[0], this); break; } }