various more layout tweaks

This commit is contained in:
Andrew Dolgov 2012-12-31 14:21:57 +04:00
parent f29014eb2f
commit 09c3fdf39c
7 changed files with 116 additions and 166 deletions

View File

@ -26,12 +26,17 @@
android:textSize="16sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="match_parent"
<TextView
android:id="@+id/feed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
android:layout_weight="0"
android:ellipsize="end"
android:gravity="right"
android:singleLine="true"
android:text="{Feed title...}"
android:textColor="?headlineExcerptTextColor"
android:textSize="10sp" />
<TextView
android:id="@+id/excerpt"
@ -41,7 +46,6 @@
android:text="Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout4"
@ -49,7 +53,8 @@
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center"
android:orientation="horizontal" >
android:orientation="horizontal"
android:paddingRight="4dp" >
<CheckBox
android:id="@+id/selected"
@ -68,18 +73,6 @@
android:textSize="10sp"
android:textStyle="italic" />
<TextView
android:id="@+id/feed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:ellipsize="end"
android:gravity="right"
android:singleLine="true"
android:text="{Feed title...}"
android:textColor="?headlineExcerptTextColor"
android:textSize="10sp" />
<ImageView
android:id="@+id/marked"
android:layout_width="wrap_content"

View File

@ -26,12 +26,17 @@
android:textSize="16sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="match_parent"
<TextView
android:id="@+id/feed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
android:layout_weight="0"
android:ellipsize="end"
android:gravity="right"
android:singleLine="true"
android:text="{Feed title...}"
android:textColor="?headlineSelectedExcerptTextColor"
android:textSize="10sp" />
<TextView
android:id="@+id/excerpt"
@ -41,7 +46,6 @@
android:text="Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
android:textColor="?headlineSelectedExcerptTextColor"
android:textSize="13sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout4"
@ -49,7 +53,8 @@
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center"
android:orientation="horizontal" >
android:orientation="horizontal"
android:paddingRight="4dp" >
<CheckBox
android:id="@+id/selected"
@ -68,18 +73,6 @@
android:textSize="10sp"
android:textStyle="italic" />
<TextView
android:id="@+id/feed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:ellipsize="end"
android:gravity="right"
android:singleLine="true"
android:text="{Feed title...}"
android:textColor="?headlineSelectedExcerptTextColor"
android:textSize="10sp" />
<ImageView
android:id="@+id/marked"
android:layout_width="wrap_content"

View File

@ -26,12 +26,17 @@
android:textSize="16sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="match_parent"
<TextView
android:id="@+id/feed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
android:layout_weight="0"
android:ellipsize="end"
android:gravity="right"
android:singleLine="true"
android:text="{Feed title...}"
android:textColor="?headlineExcerptTextColor"
android:textSize="10sp" />
<TextView
android:id="@+id/excerpt"
@ -41,7 +46,6 @@
android:text="Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout4"
@ -49,7 +53,8 @@
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center"
android:orientation="horizontal" >
android:orientation="horizontal"
android:paddingRight="4dp" >
<CheckBox
android:id="@+id/selected"
@ -68,18 +73,6 @@
android:textSize="10sp"
android:textStyle="italic" />
<TextView
android:id="@+id/feed_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:ellipsize="end"
android:gravity="right"
android:singleLine="true"
android:text="{Feed title...}"
android:textColor="?headlineExcerptTextColor"
android:textSize="10sp" />
<ImageView
android:id="@+id/marked"
android:layout_width="wrap_content"

View File

@ -27,7 +27,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical" >
android:orientation="vertical"
android:padding="3dp" >
<TextView
android:id="@+id/title"
@ -74,37 +75,26 @@
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingRight="2sp" >
android:paddingRight="6dp" >
<ImageView
android:id="@+id/marked"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:src="@android:drawable/star_off" >
</ImageView>
android:src="@android:drawable/star_off" />
<ImageView
android:id="@+id/published"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:src="@drawable/ic_rss_bw" >
</ImageView>
</LinearLayout>
android:src="@drawable/ic_rss_bw" />
</LinearLayout>
</LinearLayout>

View File

@ -27,7 +27,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical" >
android:orientation="vertical"
android:padding="3dp" >
<TextView
android:id="@+id/title"
@ -74,37 +75,26 @@
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingRight="2sp" >
android:paddingRight="6dp" >
<ImageView
android:id="@+id/marked"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:src="@android:drawable/star_off" >
</ImageView>
android:src="@android:drawable/star_off" />
<ImageView
android:id="@+id/published"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:src="@drawable/ic_rss_bw" >
</ImageView>
</LinearLayout>
android:src="@drawable/ic_rss_bw" />
</LinearLayout>
</LinearLayout>

View File

@ -27,7 +27,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical" >
android:orientation="vertical"
android:padding="3dp" >
<TextView
android:id="@+id/title"
@ -74,37 +75,26 @@
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingRight="2sp" >
android:paddingRight="6dp" >
<ImageView
android:id="@+id/marked"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:src="@android:drawable/star_off" >
</ImageView>
android:src="@android:drawable/star_off" />
<ImageView
android:id="@+id/published"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:src="@drawable/ic_rss_bw" >
</ImageView>
</LinearLayout>
android:src="@drawable/ic_rss_bw" />
</LinearLayout>
</LinearLayout>

View File

@ -589,9 +589,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (ft != null) {
if (article.feed_title != null && (m_feed.is_cat || m_feed.id < 0)) {
if (article.feed_title.length() > 20)
/* if (article.feed_title.length() > 20)
ft.setText(article.feed_title.substring(0, 20) + "...");
else
else */
ft.setText(article.feed_title);
} else {