I want to show Horizontal progress bar. In my code i do this with circle Progress bar. I need to show a horizontal Progress bar while searching the Text from a file.
public void search(){
pd.setVisibility(View.VISIBLE);
new Thread(new Runnable() {
@Override
public void run() {
haspmap = Searching(folderNameSelected, langTypeSelected,searchingWord.toLowerCase().trim());
mHandler.post(new Runnable() {
@Override
public void run() {
RecordText.setText(Recordsize+ " Results found");
// int d=haspmap.get(resultRefList).size();
listAdapter = new MylistAdapter(MainActivity.this,
haspmap.get("resultArray"), haspmap.get("suratName"),haspmap.get("ayahnumber"));
SurahList.setAdapter(listAdapter);
hideKeyboard(inputSearch);
inputSearch.setSelection(inputSearch.getText().length());
pd.setVisibility(View.GONE);
searchedList.setVisibility(View.GONE);
}
});
}
}).start();
}