Browse Source

Nicer UI for Streams fragment

1.4.x
Geoffrey Métais 12 years ago
parent
commit
1a5da57e83
  1. 47
      vlc-android/res/layout/mrl_item.xml
  2. 3
      vlc-android/res/layout/mrl_panel.xml

47
vlc-android/res/layout/mrl_item.xml

@ -1,21 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="50dp">
<TextView
android:id="@+id/mrl_item_uri"
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="50dp"
card_view:cardUseCompatPadding="true"
card_view:cardElevation="1sp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:clickable="true"
android:layout_toLeftOf="@+id/mrl_item_delete"
android:gravity="center_vertical"/>
<ImageView
android:id="@+id/mrl_item_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:src="@drawable/ic_trash_small_normal"
android:clickable="true"
android:paddingRight="5dp"/>
</RelativeLayout>
android:layout_height="wrap_content">
<TextView
android:id="@+id/mrl_item_uri"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:clickable="true"
android:layout_toLeftOf="@+id/mrl_item_delete"
android:gravity="center_vertical"/>
<ImageView
android:id="@+id/mrl_item_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:src="@drawable/ic_trash_small_normal"
android:clickable="true"
android:paddingRight="5dp"/>
</RelativeLayout>
</android.support.v7.widget.CardView>

3
vlc-android/res/layout/mrl_panel.xml

@ -9,11 +9,14 @@
android:layout_margin="10dp"
android:hint="@string/open_mrl_dialog_msg"
android:inputType="textUri"
android:maxLines="2"
android:imeOptions="actionGo"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/mrl_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="15dp"
android:layout_marginLeft="15dp"
android:layout_below="@+id/mrl_edit"/>
</RelativeLayout>
Loading…
Cancel
Save