2016-10-03 5 views
0

seekbar에 문제가 있습니다. 나는 그것을 무력화시키고 싶지만, .setEnabled (false) 함수를 사용하면 seekbar가 사라진다. 이것을 피하는 방법?seekbar.setEnabled (false) seekbar를 보이지 않게합니다.

내 레이아웃 :

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="@color/colorBackground"> 

    <SeekBar 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/seekBar" 
     /> 
</LinearLayout> 

내 코드 : 난 아직도하지 말자

SeekBar seekBar=(SeekBar) findViewById(R.id.seekBar); 
    seekBar.setEnabled(false); 
+0

을 'setEnable (false)'가 seekbar를 사라지게 만들지 못했습니다. 다른 개발자가 도와 줄 수 있도록 레이아웃/코드를 게시해야합니다. – hakim

+0

내 게시물을 편집합니다. 이것은 내 코드입니다. 이 후에 내 탐색 바가 보이지 않지만, 나는 그것을 불가능하게 만 만들고 싶습니다. – MaSza

답변

관련 문제