2013-01-11 2 views
0

이것은 내 삼성 GT-I9003L과 관련하여 이상한 문제입니다. ScrollView (ImageView, Button, EditText 등) 안에 다른 물건이 들어있는 LinearLayout을 포함하고 있으며 2.3.3 및 4.2 버전 모두에서 에뮬레이터에서 테스트 할 때 완벽하게 작동합니다.Android ScrollView overscroll 표시기 문제

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/scroll_view" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" > 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:orientation="vertical" 
     android:padding="16dp" > 

     <ImageView 
      android:id="@+id/image" 
      android:layout_width="fill_parent" 
      android:layout_height="200dp" 
      android:contentDescription="@string/img_description" 
      android:src="@drawable/ic_launcher" /> 

     <Button 
      android:id="@+id/btn_camera" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="@string/add_new_btn_camera" /> 

     <Button 
      android:id="@+id/btn_gallery" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="@string/add_new_btn_gallery" /> 

     <EditText 
      android:id="@+id/name" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:ems="10" 
      android:hint="@string/add_new_name_hint" 
      android:inputType="text" 
      android:maxLength="80" /> 

     [...] 
    </LinearLayout> 

</ScrollView> 

것은 내가 내 휴대 전화에서 테스트 할 때 오버 스크롤 지표 (블루/오렌지가 점등) 전혀 표시되지 않는다는 것입니다. 나는 그들이이 라인 작업 얻을 관리했습니다 :

ScrollView addNewScroll = (ScrollView)findViewById(R.id.scroll_view); 
addNewScroll.setOverScrollMode(ScrollView.OVER_SCROLL_IF_CONTENT_SCROLLS); 

하지만 상단이나 말, 그냥 "이 나타납니다"글로우에 도달하면, 그렇지 애니메이션을 수행하거나

감사 페이드. 미리 도움을 청하십시오!

+1

삼성이 휴대 전화에 넣은 UI (TouchWiz?) 때문일 것입니다 ... 어떻게 든 Android의 기본 설정을 무시합니다. – user219882

+0

나는 그것을 의심하지 않습니다. 모든 제조업체는 표준을 준수해야하지만 그렇지 않습니다. 문제는 다른 응용 프로그램도 잘 작동한다는 것입니다 ... –

답변

0

정확히 같은 문제가 있습니다. Overscolling은 Samsung Galaxy 2 (Touchwiz)에서 작동하지 않지만 HTC One X 휴대 전화에서도 작동합니다 (이전 HTC가 작동하는 것 같습니다).

그들은 ScrollView 구현을 자신 만의 것으로 바꾸 었는지, 아니면 신축성있는 스크롤 막대 또는 뭔가에 대한 것일지도 모른다.

+0

작동시키기위한 맞춤 메소드를 알고 있습니까? 감사! –

+0

AOSP에서 ScrollView에서 사본을 가져올 수 있으며 앱과 함께 패키지로 만들 수 있습니다. 따라서 공급자가 제공하는 대신 ScrollView 복사본을 제공하십시오. – Jeroen

+0

늦게 답변 해 주셔서 감사합니다. 나는 그것을 시도하고 어떤 일이 일어날지를 볼 것이다. 팁 고마워! –