How to remove ListView Seperator in XML Layout and programatically

Hey,
Firstly, let’s look at how to remove listview seperator in XML Layout;
This little code segment removes your listView’s seperators. Actually dividerHeight = “0dp” is unnecessary but still use it :)
android:dividerHeight="0dp"
android:divider="@null"
If you want this in programmatically, then you need to use this code segment. Remember, you need to use your listview initialition rather than “getListView()” part.
getListView().setDividerHeight(0);
getListView().setDivider(null);
If you have any question, ask me :)

How to extract filename from Uri?

Now, we can extract filename with and without extension :) You will convert your bitmap to uri and get the real path of your file. Now w...