2014-03-30 28 views
0

我正在使用一個SeekArc library,它是Android的循環查找。我有xml,在裏面我可以設置SeekBar的最大值(seek arc:max =「150」)。但我想動態改變它,如果我做SeekBar.setMax不起作用。是否有其他可能性動態改變最大值?這是我的代碼。動態尋找條形碼

謝謝

<com.triggertrap.seekarc.SeekArc 
      android:id="@+id/seekArc" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_gravity="center" 
      android:padding="30dp" 
      seekarc:arcColor="#C0C0C0" 
      seekarc:clockwise="true" 
      seekarc:max="150" 
      seekarc:progressColor="@color/red" 
      seekarc:rotation="180" 
      seekarc:startAngle="30" 
      seekarc:sweepAngle="300" 
      seekarc:thumb="@drawable/custom_seek_arc_control_selector" 
      seekarc:touchInside="true" /> 

回答