<Button style="@style/Widget.AppCompat.Button.Borderless" android:id="@+id/btn_commit" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_margin="32px" android:layout_marginLeft="36px" android:layout_marginRight="36px" android:background="@drawable/shape_btn_sub_normal" />
style="@style/Widget.AppCompat.Button.Borderless" 一行搞定
GridView示例
<com.yx.keyboarder.widget.MyGridView android:listSelector="@android:color/transparent" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10px" android:layout_marginBottom="20px" android:layout_marginLeft="20px" android:layout_marginRight="20px" android:verticalSpacing="10px" android:numColumns="3"> </com.yx.keyboarder.widget.MyGridView>
android:listSelector="@android:color/transparent" 其实这个效果是把阴影颜色设置为000000