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

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

parent b90d618a
...@@ -6,177 +6,180 @@ ...@@ -6,177 +6,180 @@
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_height="0dp"
android:layout_weight="1"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
app:cardBackgroundColor="@color/colorPrimary"> android:layout_weight="1"
android:orientation="vertical">
<LinearLayout <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:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" app:cardBackgroundColor="@color/colorPrimary">
android:layout_marginBottom="12dp"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:layout_weight="3"
android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:layout_gravity="center_vertical"
android:layout_marginBottom="12dp"
<TextView android:layout_marginEnd="16dp"
android:id="@+id/event_page_title" android:layout_marginStart="16dp"
android:layout_width="0dp" android:layout_marginTop="12dp"
android:layout_height="wrap_content" android:layout_weight="3"
android:layout_weight="10" android:orientation="vertical">
android:text="Event Title"
android:textColor="#fff" <LinearLayout
android:textSize="28sp" /> android:layout_width="match_parent"
<ImageButton
android:id="@+id/share_event_button"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:orientation="horizontal">
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless" <TextView
android:contentDescription="Share Event" android:id="@+id/event_page_title"
android:src="@drawable/ic_menu_share" android:layout_width="0dp"
android:tint="@color/colorWhite" /> android:layout_height="wrap_content"
</LinearLayout> android:layout_weight="10"
android:text="Event Title"
<LinearLayout android:textColor="#fff"
android:layout_width="wrap_content" android:textSize="28sp" />
android:layout_height="wrap_content"
android:orientation="horizontal"> <ImageButton
android:id="@+id/share_event_button"
<TextView android:layout_width="0dp"
android:id="@+id/event_page_date" android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="Share Event"
android:src="@drawable/ic_menu_share"
android:tint="@color/colorWhite" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="No Date Specified" android:orientation="horizontal">
android:textColor="#fff"
android:textSize="16sp" /> <TextView
android:id="@+id/event_page_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="No Date Specified"
android:textColor="#fff"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" | "
android:textColor="#fff"
android:textSize="20sp" />
<TextView
android:id="@+id/event_page_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="No Time Specified"
android:textColor="#fff"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" | "
android:textColor="#fff"
android:textSize="20sp" />
<TextView
android:id="@+id/event_page_venue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:text="No Venue Specified"
android:textColor="#fff"
android:textSize="16sp" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" | "
android:textColor="#fff"
android:textSize="20sp" />
<TextView
android:id="@+id/event_page_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="No Time Specified"
android:textColor="#fff"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" | "
android:textColor="#fff"
android:textSize="20sp" />
<TextView
android:id="@+id/event_page_venue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:text="No Venue Specified"
android:textColor="#fff"
android:textSize="16sp" />
</LinearLayout> </LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</android.support.v7.widget.CardView>
<LinearLayout <LinearLayout
style="?android:attr/buttonBarStyle" style="?android:attr/buttonBarStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/going_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="0dp" android:orientation="horizontal">
android:layout_weight="1"
android:text="Going"
android:textColor="@color/colorGray" />
<View <Button
android:layout_width="1dp" android:id="@+id/going_button"
android:layout_height="match_parent" style="?android:attr/buttonBarButtonStyle"
android:layout_marginBottom="6dp" android:layout_width="0dp"
android:layout_marginTop="10dp" android:layout_height="wrap_content"
android:background="#aaa"> android:layout_margin="0dp"
android:layout_weight="1"
</View> android:text="Going"
android:textColor="@color/colorGray" />
<Button
android:id="@+id/interested_button" <View
style="?android:attr/buttonBarButtonStyle" android:layout_width="1dp"
android:layout_width="0dp" android:layout_height="match_parent"
android:layout_height="wrap_content" android:layout_marginBottom="6dp"
android:layout_margin="0dp" android:layout_marginTop="10dp"
android:layout_weight="1" android:background="#aaa">
android:text="Interested"
android:textColor="@color/colorGray" /> </View>
<Button
android:id="@+id/interested_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:layout_weight="1"
android:text="Interested"
android:textColor="@color/colorGray" />
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="6dp"
android:layout_marginTop="10dp"
android:background="#aaa">
</View>
<Button
android:id="@+id/not_going_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:layout_weight="1"
android:text="Not Going"
android:textColor="@color/colorGray" />
</LinearLayout>
<View <View
android:layout_width="1dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="1dp"
android:layout_marginBottom="6dp" android:layout_marginLeft="8dp"
android:layout_marginTop="10dp" android:layout_marginRight="8dp"
android:background="#aaa"> android:background="#aaa">
</View> </View>
<Button
android:id="@+id/not_going_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:layout_weight="1"
android:text="Not Going"
android:textColor="@color/colorGray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="#aaa">
</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