如何用代码设置Seek Bar thumb?

时间:2015-03-05 03:51:37

标签: xamarin xamarin.android xamarin-studio

我正在尝试使用不是XML的代码设置搜索栏拇指

我试过

Drawable a = null;
a = Drawable.CreateFromStream(Assets.Open("Drawable/Icon"),null);
seekBar.SetThumb (a);

也尝试过:

seekBar.SetThumb() //Adding the image path but it said the it requires a drawable but it was giving it a int

我如何使用代码设置图像?

我也在使用Xamarin免费版。

1 个答案:

答案 0 :(得分:0)

我有同样的问题,我用以下代码解决了它。 希望它有所帮助

ctmtest1-tctmsv80 [13] python del_jobs_main.py 20150625 150712
select order_id, status, state from a150712002_ajob where order_time < '20150625' and not (status = 'Ended OK' or state = 'Deleted');
' order_id |     status     |  state   '
'----------+----------------+----------'
' 0eeve    | Wait Condition | Deleted '
' 0eevd    | Wait Condition | Deleted '
'(2 rows)'