Switch to recyclerview in ManageApplications
- Replace ListView with RecyclerView in layout - Replace ApplicationAdapter's superclass to be RecyclerView.Adapter - Change adapter interfaces (where necessary) to work with RecyclerView - Replace fast scroll with Recycler's mechanism (all in xml) - Removed section indexer (text bubble when fast scroll) because recyclerview doesn't support it. Bug: 64804294 Test: robotests Change-Id: I55b221836ce6abdeddf4568c8a8a5632cbddbd3b
This commit is contained in:
@@ -72,11 +72,11 @@ public class MusicViewHolderController implements FileViewHolderController {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setupView(AppViewHolder holder) {
|
||||
holder.appIcon.setImageDrawable(
|
||||
public void setupView(ApplicationViewHolder holder) {
|
||||
holder.setIcon(
|
||||
new InsetDrawable(mContext.getDrawable(R.drawable.ic_headset_24dp), INSET_SIZE));
|
||||
holder.appName.setText(mContext.getText(R.string.audio_files_title));
|
||||
holder.summary.setText(Formatter.formatFileSize(mContext, mMusicSize));
|
||||
holder.setTitle(mContext.getText(R.string.audio_files_title));
|
||||
holder.setSummary(Formatter.formatFileSize(mContext, mMusicSize));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user