簡體   English   中英

材質設計:按鈕還是編輯文本?

[英]Material Design: Button or Edit Text?

我對材料設計和語義有疑問。 我嘗試進行應用程序的設置,但只有幾個字段。 因此,我首先嘗試使用LinearLayout和一些EditText來使UI像這樣:

火車火車EditText

我必須設置小時,並且已經將OnClickListener設置為顯示TimePickerDialog

但是,當我檢查Google議程上的設置時,它似乎是Button列表? (觸摸時的動畫與Button上的相同)

Google議程按鈕

我應該使用Button而不是EditText嗎? 即使看起來像FullWidth Textfield?

我應該使用List而不是LinearLayout嗎?

對不起,我的英語不好。

您可以同時使用這兩種方法,但是如果您要使用線性布局,那將會很好。

對於材料設計,您可以點擊以下鏈接:

  1. https://github.com/navasmdc/MaterialDesignLibrary#flat-button
  2. https://github.com/keithellis/MaterialWidget
  3. https://github.com/tekinarslan/AndroidMaterialDesignToolbar
  4. https://github.com/madcyph3r/AdvancedMaterialDrawer

我希望,這會有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM