How to make a frame around the element?
I need to get something like the following:
Interested in how you can make such a frame in size of the list item and how to make a separate frame to the end of the screen
UPD
By the way, is it possible to somehow remove the application logo so that it does not pop up in the actionBar? UPD2
public boolean onCreateOptionsMenu(Menu menu) { menuItem = menu.findItem(R.id.reload_button); menuItem.setEnabled(true); menuItem.setVisible(true); getMenuInflater().inflate(R.menu.menu, menu); return true; }
But xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/reload_button" android:icon="@android:drawable/ic_menu_rotate"> </item> </menu>
nine-patch
- a specially shapedpng
file with utility markup that sets the rules forstretching
'and the location of internal content. Read more in the documentation. - falstaf pmshape
with a frame (stroke
) and put it on thebackground
theListView
. You can also apply thisshape
toListView
items. - tim_taller