...
|
...
|
@@ -6,6 +6,7 @@ import android.support.v7.widget.LinearLayoutManager; |
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
import android.text.Editable;
|
|
|
import android.text.TextWatcher;
|
|
|
import android.util.Log;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
...
|
...
|
@@ -117,6 +118,7 @@ public class CompanyActivity extends BaseMvpActivity<CommonPresenter, ZhaopinMod |
|
|
requsetBody = new CompanySearchBody();
|
|
|
requsetBody.setPage(1);
|
|
|
requsetBody.setPageSize(10);
|
|
|
requsetBody.setSearchName(edSearch.getText().toString());
|
|
|
doRequset(requsetBody);
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -256,6 +258,7 @@ public class CompanyActivity extends BaseMvpActivity<CommonPresenter, ZhaopinMod |
|
|
}
|
|
|
|
|
|
private void doRequset(CompanySearchBody body) {
|
|
|
|
|
|
MyServer myServer = HttpUtils.getInstance().getServer(NetConfig.zhaopinUrl);
|
|
|
myServer.CompanySearch(body)
|
|
|
.subscribeOn(Schedulers.io())
|
...
|
...
|
@@ -547,6 +550,12 @@ public class CompanyActivity extends BaseMvpActivity<CommonPresenter, ZhaopinMod |
|
|
final GridViewAdapter adapter1 = new GridViewAdapter(zhinengList, this);
|
|
|
gridTwo.setAdapter(adapter1);
|
|
|
|
|
|
final PopupWindow popupWindow = new PopupWindow(contentView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);
|
|
|
popupWindow.setOutsideTouchable(true);
|
|
|
popupWindow.setTouchable(true);
|
|
|
chageAlpha(0.5f);
|
|
|
popupWindow.showAsDropDown(linLeibie);
|
|
|
|
|
|
gridOne.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
@Override
|
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
...
|
...
|
@@ -566,12 +575,6 @@ public class CompanyActivity extends BaseMvpActivity<CommonPresenter, ZhaopinMod |
|
|
}
|
|
|
});
|
|
|
|
|
|
final PopupWindow popupWindow = new PopupWindow(contentView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);
|
|
|
popupWindow.setOutsideTouchable(true);
|
|
|
popupWindow.setTouchable(true);
|
|
|
chageAlpha(0.5f);
|
|
|
popupWindow.showAsDropDown(linLeibie);
|
|
|
|
|
|
reset.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
...
|
...
|
|