Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix part #164: Hifi content card #338

Merged
merged 16 commits into from
Nov 18, 2019
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/content_blue_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
android:shape="rectangle">
<stroke
android:width="1dp"
android:color="@color/blue_shade_200"/>
android:color="@color/oppiaStrokeBlue"/>
<corners
android:radius="4dp"/>
<solid
android:color="@color/oppiaLightBlue"/>
android:color="@color/oppiaSolidBlue"/>
</shape>
19 changes: 11 additions & 8 deletions app/src/main/res/layout/content_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:paddingStart="8dp"
android:paddingEnd="8dp">
android:layout_marginStart="20dp"
android:layout_marginEnd="28dp"
android:layout_marginTop="24dp"
android:background="@drawable/content_blue_background">

<TextView
android:id="@+id/content_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:background="@drawable/content_blue_background"
android:padding="12dp"
android:paddingStart="10dp"
android:paddingTop="16dp"
android:paddingEnd="10dp"
android:paddingBottom="12dp"
android:fontFamily="sans-serif"
android:text="@{htmlContent}"
android:visibility="@{htmlContent.length() > 0 ? View.VISIBLE : View.GONE, default=gone}"
android:textColor="@color/oppiaPrimaryText"
android:textSize="16sp" />
android:textSize="16sp"
android:visibility="@{htmlContent.length() > 0 ? View.VISIBLE : View.GONE, default=gone}" />
</FrameLayout>
</layout>
15 changes: 10 additions & 5 deletions app/src/main/res/layout/feedback_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,23 @@
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:paddingEnd="8dp">
android:background="@drawable/content_blue_background"
android:layout_marginStart="20dp"
android:layout_marginEnd="28dp"
android:layout_marginTop="24dp">

<TextView
android:id="@+id/feedback_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:background="@drawable/content_blue_background"
android:padding="12dp"
android:paddingStart="10dp"
android:paddingTop="16dp"
android:paddingEnd="10dp"
android:paddingBottom="12dp"
android:fontFamily="sans-serif"
android:text="@{htmlContent}"
android:textColor="@color/oppiaPrimaryText"
android:textSize="16sp" />
</FrameLayout>

</layout>
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<color name="oppiaLightBrown">#E76F51</color>
<color name="oppiaBackground">#F2F2F2</color>
<color name="oppiaStrokeBlue">#4D395FD0</color>
<color name="oppiaSolidBlue">#4DA5D3EC</color>
<color name="oppiaStrokeBlack">#CC333333</color>
<color name="oppiaProgressChapterFinished">#E76F51</color>
<color name="oppiaProgressChapterNotFinished">#999999</color>
Expand Down