android listview에 layout_height="wrap_content" 를 넣어봤자 소용이 없다.

http://stackoverflow.com/questions/11295080/android-wrap-content-is-not-working-with-listview

 

You should never set the height of a ListView to wrap_content. Either set the height to fill_parent or do something like this:

<ListView
    android:layout_height="0dp"
    android:layout_weight="1"
    />

Source: http://www.youtube.com/watch?v=wDBM6wVEO70&t=40m45s

라는데, 이걸로 해결 안되는 것 같다.

 

Posted by 언제나19
l

 

url이 같으면 onPageStarted가 안불리기도 하네 -_-

http://code.google.com/p/android/issues/detail?id=37123

 
	private String mainURL;

	@Override
	public void onPageStarted(WebView view, String url, Bitmap favicon) {
		// Store main URL
		mainURL = url;
	}

@Override
	public void onLoadResource(WebView view, String url) {
		// Workaround this issue by checking if the URL matches .
		if (mainURL.equals(url)) {
			doOnPageStarted(view);
		}

		// Do other stuff
	}

 에 code를 넣으면 괜찮다고 한다.

 

 

 

Posted by 언제나19
l

 

 

http://developer.android.com/reference/android/widget/Gallery.html

가 deprecated된 대신에

http://developer.android.com/reference/android/support/v4/view/ViewPager.html

가 생겼네.

http://www.edumobile.org/android/android-beginner-tutorials/view-pager-example-in-android-development/

에서 sample 화면을 볼 수 있다.

http://stackoverflow.com/questions/11208335/listfragment-support-library-getsupportfragmentmanager-undefined

getActivity().getSupportFragmentManager()

If that is still giving you problems, then makre sure that your Activity extends FragmentActivity.

FragmentActivity 를 상속받아야 한다는 단점이 있다.

Posted by 언제나19
l