forked from hpdx/fresco-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
李松
committed
May 15, 2017
1 parent
6cb40f6
commit feb7f4c
Showing
19 changed files
with
810 additions
and
303 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions
30
app/src/main/java/com/android/fresco/demo/AssetsActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.android.fresco.demo; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.Nullable; | ||
import android.support.v7.app.AppCompatActivity; | ||
|
||
import com.facebook.drawee.view.SimpleDraweeView; | ||
import com.facebook.fresco.helper.Phoenix; | ||
|
||
/** | ||
* 从Assets中加载显示图片 | ||
* | ||
* Created by android_ls on 17/05/15. | ||
*/ | ||
|
||
public class AssetsActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(@Nullable Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_fresco_assets); | ||
|
||
SimpleDraweeView simpleDraweeView = (SimpleDraweeView)findViewById(R.id.sdv_1); | ||
Phoenix.with(simpleDraweeView) | ||
.setAssets(true) | ||
.load("qingchun.jpg"); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.