I want to make my CardView on a prototype such as in the screenshot (will be lower).
The main problem is that the buttons which are located below are not similar to ordinary ones, they are rather very similar to those like in Action and Tool bars.
But I do not know how to make such in CardView me.

PS: These buttons here are the READ buttons and the menu button.

enter image description here

  • one
    about the drop-down list when you click on the button ask a new question. In one question there can be only one problem - pavlofff
  • TextView and Listener - Shwarz Andrei

2 answers 2

To get such buttons you just need to specify styles for ordinary widgets:

 <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="8dp" android:gravity="right" android:orientation="horizontal"> <Button android:id="@+id/read_button" style="@style/Widget.AppCompat.Button.Borderless" android:text="@string/read_button" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <ImageButton android:id="@+id/menu_button" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/Widget.AppCompat.ActionButton.Overflow"/> </LinearLayout> 

    CardView is a normal ViewGroup in which you can put different View and other ViewGroup ( LinearLayout , RelativeLayout , etc.). These buttons can be done by putting in CardView TextView and ImageView . The picture with three vertical dots is standard in android (I do not remember what is called)

    • If you put a simple textview there, when touched, its background color will not change - Real KEK
    • Well, this is a custom thing. I do not see a problem with this - pavel163