我的應用程序UI是使用Android支持庫構建的,但目前沒有應用程序真正需要的(intederminate)進度條的AppCompat版本。什麼時候不確定的進度條來到Android支持庫
我寧願不使用任何第三方庫來實現材料設計進度條,所以我想知道是否有人坐在有關爲什麼它不包含在支持庫中的信息上,並且如果有任何符號到達(什麼時候)。
我的應用程序UI是使用Android支持庫構建的,但目前沒有應用程序真正需要的(intederminate)進度條的AppCompat版本。什麼時候不確定的進度條來到Android支持庫
我寧願不使用任何第三方庫來實現材料設計進度條,所以我想知道是否有人坐在有關爲什麼它不包含在支持庫中的信息上,並且如果有任何符號到達(什麼時候)。
您可以使用ProgressBar
和AppCompat樣式。
就在你的佈局補充一點:
<ProgressBar
style="@style/Base.Widget.AppCompat.ProgressBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
android:visibility="visible" />
如果您想的水平進度條的使用:
<ProgressBar
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="8dp"
android:layout_marginTop="24dp"
android:indeterminate="true"
android:visibility="visible" />
他們遵循的官方材料guidelines。
如何使用此作爲與webView的操作欄中的intederminate progressbar? – Mohammad
想補充一點,這不適用於不確定的圓形條。他們缺乏可繪製的動畫矢量。 –
@羅伯特任何暗示如何爲不確定的圈子做同樣的事情?這是我可以通過google-fu獲得的最佳結果之一。 –
我只是試圖改善由Gabriele Mariotti先生使用樣式的答案。
這樣寫
<style name="infinite_progress_horizontal" parent="Widget.AppCompat.ProgressBar.Horizontal">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:indeterminate">true</item>
</style>
風格與你的進度是這樣使用它。
<ProgressBar style="@style/infinite_progress_horizontal" />
我投票關閉這一問題作爲題外話,因爲它是關於3圖書館未來可能的功能及其ETA。 – Budius
當你說ETA時,你是什麼意思? – Joakim
ETA:「預計到達時間」 – Budius