| | |
| | | import com.weikou.beibeivideo.util.DimenUtils; |
| | | import com.weikou.beibeivideo.util.ad.AdUtil; |
| | | import com.weikou.beibeivideo.util.ad.ExpressAdManager; |
| | | import com.weikou.beibeivideo.util.ui.TopStatusSettings; |
| | | |
| | | import org.apache.http.Header; |
| | | import org.json.JSONObject; |
| | |
| | | protected void onCreate(Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | | setContentView(R.layout.search_actvity); |
| | | initStatusBar(); |
| | | TopStatusSettings.setStatusViewAndDeepColor(this); |
| | | initView(); |
| | | suggestFragment = new SearchSuggestFragment(); |
| | | |
| | |
| | | if (!TextUtils.isEmpty(value)) { |
| | | et_search_key.setCompoundDrawablesWithIntrinsicBounds(0, 0, |
| | | R.drawable.ic_clear, 0); |
| | | // tv_search_cancel.setText(R.string.search); |
| | | } else { |
| | | et_search_key.setCompoundDrawablesWithIntrinsicBounds(0, 0, |
| | | 0, 0); |
| | | // tv_search_cancel.setText(R.string.cancel); |
| | | } |
| | | |
| | | et_search_key.setOnTouchListener(new OnTouchListener() { |
| | |
| | | public void onClick(final View v) { |
| | | switch (v.getId()) { |
| | | case R.id.tv_search_cancel: |
| | | finish(); |
| | | if (fl_suggest.getVisibility() == View.VISIBLE) { |
| | | hiddenSuggestFragment(); |
| | | } else |
| | | finish(); |
| | | break; |
| | | case R.id.tv_search_clear_his: |
| | | clearHistorySearch(); |