]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/bookmarks_item_linearlayout.xml
Improve the scrolling of bookmarks. https://redmine.stoutner.com/issues/42.
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / bookmarks_item_linearlayout.xml
index 408844fe7e82ba4444c9dbc9e535722dc928fc23..9a27fb90c12dbcc03115c7c81904734103b22ec7 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!--
-  Copyright 2016 Soren Stoutner <soren@stoutner.com>.
+  Copyright © 2016-2017 Soren Stoutner <soren@stoutner.com>.
 
   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
 
 <LinearLayout
     android:id="@+id/bookmarks_item_linearlayout"
     xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
     android:layout_height="wrap_content"
     android:layout_width="match_parent"
     android:orientation="horizontal"
-    android:background="@drawable/bookmarks_list_selector"
-    xmlns:tools="http://schemas.android.com/tools">
+    android:background="?attr/listSelectorDrawable" >
 
     <ImageView
         android:id="@+id/bookmark_favorite_icon"
@@ -39,8 +39,9 @@
         android:id="@+id/bookmark_name"
         android:layout_height="wrap_content"
         android:layout_width="wrap_content"
-        android:textColor="@color/black"
+        android:textColor="?android:attr/textColorPrimary"
         android:textSize="22sp"
         android:layout_margin="10dp"
-        android:singleLine="true" />
+        android:maxLines="1"
+        android:ellipsize="end" />
 </LinearLayout>
\ No newline at end of file