후아아, Android 개발하는데 이 그림정도는 환벽히 머리속에 넣고 있어야 하지,
onPause와 onStop의 의 혼동으로 잠깐 삽질.
CursorAdapter adapter = (CursorAdapter) getListAdapter();
adapter.getCursor().requery();
adapter.notifyDataSetChanged();
mDialogEditText.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
Log.d(TAG,"Count = " + count);
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
}
@Override
public void afterTextChanged(Editable s) {
}
});
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/app_name">
<PreferenceCategory
android:title="@string/category_name">
<Preference android:key="app_name"
android:persistent="false"
android:title="@string/app_name"
/>
</PreferenceCategory>
</PreferenceScreen>
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="25dip" android:gravity="center_vertical" android:paddingLeft="5dip" android:background="#323331"> <ImageView android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@android:drawable/ic_menu_info_details"/> <TextView android:textStyle="bold" android:id="@android:id/title" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="test" android:gravity="center" android:textColor="#FF0000" /> </LinearLayout>