base layout clean up, back to mainactivity as map #21
@ -43,10 +43,6 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".activity.SharingActivity"
|
android:name=".activity.SharingActivity"
|
||||||
android:label="@string/title_activity_sharing" />
|
android:label="@string/title_activity_sharing" />
|
||||||
<activity
|
|
||||||
android:name=".activity.MainActivity"
|
|
||||||
android:label="@string/title_activity_sharing"
|
|
||||||
android:launchMode="singleTop" />
|
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".service.BackgroundLocalizationService"
|
android:name=".service.BackgroundLocalizationService"
|
||||||
|
@ -22,12 +22,10 @@ import android.util.Log;
|
|||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.AdapterView;
|
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.uam.wmi.findmytutor.ListViewAdapter;
|
|
||||||
import com.uam.wmi.findmytutor.R;
|
import com.uam.wmi.findmytutor.R;
|
||||||
import com.uam.wmi.findmytutor.service.BackgroundLocalizationService;
|
import com.uam.wmi.findmytutor.service.BackgroundLocalizationService;
|
||||||
import com.uam.wmi.findmytutor.utils.PrefUtils;
|
import com.uam.wmi.findmytutor.utils.PrefUtils;
|
||||||
@ -47,7 +45,6 @@ public abstract class BaseActivity
|
|||||||
// 4 search
|
// 4 search
|
||||||
private ListView listView;
|
private ListView listView;
|
||||||
private ArrayList<String> stringArrayList;
|
private ArrayList<String> stringArrayList;
|
||||||
private ListViewAdapter adapter;
|
|
||||||
private SharingFragment sharingFragment;
|
private SharingFragment sharingFragment;
|
||||||
|
|
||||||
private static final int REQUEST_PERMISSIONS = 100;
|
private static final int REQUEST_PERMISSIONS = 100;
|
||||||
@ -87,23 +84,6 @@ public abstract class BaseActivity
|
|||||||
toolbar = (Toolbar) findViewById(R.id.toolbar);
|
toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
}
|
}
|
||||||
private void setData() {
|
|
||||||
stringArrayList = new ArrayList<>();
|
|
||||||
stringArrayList.add("Quynh Trang");
|
|
||||||
stringArrayList.add("Hoang Bien");
|
|
||||||
stringArrayList.add("Duc Tuan");
|
|
||||||
stringArrayList.add("Dang Thanh");
|
|
||||||
stringArrayList.add("Xuan Luu");
|
|
||||||
stringArrayList.add("Phan Thanh");
|
|
||||||
stringArrayList.add("Kim Kien");
|
|
||||||
stringArrayList.add("Ngo Trang");
|
|
||||||
stringArrayList.add("Thanh Ngan");
|
|
||||||
stringArrayList.add("Nguyen Duong");
|
|
||||||
stringArrayList.add("Quoc Cuong");
|
|
||||||
stringArrayList.add("Tran Ha");
|
|
||||||
stringArrayList.add("Vu Danh");
|
|
||||||
stringArrayList.add("Minh Meo");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private void setUpNav() {
|
private void setUpNav() {
|
||||||
@ -186,10 +166,10 @@ public abstract class BaseActivity
|
|||||||
@Override
|
@Override
|
||||||
public boolean onQueryTextChange(String newText) {
|
public boolean onQueryTextChange(String newText) {
|
||||||
if (TextUtils.isEmpty(newText)) {
|
if (TextUtils.isEmpty(newText)) {
|
||||||
adapter.filter("");
|
//adapter.filter("");
|
||||||
listView.clearTextFilter();
|
//listView.clearTextFilter();
|
||||||
} else {
|
} else {
|
||||||
adapter.filter(newText);
|
//adapter.filter(newText);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
BIN
app/src/main/res/.DS_Store
vendored
BIN
app/src/main/res/.DS_Store
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user