Commit 56da0db6 authored by Geoffrey Métais's avatar Geoffrey Métais

Borderless button for 'DELETE' in info panel

parent caa022bd
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:baselineAligned="false"
......@@ -86,7 +87,7 @@
android:layout_toRightOf="@+id/size_value"
android:src="@drawable/ic_audiosub_circle_normal_o"
android:visibility="invisible"/>
<TextView
<Button
android:id="@+id/info_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......@@ -95,7 +96,9 @@
android:clickable="true"
android:text="@string/delete"
android:textColor="@color/blue"
android:textAllCaps="true"/>
android:textAllCaps="true"
tools:targetApi="11"
style="?android:attr/borderlessButtonStyle"/>
</RelativeLayout>
<ListView
android:id="@id/android:list"
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white"
......@@ -78,7 +79,7 @@
android:layout_toRightOf="@+id/size_value"
android:src="@drawable/ic_audiosub_circle_normal_o"
android:visibility="invisible"/>
<TextView
<Button
android:id="@+id/info_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......@@ -88,7 +89,9 @@
android:clickable="true"
android:text="@string/delete"
android:textColor="@color/blue"
android:textAllCaps="true"/>
android:textAllCaps="true"
tools:targetApi="11"
style="?android:attr/borderlessButtonStyle"/>
</RelativeLayout>
<ListView
......
......@@ -55,6 +55,7 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
......@@ -70,7 +71,7 @@ public class MediaInfoFragment extends ListFragment {
private TextView mSizeView;
private TextView mPathView;
private ImageButton mPlayButton;
private TextView mDelete;
private Button mDelete;
private ImageView mSubtitles;
private Media mMedia;
private MediaInfoAdapter mAdapter;
......@@ -91,7 +92,7 @@ public class MediaInfoFragment extends ListFragment {
mSizeView = (TextView) v.findViewById(R.id.size_value);
mPathView = (TextView) v.findViewById(R.id.info_path);
mPlayButton = (ImageButton) v.findViewById(R.id.play);
mDelete = (TextView) v.findViewById(R.id.info_delete);
mDelete = (Button) v.findViewById(R.id.info_delete);
mSubtitles = (ImageView) v.findViewById(R.id.info_subtitles);
if (!LibVlcUtil.isICSOrLater())
mDelete.setText(getString(R.string.delete).toUpperCase(Locale.getDefault()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment