2010-07-01 4 views
0

스크롤 의미를 만드는 사람 그가 하지만 난 사용자의 터치로 스크롤 내 레이아웃

주어진 레이아웃에서 아래로 갈 수있는 수있는 것은 내가했고, 에뮬레이터 예외는 null를 던질 것입니다 포인터 뭔가를해야만와 나는 ....

<?xml version="1.0" encoding="UTF-8"?> 
<ScrollView> 
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:stretchColumns="1"> 


<LinearLayout 

android:layout_width="wrap_content" 
android:layout_height="wrap_content"> 
<TextView 
android:text="Country City Game(aka CCG) is an acdemic work of MTA students enjoy the game" 
    android:textSize="24.5sp" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"></TextView> 
</LinearLayout> 




</TableLayout> 
</ScrollView> 

이 하나 나던 일이 오는 곳에서 알아내는 문제가 발생하지만 난

<ScrollView> </ScrollView> 

을 드롭 할 때 어떤 일이 WRO을 무엇을 나에게 설명 할 수있는 작업 응?

+2

당신은 제안 된 답변을 포함하는 질문을 편집 한 시도 -이 지금 혼란이다. 편집에서 언급 한 내용을 언급 했어야합니다. 그렇지 않으면 나중에이 문제를 보는 다른 사람이 문제 및 관련 솔루션이 무엇인지 이해하지 못할 수 있습니다. StackOverflow는 개발자에게 도움이되는 Q & A 리포지토리를 구축하기위한 * 귀하의 질문에 대한 대답을 얻는 것이 아닙니다. – cjk

+0

그것은 다른 사람들이 모든 그림을보고 다른 곳에서 틀릴 수도 있다는 것을 돕기 위해 더 많은 텍스트와 예제를 추가 한 것과 같은 질문입니다 ... –

답변

2

이 대신

<?xml version="1.0" encoding="UTF-8"?> 

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" android:layout_height="fill_parent"> 

<TableLayout 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:stretchColumns="1"> 

<TableRow> 

    <TextView 
    android:text="Country City Game(aka CCG) is an acdemic work of MTA students enjoy the game" 
    android:textSize="24.5sp" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"></TextView> 

</TableRow> 

</TableLayout> 

</ScrollView> 
+0

고마워요.하지만 여전히 런타임 오류가 있습니다 ... 위의 코드를 볼 수 있습니까? (내가 방금 추가했습니다.) 무엇이 잘못되었는지 말해 주시겠습니까? ... –

+0

작품은 perectly 고맙습니다. :) –

0

부착 된 스크롤 막대를 갖고 싶어 레이아웃.

+0

이중 게시를 위해 죄송합니다. 나는 ccheneson이 조금 더 빨리 반응했음을 알게되었다. –

+0

변경 사항을 알려주세요, 나는 당신이 말한 것을 이미 시도했다고 생각하지만, 나는 올바른 방향으로 있지 않다는 생각을 가지고있어서 저에게 개념을 얻는 것이 잘못되었을 수도 있습니다. 모든보기 항목에 대해 을 수행해야합니까? –

관련 문제