-
Notifications
You must be signed in to change notification settings - Fork 71
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
Showing
36 changed files
with
1,614 additions
and
55 deletions.
There are no files selected for viewing
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
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
32 changes: 32 additions & 0 deletions
32
app/src/main/java/com/zzzmode/appopsx/ui/main/AppItemViewHolder.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,32 @@ | ||
package com.zzzmode.appopsx.ui.main; | ||
|
||
import android.support.v7.widget.RecyclerView; | ||
import android.view.View; | ||
import android.widget.ImageView; | ||
import android.widget.TextView; | ||
|
||
import com.zzzmode.appopsx.R; | ||
import com.zzzmode.appopsx.ui.core.LocalImageLoader; | ||
import com.zzzmode.appopsx.ui.model.AppInfo; | ||
|
||
/** | ||
* Created by zl on 2017/5/7. | ||
*/ | ||
|
||
public class AppItemViewHolder extends RecyclerView.ViewHolder { | ||
|
||
ImageView imgIcon; | ||
TextView tvName; | ||
|
||
public AppItemViewHolder(View itemView) { | ||
super(itemView); | ||
imgIcon= (ImageView) itemView.findViewById(R.id.app_icon); | ||
tvName= (TextView) itemView.findViewById(R.id.app_name); | ||
} | ||
|
||
|
||
public void bindData(AppInfo appInfo){ | ||
tvName.setText(appInfo.appName); | ||
LocalImageLoader.load(imgIcon,appInfo); | ||
} | ||
} |
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
Oops, something went wrong.