public class FamilySearchActivity extends BasicActivity implements android.text.TextWatcher, android.widget.TextView.OnEditorActionListener
EXTRA_BUNDLE| 构造器和说明 |
|---|
FamilySearchActivity() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterTextChanged(android.text.Editable editable) |
void |
beforeTextChanged(java.lang.CharSequence charSequence,
int i,
int i1,
int i2) |
protected void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
重写onActivityResult方法,获取选择的城市
|
void |
onBackPressed() |
void |
onCancelClick(android.view.View view)
点击取消,回到ChooseFamilyActivity
|
void |
onCityPickerClick(android.view.View view)
点击城市选择按钮
|
protected void |
onCreate(android.os.Bundle savedInstanceState) |
boolean |
onEditorAction(android.widget.TextView textView,
int actionId,
android.view.KeyEvent keyEvent)
输入框点击搜索按钮
|
void |
onFragmentEvent(FragmentEvent event)
跳转到目标的fragment页面
|
void |
onLocationChanged(AMapLocation aMapLocation)
定位完成后,如果定位成功,并且定位的城市在定位库中,显示该城市,其他显示北京
|
void |
onTextChanged(java.lang.CharSequence charSequence,
int i,
int i1,
int i2)
输入框内容为空时,回到搜索历史界面
|
void |
setCurrentFragment(SearchFragmentEnum fragment)
设置当前界面显示的Fragment
|
bindTopBar, getAppComponent, onTopBarLeftClick, onTopBarRightClickdismissAlertDialog, dismissProgressDialog, onActivityStartEvent, onDestroy, onGlobalMsg, onPause, onResume, setPresenters, showAlertDialog, showAlertDialog, showAlertDialog, showProgressDialogprotected void onCreate(android.os.Bundle savedInstanceState)
public void onCityPickerClick(android.view.View view)
view - public void onCancelClick(android.view.View view)
view - protected void onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
public boolean onEditorAction(android.widget.TextView textView,
int actionId,
android.view.KeyEvent keyEvent)
onEditorAction 在接口中 android.widget.TextView.OnEditorActionListenertextView - actionId - keyEvent - public void beforeTextChanged(java.lang.CharSequence charSequence,
int i,
int i1,
int i2)
beforeTextChanged 在接口中 android.text.TextWatcherpublic void onTextChanged(java.lang.CharSequence charSequence,
int i,
int i1,
int i2)
onTextChanged 在接口中 android.text.TextWatchercharSequence - i - i1 - i2 - public void afterTextChanged(android.text.Editable editable)
afterTextChanged 在接口中 android.text.TextWatcherpublic void onFragmentEvent(FragmentEvent event)
event - public void setCurrentFragment(SearchFragmentEnum fragment)
public void onLocationChanged(AMapLocation aMapLocation)
aMapLocation - public void onBackPressed()
onBackPressed 在类中 BaseActivity