Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
319
Issues
319
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Android
Commits
34b2a839
Commit
34b2a839
authored
Feb 17, 2017
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nicer selection of contiguous list items
parent
5a956d2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
vlc-android/res/layout/audio_browser_item.xml
vlc-android/res/layout/audio_browser_item.xml
+2
-2
vlc-android/res/layout/history_item.xml
vlc-android/res/layout/history_item.xml
+2
-2
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
...d/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
+1
-2
No files found.
vlc-android/res/layout/audio_browser_item.xml
View file @
34b2a839
...
...
@@ -22,8 +22,8 @@
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:
layout_margin
Bottom=
"10dp"
android:
layout_margin
Top=
"10dp"
android:
padding
Bottom=
"10dp"
android:
padding
Top=
"10dp"
android:longClickable=
"true"
android:clickable=
"true"
android:focusable=
"@{item.getItemType() != MediaLibraryItem.TYPE_DUMMY}"
...
...
vlc-android/res/layout/history_item.xml
View file @
34b2a839
...
...
@@ -21,8 +21,8 @@
android:background=
"@{bgColor}"
android:clickable=
"true"
android:onClick=
"@{holder::onClick}"
android:
layout_margin
Bottom=
"4dp"
android:
layout_margin
Top=
"4dp"
android:
padding
Bottom=
"4dp"
android:
padding
Top=
"4dp"
android:onLongClick=
"@{holder::onLongClick}"
>
<ImageView
android:id=
"@+id/icon"
...
...
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
View file @
34b2a839
...
...
@@ -381,8 +381,7 @@ public class AudioBrowserAdapter extends RecyclerView.Adapter<AudioBrowserAdapte
private
void
setViewBackground
(
boolean
focused
,
boolean
selected
)
{
itemView
.
setBackgroundColor
(
focused
?
UiTools
.
ITEM_FOCUS_ON
:
UiTools
.
ITEM_FOCUS_OFF
);
int
selectionColor
=
selected
?
UiTools
.
ITEM_SELECTION_ON
:
0
;
vdb
.
audioItemMeta
.
setBackgroundColor
(
selectionColor
);
vdb
.
itemMore
.
setBackgroundColor
(
selectionColor
);
itemView
.
setBackgroundColor
(
selectionColor
);
}
}
...
...
Write
Preview
Markdown
is supported
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