ห้องสมุดที่ใช้วิดเจ็ตปุ่มยกวัสดุตามแนวทางของวัสดุ
ดูตาม CardView
ถั่วเยลลี่ 
ตังเม 
Gradle:
compile ' com.github.VyacheslavShmakin:material-raised-button:1.1.0 'Maven:
< dependency >
< groupId >com.github.VyacheslavShmakin</ groupId >
< artifactId >material-raised-button</ artifactId >
< version >1.1.0</ version >
< type >aar</ type >
</ dependency > เป็นเพียงมุมมองที่เรียบง่ายเพื่อให้คุณสามารถใช้วิธีมาตรฐานทั้งหมด
คุณมีวิธีการเพิ่มเติมที่สามารถใช้ในการกำหนดค่าพารามิเตอร์มุมมองโดยทางโปรแกรม
RaisedButton rbtn = ...;
CardView currentCardView = rbtn . getRootView ();
Button currentRobotoButton = rbtn . getButtonView ();พารามิเตอร์ XML มาตรฐานที่สามารถประมวลผลได้โดย RaisedButton:
android.R.attr.layout_width
android.R.attr.layout_height
android.R.attr.background
android.R.attr.ellipsize
android.R.attr.minLines
android.R.attr.maxLines
android.R.attr.minWidth
android.R.attr.maxWidth
android.R.attr.minHeight
android.R.attr.maxHeight
android.R.attr.textColor
android.R.attr.textSize
android.R.attr.text
android.R.attr.enabled
android.R.attr.fontFamilyพารามิเตอร์ XML ของ RaisedButton:
R.attr.rb_cornerRadius
R.attr.rb_elevation
R.attr.rb_maxElevation
R.attr.rb_innerPaddings
R.attr.rb_innerPaddingLeft
R.attr.rb_innerPaddingRight
R.attr.rb_innerPaddingTop
R.attr.rb_innerPaddingBottom บันทึก
1. InnerPaddings, InnerPaddingLeft, InnerPaddingTop, InnerPaddingright, InnerPaddingBottom - กำหนดปุ่มด้านใน (ระหว่างข้อความและพรมแดนในแต่ละด้าน);
2. พารามิเตอร์ InnerPaddings จะไม่รวม Paddings แยกกันโดยอัตโนมัติ (ซ้าย, บน, ขวา, ด้านล่าง);
3. พารามิเตอร์ cornerradius จะทำงานได้เฉพาะใน 21+ API ;
4. เพื่อให้รัศมีมุมบน APIs pre-lollipop คุณควรใช้การวาดที่เฉพาะเจาะจงกับมุมโค้งมน;
ดังนั้นหากคุณต้องการให้รัศมีมุมบน 16+ APIs คุณควรใช้พารามิเตอร์ RB_CornerRadius ใน XML ( สำหรับ 21+ API ) และสร้างการวาดที่เฉพาะเจาะจงด้วยมุมโค้งมน ( สำหรับ Pre-Lollipop APIs )
5. ถ้าคุณตั้งค่าพารามิเตอร์ RB_ELEVATION และ RB_MAXELEVATION เป็น 0DP และตั้งค่าทรัพยากรที่วาดได้ที่ถูกต้องคุณจะสามารถใช้ RaisedButton เป็น ปุ่มแบน
6. คุณสามารถตั้งค่าแบบอักษรใด ๆ โดยใช้ คู่มือนักพัฒนา Android ;