ellipsize long feed titles

This commit is contained in:
Andrew Dolgov 2013-05-28 14:50:03 +04:00
parent ef98f624f2
commit 3fcdae62aa
4 changed files with 7 additions and 58 deletions

View File

@ -1,55 +0,0 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="?headlinesBackgroundSolid"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/sw600dp_anchor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" >
</FrameLayout>
<LinearLayout
android:id="@+id/loading_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:visibility="gone" >
<TextView
android:id="@+id/loading_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
<LinearLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:weightSum="1.05"
android:orientation="horizontal" >
<FrameLayout
android:id="@+id/feeds_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?feedlistBackground" >
</FrameLayout>
<FrameLayout
android:id="@+id/headlines_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="?headlinesBackground" >
</FrameLayout>
</LinearLayout>
</LinearLayout>

View File

@ -32,14 +32,14 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:baselineAligned="false" android:baselineAligned="false"
android:weightSum="1.05" android:weightSum="1.3"
android:orientation="horizontal" > android:orientation="horizontal" >
<FrameLayout <FrameLayout
android:id="@+id/feeds_fragment" android:id="@+id/feeds_fragment"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1.1"
android:background="?feedlistBackground" > android:background="?feedlistBackground" >
</FrameLayout> </FrameLayout>
@ -47,7 +47,7 @@
android:id="@+id/headlines_fragment" android:id="@+id/headlines_fragment"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="2" android:layout_weight="1.9"
android:background="?headlinesBackground" > android:background="?headlinesBackground" >
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>

View File

@ -27,6 +27,8 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="1" android:layout_weight="1"
android:paddingLeft="8dip" android:paddingLeft="8dip"
android:singleLine="true"
android:ellipsize="end"
android:text="{FEED}" android:text="{FEED}"
android:textColor="?feedlistTextColor" android:textColor="?feedlistTextColor"
android:textSize="18dip" /> android:textSize="18dip" />

View File

@ -27,6 +27,8 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="1" android:layout_weight="1"
android:paddingLeft="6dip" android:paddingLeft="6dip"
android:singleLine="true"
android:ellipsize="end"
android:text="{FEED}" android:text="{FEED}"
android:textColor="?feedlistSelectedTextColor" android:textColor="?feedlistSelectedTextColor"
android:textSize="18dip" /> android:textSize="18dip" />