experimental: move to tablelayout for headline rows to simplify things a bit

This commit is contained in:
Andrew Dolgov 2014-10-25 01:27:26 +04:00
parent 5778c3beff
commit 81282a29db
4 changed files with 488 additions and 440 deletions

View File

@ -10,151 +10,163 @@
card_view:cardBackgroundColor="?headlineNormalBackground" card_view:cardBackgroundColor="?headlineNormalBackground"
tools:ignore="HardcodedText" > tools:ignore="HardcodedText" >
<LinearLayout <TableLayout
android:id="@+id/inner_row" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="match_parent" android:padding="4dp"
android:orientation="vertical" android:baselineAligned="false"
android:paddingBottom="2dp" android:shrinkColumns="0,1"
android:paddingLeft="6dp" android:stretchColumns="0,1">
android:paddingRight="6dp"
android:paddingTop="6dp" >
<LinearLayout
android:id="@+id/linearLayout6" <TableRow
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="false" android:singleLine="false"
android:text="Sample entry title" android:text="Sample entry title"
android:textColor="?headlineTextColor" android:textColor="?headlineUnreadTextColor"
android:textSize="18sp" /> android:textSize="18sp"
</LinearLayout> android:paddingBottom="4dp"
android:layout_span="2" />
</TableRow>
<LinearLayout <TableRow
android:id="@+id/linearLayout1" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingTop="3dp" >
<TextView <TextView
android:id="@+id/feed_title" android:id="@+id/feed_title"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:fontFamily="sans-serif-light"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="true" android:singleLine="true"
android:text="Example Feed" android:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
android:fontFamily="sans-serif-light"
android:textColor="?headlineSecondaryTextColor" android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" /> android:textSize="12sp"
android:layout_weight="0.5" />
<TextView <TextView
android:id="@+id/date" android:id="@+id/date"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right|center_vertical"
android:text="Jan 01, 12:00"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"
android:gravity="right|center_vertical"
android:singleLine="true"
android:ellipsize="none"
android:text="Jan 01, 12:00, 1970"
android:textColor="?headlineSecondaryTextColor" android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" /> android:textSize="12sp"
</LinearLayout> android:layout_weight="0.5" />
</TableRow>
<FrameLayout <TableRow
android:id="@+id/flavorImageHolder" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:padding="10dp" >
<org.fox.ttrss.util.EnlargingImageView <FrameLayout
android:id="@+id/flavor_image" android:id="@+id/flavorImageHolder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:padding="10dp"
android:adjustViewBounds="true" android:layout_span="2">
android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter"
android:cropToPadding="true"
android:padding="2dp"
android:visibility="gone" />
</FrameLayout>
<TextView <org.fox.ttrss.util.EnlargingImageView
android:id="@+id/excerpt" android:id="@+id/flavor_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:paddingTop="3dp" android:layout_gravity="center"
android:lineSpacingExtra="2sp" android:adjustViewBounds="true"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." android:background="@drawable/flavor_image_border"
android:textColor="?headlineExcerptTextColor" android:scaleType="fitCenter"
android:textSize="13sp" /> android:cropToPadding="true"
android:padding="2dp"
android:visibility="visible" />
</FrameLayout>
</TableRow>
<LinearLayout <TableRow
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:gravity="center_vertical" >
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:focusable="false" />
<TextView <TextView
android:id="@+id/author" android:id="@+id/excerpt"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:lineSpacingExtra="2sp"
android:ellipsize="end" android:paddingTop="3dp"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp"
android:layout_span="2" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="true" android:layout_span="2">
android:text="by Author"
android:fontFamily="sans-serif-light"
android:textStyle="italic"
android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" />
<ImageView <CheckBox
android:id="@+id/marked" android:id="@+id/selected"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="8dp" android:layout_weight="0"
android:layout_weight="0" android:focusable="false" />
android:clickable="true"
android:src="@drawable/ic_star_empty" />
<ImageView <TextView
android:id="@+id/published" android:id="@+id/author"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginRight="6dp" android:layout_weight="1"
android:layout_weight="0" android:ellipsize="end"
android:clickable="true" android:fontFamily="sans-serif-light"
android:src="@drawable/ic_unpublished" /> android:gravity="center_vertical"
android:singleLine="true"
android:text="by Author"
android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp"
android:textStyle="italic" />
<ImageView <ImageView
android:id="@+id/article_menu_button" android:id="@+id/marked"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0" android:layout_marginRight="8dp"
android:paddingLeft="6dp" android:layout_weight="0"
android:paddingRight="6dp" android:clickable="true"
android:src="@drawable/ic_action_overflow" /> android:src="@drawable/ic_star_empty" />
</LinearLayout>
</LinearLayout> <ImageView
android:id="@+id/published"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="6dp"
android:layout_weight="0"
android:clickable="true"
android:src="@drawable/ic_unpublished" />
<ImageView
android:id="@+id/article_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:src="@drawable/ic_action_overflow" />
</LinearLayout>
</TableRow>
</TableLayout>
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>

View File

@ -10,151 +10,163 @@
card_view:cardBackgroundColor="?headlineSelectedBackground" card_view:cardBackgroundColor="?headlineSelectedBackground"
tools:ignore="HardcodedText" > tools:ignore="HardcodedText" >
<LinearLayout <TableLayout
android:id="@+id/inner_row" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="match_parent" android:padding="4dp"
android:orientation="vertical" android:baselineAligned="false"
android:paddingBottom="2dp" android:shrinkColumns="0,1"
android:paddingLeft="6dp" android:stretchColumns="0,1">
android:paddingRight="6dp"
android:paddingTop="6dp" >
<LinearLayout
android:id="@+id/linearLayout6" <TableRow
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="false" android:singleLine="false"
android:text="Sample entry title" android:text="Sample entry title"
android:textColor="?attr/headlineSelectedTextColor" android:textColor="?headlineSelectedTextColor"
android:textSize="18sp" /> android:textSize="18sp"
</LinearLayout> android:paddingBottom="4dp"
android:layout_span="2" />
</TableRow>
<LinearLayout <TableRow
android:id="@+id/linearLayout1" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingTop="3dp" >
<TextView <TextView
android:id="@+id/feed_title" android:id="@+id/feed_title"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:fontFamily="sans-serif-light"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="true" android:singleLine="true"
android:fontFamily="sans-serif-light" android:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
android:text="Example Feed"
android:textColor="?headlineSelectedSecondaryTextColor" android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp" /> android:textSize="12sp"
android:layout_weight="0.5" />
<TextView <TextView
android:id="@+id/date" android:id="@+id/date"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right|center_vertical"
android:text="Jan 01, 12:00"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"
android:gravity="right|center_vertical"
android:singleLine="true"
android:ellipsize="none"
android:text="Jan 01, 12:00, 1970"
android:textColor="?headlineSelectedSecondaryTextColor" android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp" /> android:textSize="12sp"
</LinearLayout> android:layout_weight="0.5" />
</TableRow>
<FrameLayout <TableRow
android:id="@+id/flavorImageHolder" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:padding="10dp" >
<org.fox.ttrss.util.EnlargingImageView <FrameLayout
android:id="@+id/flavor_image" android:id="@+id/flavorImageHolder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:padding="10dp"
android:adjustViewBounds="true" android:layout_span="2">
android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter"
android:cropToPadding="true"
android:padding="2dp"
android:visibility="gone" />
</FrameLayout>
<TextView <org.fox.ttrss.util.EnlargingImageView
android:id="@+id/excerpt" android:id="@+id/flavor_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:paddingTop="3dp" android:layout_gravity="center"
android:lineSpacingExtra="2sp" android:adjustViewBounds="true"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." android:background="@drawable/flavor_image_border"
android:textColor="?headlineSelectedExcerptTextColor" android:scaleType="fitCenter"
android:textSize="13sp" /> android:cropToPadding="true"
android:padding="2dp"
android:visibility="visible" />
</FrameLayout>
</TableRow>
<LinearLayout <TableRow
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:gravity="center_vertical" >
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:focusable="false" />
<TextView <TextView
android:id="@+id/author" android:id="@+id/excerpt"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:lineSpacingExtra="2sp"
android:ellipsize="end" android:paddingTop="3dp"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
android:textColor="?headlineSelectedExcerptTextColor"
android:textSize="13sp"
android:layout_span="2" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="true" android:layout_span="2">
android:text="by Author"
android:fontFamily="sans-serif-light"
android:textStyle="italic"
android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp" />
<ImageView <CheckBox
android:id="@+id/marked" android:id="@+id/selected"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="8dp" android:layout_weight="0"
android:layout_weight="0" android:focusable="false" />
android:clickable="true"
android:src="@drawable/ic_star_empty" />
<ImageView <TextView
android:id="@+id/published" android:id="@+id/author"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginRight="6dp" android:layout_weight="1"
android:layout_weight="0" android:ellipsize="end"
android:clickable="true" android:fontFamily="sans-serif-light"
android:src="@drawable/ic_unpublished" /> android:gravity="center_vertical"
android:singleLine="true"
android:text="by Author"
android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp"
android:textStyle="italic" />
<ImageView <ImageView
android:id="@+id/article_menu_button" android:id="@+id/marked"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0" android:layout_marginRight="8dp"
android:paddingLeft="6dp" android:layout_weight="0"
android:paddingRight="6dp" android:clickable="true"
android:src="@drawable/ic_action_overflow" /> android:src="@drawable/ic_star_empty" />
</LinearLayout>
</LinearLayout> <ImageView
android:id="@+id/published"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="6dp"
android:layout_weight="0"
android:clickable="true"
android:src="@drawable/ic_unpublished" />
<ImageView
android:id="@+id/article_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:src="@drawable/ic_action_overflow" />
</LinearLayout>
</TableRow>
</TableLayout>
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>

View File

@ -10,152 +10,164 @@
card_view:cardBackgroundColor="?headlineSelectedBackground" card_view:cardBackgroundColor="?headlineSelectedBackground"
tools:ignore="HardcodedText" > tools:ignore="HardcodedText" >
<LinearLayout <TableLayout
android:id="@+id/inner_row" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="match_parent" android:padding="4dp"
android:orientation="vertical" android:baselineAligned="false"
android:paddingBottom="2dp" android:shrinkColumns="0,1"
android:paddingLeft="6dp" android:stretchColumns="0,1">
android:paddingRight="6dp"
android:paddingTop="6dp" >
<LinearLayout
android:id="@+id/linearLayout6" <TableRow
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="false" android:singleLine="false"
android:text="Sample entry title" android:text="Sample entry title"
android:textColor="?headlineSelectedTextColor" android:textColor="?headlineSelectedTextColor"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" /> android:textStyle="bold"
</LinearLayout> android:paddingBottom="4dp"
android:layout_span="2" />
</TableRow>
<LinearLayout <TableRow
android:id="@+id/linearLayout1" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingTop="3dp" >
<TextView <TextView
android:id="@+id/feed_title" android:id="@+id/feed_title"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:fontFamily="sans-serif-light"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="true" android:singleLine="true"
android:text="Example Feed" android:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
android:fontFamily="sans-serif-light"
android:textColor="?headlineSelectedSecondaryTextColor" android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp" /> android:textSize="12sp"
android:layout_weight="0.5" />
<TextView <TextView
android:id="@+id/date" android:id="@+id/date"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right|center_vertical"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"
android:text="Jan 01, 12:00" android:gravity="right|center_vertical"
android:singleLine="true"
android:ellipsize="none"
android:text="Jan 01, 12:00, 1970"
android:textColor="?headlineSelectedSecondaryTextColor" android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp" /> android:textSize="12sp"
</LinearLayout> android:layout_weight="0.5" />
</TableRow>
<FrameLayout <TableRow
android:id="@+id/flavorImageHolder" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:padding="10dp" >
<org.fox.ttrss.util.EnlargingImageView <FrameLayout
android:id="@+id/flavor_image" android:id="@+id/flavorImageHolder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:padding="10dp"
android:adjustViewBounds="true" android:layout_span="2">
android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter"
android:cropToPadding="true"
android:padding="2dp"
android:visibility="gone" />
</FrameLayout>
<TextView <org.fox.ttrss.util.EnlargingImageView
android:id="@+id/excerpt" android:id="@+id/flavor_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:paddingTop="3dp" android:layout_gravity="center"
android:lineSpacingExtra="2sp" android:adjustViewBounds="true"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." android:background="@drawable/flavor_image_border"
android:textColor="?headlineSelectedExcerptTextColor" android:scaleType="fitCenter"
android:textSize="13sp" /> android:cropToPadding="true"
android:padding="2dp"
android:visibility="visible" />
</FrameLayout>
</TableRow>
<LinearLayout <TableRow
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:gravity="center_vertical" >
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:focusable="false" />
<TextView <TextView
android:id="@+id/author" android:id="@+id/excerpt"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:lineSpacingExtra="2sp"
android:ellipsize="end" android:paddingTop="3dp"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
android:textColor="?headlineSelectedExcerptTextColor"
android:textSize="13sp"
android:layout_span="2" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="true" android:layout_span="2">
android:text="by Author"
android:fontFamily="sans-serif-light"
android:textStyle="italic"
android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp" />
<ImageView <CheckBox
android:id="@+id/marked" android:id="@+id/selected"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="8dp" android:layout_weight="0"
android:layout_weight="0" android:focusable="false" />
android:clickable="true"
android:src="@drawable/ic_star_empty" />
<ImageView <TextView
android:id="@+id/published" android:id="@+id/author"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginRight="6dp" android:layout_weight="1"
android:layout_weight="0" android:ellipsize="end"
android:clickable="true" android:fontFamily="sans-serif-light"
android:src="@drawable/ic_unpublished" /> android:gravity="center_vertical"
android:singleLine="true"
android:text="by Author"
android:textColor="?headlineSelectedSecondaryTextColor"
android:textSize="12sp"
android:textStyle="italic" />
<ImageView <ImageView
android:id="@+id/article_menu_button" android:id="@+id/marked"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0" android:layout_marginRight="8dp"
android:paddingLeft="6dp" android:layout_weight="0"
android:paddingRight="6dp" android:clickable="true"
android:src="@drawable/ic_action_overflow" /> android:src="@drawable/ic_star_empty" />
</LinearLayout>
</LinearLayout> <ImageView
android:id="@+id/published"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="6dp"
android:layout_weight="0"
android:clickable="true"
android:src="@drawable/ic_unpublished" />
<ImageView
android:id="@+id/article_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:src="@drawable/ic_action_overflow" />
</LinearLayout>
</TableRow>
</TableLayout>
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>

View File

@ -10,152 +10,164 @@
card_view:cardBackgroundColor="?headlineUnreadBackground" card_view:cardBackgroundColor="?headlineUnreadBackground"
tools:ignore="HardcodedText" > tools:ignore="HardcodedText" >
<LinearLayout <TableLayout
android:id="@+id/inner_row" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="match_parent" android:padding="4dp"
android:orientation="vertical" android:baselineAligned="false"
android:paddingBottom="2dp" android:shrinkColumns="0,1"
android:paddingLeft="6dp" android:stretchColumns="0,1">
android:paddingRight="6dp"
android:paddingTop="6dp" >
<LinearLayout
android:id="@+id/linearLayout6" <TableRow
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="false" android:singleLine="false"
android:text="Sample entry title" android:text="Sample entry title"
android:textColor="?headlineUnreadTextColor" android:textColor="?headlineUnreadTextColor"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" /> android:textStyle="bold"
</LinearLayout> android:paddingBottom="4dp"
android:layout_span="2" />
</TableRow>
<LinearLayout <TableRow
android:id="@+id/linearLayout1" android:layout_width="fill_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingTop="3dp" >
<TextView <TextView
android:id="@+id/feed_title" android:id="@+id/feed_title"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"
android:gravity="center_vertical" android:gravity="center_vertical"
android:singleLine="true" android:singleLine="true"
android:text="Example Feed" android:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
android:textColor="?headlineSecondaryTextColor" android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" /> android:textSize="12sp"
android:layout_weight="0.5" />
<TextView <TextView
android:id="@+id/date" android:id="@+id/date"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"
android:gravity="right|center_vertical" android:gravity="right|center_vertical"
android:text="Jan 01, 12:00"
android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" />
</LinearLayout>
<FrameLayout
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp" >
<org.fox.ttrss.util.EnlargingImageView
android:id="@+id/flavor_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter"
android:cropToPadding="true"
android:padding="2dp"
android:visibility="gone" />
</FrameLayout>
<TextView
android:id="@+id/excerpt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:lineSpacingExtra="2sp"
android:paddingTop="3dp"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical" >
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:focusable="false" />
<TextView
android:id="@+id/author"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:fontFamily="sans-serif-light"
android:gravity="center_vertical"
android:singleLine="true" android:singleLine="true"
android:text="by Author" android:ellipsize="none"
android:text="Jan 01, 12:00, 1970"
android:textColor="?headlineSecondaryTextColor" android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" android:textSize="12sp"
android:textStyle="italic" /> android:layout_weight="0.5" />
</TableRow>
<ImageView <TableRow
android:id="@+id/marked" android:layout_width="fill_parent"
android:layout_width="wrap_content" android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_weight="0"
android:clickable="true"
android:src="@drawable/ic_star_empty" />
<ImageView <FrameLayout
android:id="@+id/published" android:id="@+id/flavorImageHolder"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="6dp" android:padding="10dp"
android:layout_weight="0" android:layout_span="2">
android:clickable="true"
android:src="@drawable/ic_unpublished" />
<ImageView <org.fox.ttrss.util.EnlargingImageView
android:id="@+id/article_menu_button" android:id="@+id/flavor_image"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter"
android:cropToPadding="true"
android:padding="2dp"
android:visibility="visible" />
</FrameLayout>
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/excerpt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:lineSpacingExtra="2sp"
android:paddingTop="3dp"
android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp"
android:layout_span="2" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0" android:gravity="center_vertical"
android:paddingLeft="6dp" android:layout_span="2">
android:paddingRight="6dp"
android:src="@drawable/ic_action_overflow" /> <CheckBox
</LinearLayout> android:id="@+id/selected"
</LinearLayout> android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:focusable="false" />
<TextView
android:id="@+id/author"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:fontFamily="sans-serif-light"
android:gravity="center_vertical"
android:singleLine="true"
android:text="by Author"
android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp"
android:textStyle="italic" />
<ImageView
android:id="@+id/marked"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_weight="0"
android:clickable="true"
android:src="@drawable/ic_star_empty" />
<ImageView
android:id="@+id/published"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="6dp"
android:layout_weight="0"
android:clickable="true"
android:src="@drawable/ic_unpublished" />
<ImageView
android:id="@+id/article_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:src="@drawable/ic_action_overflow" />
</LinearLayout>
</TableRow>
</TableLayout>
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>