材质设计:按钮或编辑文字?

时间:2015-03-05 17:07:45

标签: android android-edittext semantics android-button material-design

我对材料设计和语义有疑问。 我尝试进行应用程序的设置,我只有几个字段。所以我首先尝试使用LinearLayout和一些EditText来创建这样的用户界面:

Capitain Train EditText

我必须设置小时,并设置OnClickListener以显示TimePickerDialog

但是当我检查Google Agenda上的设置时,它似乎是Button的列表? (触摸动画在Button

上是相同的

Google Agenda Buttons

我应该使用Button而不是EditText吗?即使它看起来像FullWidth Textfield?

我应该使用List而不是LinearLayout吗?

我很抱歉我的英语不好......

1 个答案:

答案 0 :(得分:1)

您可以使用这两种方法,但如果您将使用线性布局,那将是好的。

对于材料设计,您可以按照以下链接:

  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
  5. 我希望,这会有所帮助。

相关问题