本文整理了Java中android.widget.ListView.invalidateViews()
方法的一些代码示例,展示了ListView.invalidateViews()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.invalidateViews()
方法的具体详情如下:
包路径:android.widget.ListView
类名称:ListView
方法名:invalidateViews
暂无
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onRerload() {
if(listview != null){
listview.invalidateViews();
}
}
};
代码示例来源:origin: mkulesh/microMathematics
public final void askRedrawList()
{
listView.invalidateViews();
}
代码示例来源:origin: stackoverflow.com
@Override
public void onPrepareOptionsMenu(Menu menu) // called when drawer opens
{
if (mDrawerLayout != null && isDrawerOpen())
{
mCursorAdapter = getList(); // create a new cursor with the latest data (see above)
mCursorAdapter.notifyDataSetChanged(); // do I even need this?
ListView listView = (ListView) getActivity().findViewById(R.id.navigation_drawer); // bind the new cursor to the listview
listView.setAdapter(mCursorAdapter);
listView.invalidateViews();
...
}
}
代码示例来源:origin: stackoverflow.com
private void refresh() {
ListView yourListView = getListView();
list = getList(); //this is a List<string>
adapter = new ArrayAdapter<String> (this,R.layout.your_listview_item,list); //this is ArrayAdapter<String>
yourListView.setAdapter(adapter);
yourListView.invalidateViews();
}
代码示例来源:origin: GoldenKappa/notSABS
@Override
protected void onPostExecute(Void o) {
super.onPostExecute(o);
adapter = new DisablerAppAdapter(packageList);
installedAppsView.setAdapter(adapter);
installedAppsView.invalidateViews();
}
}.execute();
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onReload() {
listview.invalidateViews();
addScrollSChar();
}
};
代码示例来源:origin: adolfAn/FBReader_AS
public void run() {
getListView().invalidateViews();
}
});
代码示例来源:origin: adolfAn/FBReader_AS
public void run() {
synchronized (myItems) {
myItems.clear();
myItems.addAll(items);
}
notifyDataSetChanged();
if (invalidateViews) {
myActivity.getListView().invalidateViews();
}
}
});
代码示例来源:origin: Jiangzqts/EpubRead
public void run() {
synchronized (myItems) {
myItems.clear();
myItems.addAll(items);
}
notifyDataSetChanged();
if (invalidateViews) {
myActivity.getListView().invalidateViews();
}
}
});
代码示例来源:origin: ydcx/KooReader
public void run() {
synchronized (myItems) {
myItems.clear();
myItems.addAll(items);
}
notifyDataSetChanged();
if (invalidateViews) {
myActivity.getListView().invalidateViews();
}
}
});
代码示例来源:origin: corcoran/Hangar
public void onResume() {
super.onResume();
if (mAppRowAdapter == null)
return;
mAppsLoaded = false;
mAppRowAdapter.reDraw(completeRedraw);
lv.invalidateViews();
}
代码示例来源:origin: KishanV/Android-Music-Player
public void animEnd(boolean state) {
if(state){
listview.invalidateViews();
listview.invalidate();
if(Ui.ef.MusicPlayer != null){
listview.setSelection(Ui.ef.MusicPlayer.handler.PID - 3);
}
}
}
}
代码示例来源:origin: corcoran/Hangar
public void run() {
if (!mAppsLoaded) {
RelativeLayout bg = (RelativeLayout) lv.getParent();
bg.findViewById(R.id.loading_text).setVisibility(View.GONE);
mAppsLoaded = true;
}
if (setAdapter) {
lv.setAdapter(mAppRowAdapter);
}
lv.invalidateViews();
mAppRowAdapter.notifyDataSetChanged();
}
};
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onType(String str) {
super.onType(str);
if(str.length() != 0){
data.search(str);
}else{
data.search(null);
}
listview.invalidateViews();
listview.invalidate();
}
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onCall(boolean bl) {
data.removeSelection();
listview.invalidateViews();
Geners.this.removeView(SelectBack);
Geners.this.removeView(SelectedText);
Geners.this.removeView(cb);
Geners.this.removeView(songicon);
SelectBack = null;
}
});
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onCall(boolean bl) {
data.removeSelection();
listview.invalidateViews();
Folder.this.removeView(SelectBack);
Folder.this.removeView(SelectedText);
Folder.this.removeView(cb);
Folder.this.removeView(songicon);
SelectBack = null;
}
});
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onCall(boolean bl) {
data.removeSelection();
listview.invalidateViews();
Albums.this.removeView(SelectBack);
Albums.this.removeView(SelectedText);
Albums.this.removeView(cb);
Albums.this.removeView(songicon);
SelectBack = null;
}
});
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onCall(boolean bl) {
data.removeSelection();
listview.invalidateViews();
Songs.this.removeView(SelectBack);
Songs.this.removeView(SelectedText);
Songs.this.removeView(cb);
Songs.this.removeView(songicon);
SelectBack = null;
}
});
代码示例来源:origin: KishanV/Android-Music-Player
@Override
public void onCall(boolean bl) {
data.removeSelection();
listview.invalidateViews();
Artist.this.removeView(SelectBack);
Artist.this.removeView(SelectedText);
Artist.this.removeView(cb);
Artist.this.removeView(songicon);
SelectBack = null;
}
});
代码示例来源:origin: KishanV/Android-Music-Player
void refreshData(){
listview.invalidateViews();
listview.invalidate();
bass.setVal(Ui.ef.MusicPlayer.handler.EQs.BASS);
bass.invalidate();
voice.setVal(Ui.ef.MusicPlayer.handler.EQs.VOICE);
voice.invalidate();
trable.setVal(Ui.ef.MusicPlayer.handler.EQs.TRABLE);
trable.invalidate();
}
内容来源于网络,如有侵权,请联系作者删除!