简体   繁体   中英

Material Design: Button or Edit Text?

I have a question about Material Design and semantics. I try to make the settings of my application and I have only a few fields. So I first try to make the UI like this one, with a LinearLayout and some EditText :

火车火车EditText

I have to set hour, and I have set OnClickListener to display a TimePickerDialog .

But when I check the settings on Google Agenda, it appear to be a List of Button ? (The animation on touch is the same on Button )

Google议程按钮

Should I use Button and not EditText ? Even if it's look like FullWidth Textfield?

Should I use a List rather than LinearLayout ?

I am sorry for my bad english...

You can use both approach but if you will use Linear layout that will be good.

For material design you can follow below link:

  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

I hope, It will help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM