如何從計時錶中獲取時間?我嘗試過getText,getFormat,getBase等,但他們都不能工作。 示例代碼片段: Chronometer t = (Chronometer)findViewById(R.id.toptime);
long time = SystemClock.elapsedRealtime()-t.getBase();
Log.d(null,"Was: "+time);
假設我有以下課程。 public class Location
{
public Id { get; set;}
public Name { get; set;}
}
而且我有一個名爲Location的WebPage,看起來像這樣。 txtId
txtName
txtCountStaffWorkersAtLocation
txtCountVehiclesAtLo