Commit 1ec68569 authored by Varun Patil's avatar Varun Patil

Scroll entire event view (also fixes layout for non-HiDPI devices)

parent b90d618a
...@@ -6,12 +6,9 @@ ...@@ -6,12 +6,9 @@
android:orientation="vertical" android:orientation="vertical"
tools:context="in.ac.iitb.gymkhana.iitbapp.fragment.EventFragment"> tools:context="in.ac.iitb.gymkhana.iitbapp.fragment.EventFragment">
<ImageView <ScrollView
android:id="@+id/event_picture_2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content">
android:layout_weight="1"
android:scaleType="centerCrop" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -19,6 +16,14 @@ ...@@ -19,6 +16,14 @@
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical"> android:orientation="vertical">
<ImageView
android:id="@+id/event_picture_2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:scaleType="fitCenter" />
<android.support.v7.widget.CardView <android.support.v7.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -174,9 +179,7 @@ ...@@ -174,9 +179,7 @@
</View> </View>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView <TextView
android:id="@+id/event_page_description" android:id="@+id/event_page_description"
...@@ -186,6 +189,6 @@ ...@@ -186,6 +189,6 @@
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:textColor="#777" android:textColor="#777"
android:textSize="16sp" /> android:textSize="16sp" />
</ScrollView>
</LinearLayout> </LinearLayout>
</ScrollView>
</LinearLayout> </LinearLayout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment