card layout updates

This commit is contained in:
Andrew Dolgov 2015-02-12 14:48:57 +03:00
parent 9ac66287a2
commit a7e86f29de
6 changed files with 38 additions and 29 deletions

View File

@ -459,11 +459,16 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
startActivityForResult(intent, HEADLINES_REQUEST);
} */
if (!isPortrait() && !isSmallScreen()) {
View sharedList = hf.getView().findViewById(R.id.headlines_list);
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this, sharedList, "TRANSITION:HEADLINES_LIST");
ActivityCompat.startActivityForResult(this, intent, HEADLINES_REQUEST, options.toBundle());
} else {
ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this);
ActivityCompat.startActivityForResult(this, intent, HEADLINES_REQUEST, options.toBundle());
}
} else {
invalidateOptionsMenu();

13
org.fox.ttrss/src/main/res/layout/headlines_row.xml Normal file → Executable file
View File

@ -14,7 +14,7 @@
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="4dp"
android:padding="8dp"
android:baselineAligned="false"
android:shrinkColumns="0,1"
android:stretchColumns="0,1">
@ -33,7 +33,7 @@
android:text="Sample entry title"
android:textColor="?headlineUnreadTextColor"
android:textSize="18sp"
android:paddingBottom="4dp"
android:paddingBottom="8dp"
android:layout_span="2" />
</TableRow>
@ -76,8 +76,8 @@
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="4dp"
android:layout_span="2">
android:layout_span="2"
android:paddingTop="8dp">
<ProgressBar
android:layout_width="wrap_content"
@ -114,13 +114,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:lineSpacingExtra="2sp"
android:paddingTop="3dp"
android:maxLines="5"
android:ellipsize="end"
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" />
android:layout_span="2"
android:paddingBottom="8dp"
android:paddingTop="8dp" />
</TableRow>
<TableRow

View File

@ -14,7 +14,7 @@
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="4dp"
android:padding="8dp"
android:baselineAligned="false"
android:shrinkColumns="0,1"
android:stretchColumns="0,1">
@ -33,7 +33,7 @@
android:text="Sample entry title"
android:textColor="?headlineSelectedTextColor"
android:textSize="18sp"
android:paddingBottom="4dp"
android:paddingBottom="8dp"
android:layout_span="2" />
</TableRow>
@ -76,8 +76,8 @@
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="4dp"
android:layout_span="2">
android:layout_span="2"
android:paddingTop="8dp">
<ProgressBar
android:layout_width="wrap_content"
@ -115,13 +115,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:lineSpacingExtra="2sp"
android:paddingTop="3dp"
android:paddingTop="8dp"
android:maxLines="5"
android:ellipsize="end"
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" />
android:layout_span="2"
android:paddingBottom="8dp" />
</TableRow>
<TableRow

View File

@ -14,7 +14,7 @@
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="4dp"
android:padding="8dp"
android:baselineAligned="false"
android:shrinkColumns="0,1"
android:stretchColumns="0,1">
@ -33,8 +33,8 @@
android:text="Sample entry title"
android:textColor="?headlineSelectedTextColor"
android:textSize="18sp"
android:textStyle="bold"
android:paddingBottom="4dp"
android:fontFamily="sans-serif-medium"
android:paddingBottom="8dp"
android:layout_span="2" />
</TableRow>
@ -77,7 +77,7 @@
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="4dp"
android:paddingTop="8dp"
android:layout_span="2">
<ProgressBar
@ -116,13 +116,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:lineSpacingExtra="2sp"
android:paddingTop="3dp"
android:paddingTop="8dp"
android:maxLines="5"
android:ellipsize="end"
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" />
android:layout_span="2"
android:paddingBottom="8dp" />
</TableRow>
<TableRow

View File

@ -14,7 +14,7 @@
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="4dp"
android:padding="8dp"
android:baselineAligned="false"
android:shrinkColumns="0,1"
android:stretchColumns="0,1">
@ -33,8 +33,8 @@
android:text="Sample entry title"
android:textColor="?headlineUnreadTextColor"
android:textSize="18sp"
android:textStyle="bold"
android:paddingBottom="4dp"
android:fontFamily="sans-serif-medium"
android:paddingBottom="8dp"
android:layout_span="2" />
</TableRow>
@ -77,7 +77,7 @@
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="4dp"
android:paddingTop="8dp"
android:layout_span="2">
<ProgressBar
@ -115,13 +115,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:lineSpacingExtra="2sp"
android:paddingTop="3dp"
android:maxLines="5"
android:ellipsize="end"
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" />
android:layout_span="2"
android:paddingBottom="8dp"
android:paddingTop="8dp" />
</TableRow>
<TableRow

View File

@ -7,14 +7,14 @@
<item name="unreadCounterColor">#909090</item>
<item name="headlinesBackground">#f0f0f0</item>
<item name="articleBackground">@android:color/white</item>
<item name="headlineSelectedBackground">#88b0f0</item>
<item name="headlineSelectedBackground">?feedsSelectedBackground</item>
<item name="headlineUnreadBackground">@android:color/white</item>
<item name="headlineNormalBackground">#f5f5f5</item>
<item name="feedsSelectedBackground">#cccccc</item>
<item name="feedlistTextColor">@android:color/primary_text_light</item>
<item name="feedlistSelectedTextColor">?feedlistTextColor</item>
<item name="headlineUnreadTextColor">@android:color/primary_text_light</item>
<item name="headlineSelectedTextColor">#ffffff</item>
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
<item name="headlineSecondaryTextColor">#909090</item>
<item name="headlineSelectedSecondaryTextColor">?headlineSelectedExcerptTextColor</item>