Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
56da0db6
Commit
56da0db6
authored
Feb 20, 2015
by
Geoffrey Métais
Browse files
Borderless button for 'DELETE' in info panel
parent
caa022bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
vlc-android/res/layout-land/media_info.xml
View file @
56da0db6
<?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"
...
...
vlc-android/res/layout/media_info.xml
View file @
56da0db6
<?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
...
...
vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
View file @
56da0db6
...
...
@@ -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
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment