[Android] [PATCH] res: rename action_bar_layout (cosmetic)
Thomas Guillem
thomas.guillem at gmail.com
Fri Oct 3 17:47:13 CEST 2014
It's only used for Player hence the new name.
---
vlc-android/res/layout-v17/action_bar_layout.xml | 21 ---------------------
vlc-android/res/layout-v17/player_action_bar.xml | 21 +++++++++++++++++++++
.../videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
3 files changed, 22 insertions(+), 22 deletions(-)
delete mode 100644 vlc-android/res/layout-v17/action_bar_layout.xml
create mode 100644 vlc-android/res/layout-v17/player_action_bar.xml
diff --git a/vlc-android/res/layout-v17/action_bar_layout.xml b/vlc-android/res/layout-v17/action_bar_layout.xml
deleted file mode 100644
index c6ba0eb..0000000
--- a/vlc-android/res/layout-v17/action_bar_layout.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
-
- <TextView
- android:id="@+id/player_overlay_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="top"
- android:background="?attr/status_bar_overlay"
- android:text="@string/title"
- android:textColor="#ffffff"
- android:paddingLeft="5dp"
- android:paddingRight="5dp"
- android:textSize="15sp"
- android:shadowColor="@color/black"
- android:shadowDx="3"
- android:shadowDy="3"
- android:shadowRadius="1.5" />
-</RelativeLayout>
diff --git a/vlc-android/res/layout-v17/player_action_bar.xml b/vlc-android/res/layout-v17/player_action_bar.xml
new file mode 100644
index 0000000..c6ba0eb
--- /dev/null
+++ b/vlc-android/res/layout-v17/player_action_bar.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" >
+
+ <TextView
+ android:id="@+id/player_overlay_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="top"
+ android:background="?attr/status_bar_overlay"
+ android:text="@string/title"
+ android:textColor="#ffffff"
+ android:paddingLeft="5dp"
+ android:paddingRight="5dp"
+ android:textSize="15sp"
+ android:shadowColor="@color/black"
+ android:shadowDx="3"
+ android:shadowDy="3"
+ android:shadowRadius="1.5" />
+</RelativeLayout>
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 5edd94a..548be69 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -303,7 +303,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
mActionBar.setDisplayShowTitleEnabled(false);
mActionBar.setBackgroundDrawable(null);
mActionBar.setDisplayShowCustomEnabled(true);
- mActionBar.setCustomView(R.layout.action_bar_layout);
+ mActionBar.setCustomView(R.layout.player_action_bar);
ViewGroup view = (ViewGroup) mActionBar.getCustomView();
/* Dispatch ActionBar touch events to the Activity */
--
2.1.0
More information about the Android
mailing list