Commit 03ede77b authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Highlight device when selected from the main activity list.

I had to include the style files, made with
because, from kitkat on, the background color of highlighted elements is
gray instead of blue, but that's not reflected in the resources included
in the support library v7 appcompat jar, that are still blue.
parent 6afbe93c
......@@ -4,6 +4,7 @@ package org.kde.kdeconnect.UserInterface.List;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView;
......@@ -24,7 +25,10 @@ public class DeviceItem implements ListAdapter.Item {
public View inflateView(LayoutInflater layoutInflater) {
View v = layoutInflater.inflate(R.layout.list_item_entry, null);
final View v = layoutInflater.inflate(R.layout.list_item_entry, null);
//Highlight when selected effect
TextView titleView = (TextView)v.findViewById(;
if (titleView != null) titleView.setText(device.getName());
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