Skip to content

Commit

Permalink
Use default TextView instead of custom TypefacedTextView in hosts lis…
Browse files Browse the repository at this point in the history
…t to improve scrolling performance drastically
  • Loading branch information
Nilhcem committed May 7, 2013
1 parent 0acb265 commit 912ce11
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions res/layout/checkable_host_item.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.nilhcem.hostseditor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="4dp"
android:paddingTop="4dp" >

<!-- Left part (IP) -->
<com.nilhcem.hostseditor.widget.TypefacedTextView
<TextView
android:id="@+id/hostItemIp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -17,8 +16,7 @@
android:paddingLeft="8dp"
android:paddingRight="18dp"
android:textIsSelectable="false"
android:textSize="16sp"
app:typeface="fonts/Roboto-Regular.ttf" />
android:textSize="16sp" />

<!-- Middle part (hostname/comment) -->
<LinearLayout
Expand All @@ -31,25 +29,23 @@
android:orientation="vertical" >

<!-- Hostname -->
<com.nilhcem.hostseditor.widget.TypefacedTextView
<TextView
android:id="@+id/hostItemHostname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="false"
android:textIsSelectable="false"
android:textSize="16sp"
app:typeface="fonts/Roboto-Regular.ttf" />
android:textSize="16sp" />

<!-- Comment -->
<com.nilhcem.hostseditor.widget.TypefacedTextView
<TextView
android:id="@+id/hostItemComment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="false"
android:textColor="@color/list_hosts_comment"
android:textSize="12sp"
android:visibility="gone"
app:typeface="fonts/Roboto-Italic.ttf" />
android:visibility="gone" />
</LinearLayout>

<!-- Right part (checkbox) -->
Expand Down

0 comments on commit 912ce11

Please sign in to comment.