Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
e6c1710c
Commit
e6c1710c
authored
Feb 03, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CoordinatorLayout in fragment_event
parent
c13817fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
173 additions
and
158 deletions
+173
-158
app/src/main/res/layout/fragment_event.xml
app/src/main/res/layout/fragment_event.xml
+173
-158
No files found.
app/src/main/res/layout/fragment_event.xml
View file @
e6c1710c
...
@@ -2,29 +2,33 @@
...
@@ -2,29 +2,33 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/container_event"
android:id=
"@+id/container_event"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
"app.insti.fragment.EventFragment"
>
tools:context=
"app.insti.fragment.EventFragment"
android:background=
"@android:color/transparent"
>
<RelativeLayout
<android.support.design.widget.CoordinatorLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<
Line
arLayout
<
android.support.design.widget.AppB
arLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:
orientation=
"vertical
"
>
android:
background=
"@android:color/transparent
"
>
<android.support.v4.widget.NestedScrollView
<android.support.design.widget.CollapsingToolbarLayout
android:id=
"@+id/event_scrollview"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"match_parent"
app:layout_scrollFlags=
"scroll|exitUntilCollapsed"
>
<
LinearLayout
<
!-- HEADER -->
android:layout_width=
"match_parent"
<RelativeLayout
android:layout_height=
"
0dp
"
android:layout_height=
"
wrap_content
"
android:layout_w
eight=
"1
"
android:layout_w
idth=
"wrap_content
"
a
ndroid:orientation=
"vertical
"
>
a
pp:layout_collapseMode=
"parallax
"
>
<ImageView
<ImageView
android:id=
"@+id/event_picture_2"
android:id=
"@+id/event_picture_2"
...
@@ -34,179 +38,190 @@
...
@@ -34,179 +38,190 @@
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
android:transitionName=
"sharedAvatar"
/>
android:transitionName=
"sharedAvatar"
/>
<LinearLayout
</RelativeLayout>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:id=
"@+id/event_scrollview"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"?attr/themeColor"
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=
"wrap_content"
a
ndroid:background=
"?attr/themeColor
"
a
pp:cardBackgroundColor=
"@color/colorPrimary
"
a
ndroid:orientation=
"vertical
"
>
a
pp:cardCornerRadius=
"0dp
"
>
<
android.support.v7.widget.CardView
<
LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
app:cardBackgroundColor=
"@color/colorPrimary"
android:layout_gravity=
"center_vertical"
app:cardCornerRadius=
"0dp"
>
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:layout_gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:layout_marginBottom=
"12dp"
android:layout_marginEnd=
"16dp"
<TextView
android:layout_marginStart=
"16dp"
android:id=
"@+id/event_page_title"
android:layout_marginTop=
"12dp"
android:layout_width=
"0dp"
android:layout_weight=
"3"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
android:layout_weight=
"10"
android:text=
"Event Title"
<LinearLayout
android:textColor=
"@color/colorWhite"
android:layout_width=
"match_parent"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<ImageButton
android:id=
"@+id/web_event_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
<TextView
android:background=
"?attr/selectableItemBackgroundBorderless"
android:id=
"@+id/event_page_title"
android:contentDescription=
"Event Website"
android:layout_width=
"0dp"
android:tint=
"@color/colorWhite"
android:layout_height=
"wrap_content"
android:visibility=
"invisible"
android:layout_weight=
"10"
app:srcCompat=
"@drawable/ic_language_black_24dp"
/>
android:text=
"Event Title"
android:textColor=
"@color/colorWhite"
<ImageButton
android:textSize=
"21sp"
android:id=
"@+id/navigate_button"
android:textStyle=
"bold"
/>
<ImageButton
android:id=
"@+id/web_event_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Event Website"
android:tint=
"@color/colorWhite"
android:visibility=
"invisible"
app:srcCompat=
"@drawable/ic_language_black_24dp"
/>
<ImageButton
android:id=
"@+id/navigate_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Navigate"
android:tint=
"@color/colorWhite"
app:srcCompat=
"@drawable/baseline_navigation_24"
/>
<ImageButton
android:id=
"@+id/share_event_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
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:orientation=
"horizontal"
>
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Navigate"
android:tint=
"@color/colorWhite"
app:srcCompat=
"@drawable/baseline_navigation_24"
/>
<ImageButton
android:id=
"@+id/share_event_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Share Event"
android:src=
"@drawable/ic_menu_share"
android:tint=
"@color/colorWhite"
/>
</LinearLayout>
<TextView
<LinearLayout
android:id=
"@+id/event_page_date"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:text=
"No Date Specified"
android:textColor=
"@color/colorWhite"
android:textSize=
"16sp"
/>
</LinearLayout>
<TextView
android:id=
"@+id/event_page_date"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"No Date Specified"
android:textColor=
"@color/colorWhite"
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
<LinearLayout
</LinearLayout>
style=
"?android:attr/buttonBarStyle"
</android.support.v7.widget.CardView>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<Button
<LinearLayout
android:id=
"@+id/going_button"
style=
"?android:attr/buttonBarStyle"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"match_parent"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_margin=
"0dp"
android:layout_weight=
"1"
android:clickable=
"true"
android:foreground=
"?attr/selectableItemBackground"
android:text=
"GOING"
android:textAllCaps=
"false"
android:textColor=
"@color/secondaryTextColor"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"#aaa"
>
</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:clickable=
"true"
android:foreground=
"?attr/selectableItemBackground"
android:text=
"INTERESTED"
android:textAllCaps=
"false"
android:textColor=
"@color/secondaryTextColor"
/>
</LinearLayout>
<Button
android:id=
"@+id/going_button"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_margin=
"0dp"
android:layout_weight=
"1"
android:clickable=
"true"
android:foreground=
"?attr/selectableItemBackground"
android:text=
"GOING"
android:textAllCaps=
"false"
android:textColor=
"@color/secondaryTextColor"
/>
<View
<View
android:layout_width=
"
match_parent
"
android:layout_width=
"
1dp
"
android:layout_height=
"
1dp
"
android:layout_height=
"
match_parent
"
android:background=
"#aaa"
>
android:background=
"#aaa"
>
</View>
</View>
<TextView
<Button
android:id=
"@+id/event_page_description"
android:id=
"@+id/interested_button"
android:layout_width=
"match_parent"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin
Bottom=
"16
dp"
android:layout_margin
=
"0
dp"
android:layout_
marginEnd=
"10dp
"
android:layout_
weight=
"1
"
android:
layout_marginStart=
"10dp
"
android:
clickable=
"true
"
android:
layout_marginTop=
"12dp
"
android:
foreground=
"?attr/selectableItemBackground
"
android:text
Color=
"?attr/themeColorInverse
"
android:text
=
"INTERESTED
"
android:text
ColorLink=
"?attr/urlColor
"
android:text
AllCaps=
"false
"
android:text
Size=
"16sp
"
/>
android:text
Color=
"@color/secondaryTextColor
"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/body_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</LinearLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"#aaa"
>
</View>
<android.support.design.widget.FloatingActionButton
<TextView
android:id=
"@+id/edit_fab"
android:id=
"@+id/event_page_description"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"16dp"
android:layout_alignParentRight=
"true"
android:layout_marginEnd=
"10dp"
android:layout_margin=
"16dp"
android:layout_marginStart=
"10dp"
android:src=
"@drawable/ic_edit_black_24dp"
android:layout_marginTop=
"12dp"
android:tint=
"@android:color/black"
android:textColor=
"?attr/themeColorInverse"
android:visibility=
"invisible"
/>
android:textColorLink=
"?attr/urlColor"
android:textSize=
"16sp"
/>
</RelativeLayout>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/body_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
/>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.FloatingActionButton
android:id=
"@+id/edit_fab"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"end|bottom"
android:layout_margin=
"16dp"
android:src=
"@drawable/ic_edit_black_24dp"
android:tint=
"@android:color/black"
android:visibility=
"invisible"
/>
<app.insti.TouchImageView
<app.insti.TouchImageView
android:id=
"@+id/expanded_image_event"
android:id=
"@+id/expanded_image_event"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment