Skip to content

Commit

Permalink
Title of an event is now shown over the header picture
Browse files Browse the repository at this point in the history
  • Loading branch information
crespum committed Aug 16, 2015
1 parent 17592b0 commit e8033d0
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 21 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.caracocha.fdm"
minSdkVersion 15
targetSdkVersion 22
versionCode 4
versionName "2.0.1"
versionCode 5
versionName "2.1"
}
buildTypes {
release {
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/background_gradient.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<gradient
android:angle="90"
android:startColor="#f95e5e5e"
android:endColor="#00757575"
android:type="linear" />
</shape>
</item>
</selector>
40 changes: 21 additions & 19 deletions app/src/main/res/layout/fragment_event_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,34 @@
android:layout_height="match_parent"
android:orientation="vertical">


<ImageView
android:id="@+id/fragment_event_detail_header"
android:layout_width="fill_parent"
android:layout_height="130dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/header_a_guarda" />

<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
card_view:cardCornerRadius="4dp">
android:layout_height="wrap_content">

<ImageView
android:id="@+id/fragment_event_detail_header"
android:layout_width="fill_parent"
android:layout_height="230dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/header_a_guarda" />

<TextView
android:id="@+id/fragment_event_detail_title"
android:layout_width="fill_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="9dip"
android:layout_alignBottom="@+id/fragment_event_detail_header"
android:background="@drawable/background_gradient"
android:layout_marginTop="30dp"
android:paddingTop="30dp"
android:paddingBottom="6dp"
android:paddingLeft="9dp"
android:paddingRight="9dp"
android:text="Evento"
android:textAppearance="?android:textAppearanceLarge"
android:textIsSelectable="false"
android:textStyle="bold" />
</android.support.v7.widget.CardView>
android:textColor="#ffffff"
android:textIsSelectable="false" />
</RelativeLayout>

<LinearLayout
android:layout_width="match_parent"
Expand Down
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 @@ -5,5 +5,6 @@
<color name="ad_item_background">#c3c3c3</color>
<color name="day_item_background">#34495e</color>

<color name="event_title_background">#e4757575</color>
<color name="black_overlay">#66000000</color>
</resources>

0 comments on commit e8033d0

Please sign in to comment.