Skip to content

Commit

Permalink
Cosmetic changes on the article author name , changed to a contrast c…
Browse files Browse the repository at this point in the history
…olor
  • Loading branch information
thatsabhi22 committed May 30, 2020
1 parent fe14e03 commit b680991
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import android.database.Cursor;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.Html;
import android.text.format.DateUtils;
Expand Down Expand Up @@ -41,17 +40,13 @@ public class ArticleDetailFragment extends Fragment implements
LoaderManager.LoaderCallbacks<Cursor> {
public static final String ARG_ITEM_ID = "item_id";
private static final String TAG = "ArticleDetailFragment";
private static final float PARALLAX_FACTOR = 1.25f;

private Cursor mCursor;
private long mItemId;
private View mRootView;
private int mMutedColor = 0xFF333333;
private DrawInsetsFrameLayout mDrawInsetsFrameLayout;
private ColorDrawable mStatusBarColorDrawable;

private int mTopInset;
private View mPhotoContainerView;
private ImageView mPhotoView;
private int mScrollY;
private boolean mIsCard = false;
Expand Down Expand Up @@ -163,7 +158,6 @@ private void bindViews() {
TextView bylineView = (TextView) mRootView.findViewById(R.id.article_byline);
TextView bodyView = (TextView) mRootView.findViewById(R.id.article_body);


bodyView.setTypeface(Typeface.createFromAsset(getResources().getAssets(), "Rosario-Regular.ttf"));

if (mCursor != null) {
Expand All @@ -180,7 +174,7 @@ private void bindViews() {
publishedDate.getTime(),
System.currentTimeMillis(), DateUtils.HOUR_IN_MILLIS,
DateUtils.FORMAT_ABBREV_ALL).toString()
+ " by <font color='#ffffff'>"
+ " by <font color='#FF9800'>"
+ mCursor.getString(ArticleLoader.Query.AUTHOR)
+ "</font>"));

Expand Down
2 changes: 1 addition & 1 deletion XYZReader/src/main/res/drawable/add_fab_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<layer-list xmlns:android="http:https://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/theme_accent" />
<solid android:color="@color/colorAccent" />
</shape>
</item>
<item android:drawable="@drawable/white_selectable_item_background_circle" />
Expand Down
2 changes: 2 additions & 0 deletions XYZReader/src/main/res/layout-v21/fragment_article_detail.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<com.example.xyzreader.ui.DrawInsetsFrameLayout xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:app="http:https://schemas.android.com/apk/res-auto"
xmlns:tools="http:https://schemas.android.com/tools"
android:id="@+id/draw_insets_frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
Expand Down Expand Up @@ -54,6 +55,7 @@

<TextView
android:id="@+id/article_byline"
tools:text="{{Article ByLine}}"
style="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
8 changes: 1 addition & 7 deletions XYZReader/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,13 @@
-->

<resources>
<color name="photo_placeholder">#ccc</color>

<color name="theme_primary">#04561A</color>
<color name="theme_primary_dark">#04561A</color>
<color name="theme_accent">#04561A</color>
<color name="ltgray">#ffe0e0e0</color>

<color name="colorPrimary">#607D8B</color>
<color name="colorPrimaryDark">#455A64</color>
<color name="colorAccent">#FF9800</color>

<color name="white">#FFFFFF</color>
<color name="grey">#424242</color>
<color name="black">#000000</color>
<color name="photo_placeholder">#ccc</color>

</resources>

0 comments on commit b680991

Please sign in to comment.