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
c4d4a80f
Commit
c4d4a80f
authored
Nov 30, 2018
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make event and body fragments lower portion opaque
parent
2bbec9de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
319 additions
and
307 deletions
+319
-307
app/src/main/res/layout/fragment_body.xml
app/src/main/res/layout/fragment_body.xml
+158
-152
app/src/main/res/layout/fragment_event.xml
app/src/main/res/layout/fragment_event.xml
+161
-155
No files found.
app/src/main/res/layout/fragment_body.xml
View file @
c4d4a80f
...
...
@@ -38,182 +38,188 @@
android:scaleType=
"fitCenter"
android:transitionName=
"sharedAvatar"
/>
<
android.support.v7.widget.CardView
<
LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
a
pp:cardBackgroundColor=
"@color/colorPrimary
"
a
pp:cardCornerRadius=
"0dp
"
>
a
ndroid:background=
"?attr/themeColor
"
a
ndroid:orientation=
"vertical
"
>
<
LinearLayout
<
android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginBottom=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"12dp"
android:layout_weight=
"3"
android:orientation=
"vertical"
>
app:cardBackgroundColor=
"@color/colorPrimary"
app:cardCornerRadius=
"0dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_gravity=
"center_vertical"
android:layout_marginBottom=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"12dp"
android:layout_weight=
"3"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/body_name"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"10"
android:text=
"Org Title"
android:textColor=
"@color/colorWhite"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<ImageButton
android:id=
"@+id/web_body_button"
android:layout_width=
"10dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Org Website"
android:src=
"@drawable/ic_language_black_24dp"
android:tint=
"@color/colorWhite"
android:visibility=
"invisible"
/>
<ImageButton
android:id=
"@+id/share_body_button"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Share Body"
android:src=
"@drawable/ic_menu_share"
android:tint=
"@color/colorWhite"
/>
</LinearLayout>
<TextView
android:id=
"@+id/body_
nam
e"
android:layout_width=
"
0dp
"
android:id=
"@+id/body_
subtitl
e"
android:layout_width=
"
wrap_content
"
android:layout_height=
"wrap_content"
android:layout_weight=
"10"
android:text=
"Org Title"
android:textColor=
"@color/colorWhite"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<ImageButton
android:id=
"@+id/web_body_button"
android:layout_width=
"10dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Org Website"
android:src=
"@drawable/ic_language_black_24dp"
android:tint=
"@color/colorWhite"
android:visibility=
"invisible"
/>
<ImageButton
android:id=
"@+id/share_body_button"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Share Body"
android:src=
"@drawable/ic_menu_share"
android:tint=
"@color/colorWhite"
/>
android:textColor=
"@color/colorWhite"
/>
</LinearLayout>
</android.support.v7.widget.CardView>
<TextView
android:id=
"@+id/body_subtitle"
android:layout_width=
"wrap_content"
<LinearLayout
style=
"?android:attr/buttonBarStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<Button
android:id=
"@+id/follow_button"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:textColor=
"@color/colorWhite"
/>
android:layout_margin=
"0dp"
android:layout_weight=
"1"
android:clickable=
"true"
android:foreground=
"?attr/selectableItemBackground"
android:text=
"FOLLOW"
android:textAllCaps=
"false"
android:textColor=
"@color/secondaryTextColor"
/>
</LinearLayout>
</android.support.v7.widget.CardView>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"#aaa"
>
<LinearLayout
style=
"?android:attr/buttonBarStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
</View>
<Button
android:id=
"@+id/follow_button"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
<TextView
android:id=
"@+id/body_description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"0dp"
android:layout_weight=
"1"
android:clickable=
"true"
android:foreground=
"?attr/selectableItemBackground"
android:text=
"FOLLOW"
android:textAllCaps=
"false"
android:textColor=
"@color/secondaryTextColor"
/>
</LinearLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"#aaa"
>
</View>
<TextView
android:id=
"@+id/body_description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"16dp"
android:layout_marginEnd=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"12dp"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"?attr/urlColor"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/body_events_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"Events"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/event_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
android:layout_marginBottom=
"16dp"
android:layout_marginEnd=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"12dp"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"?attr/urlColor"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/body_org
s_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"Organization
s"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/org
_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/body_event
s_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"Event
s"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/event
_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/body_people
_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"People
"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/people
_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/body_orgs
_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"Organizations
"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/org
_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/body_parents
_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"Part of
"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/parentorg
_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/body_people
_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"People
"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/people
_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/body_parents_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:text=
"Part of"
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/parentorg_card_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
...
...
app/src/main/res/layout/fragment_event.xml
View file @
c4d4a80f
...
...
@@ -34,187 +34,193 @@
android:scaleType=
"centerCrop"
android:transitionName=
"sharedAvatar"
/>
<
android.support.v7.widget.CardView
<
LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
a
pp:cardBackgroundColor=
"@color/colorPrimary
"
a
pp:cardCornerRadius=
"0dp
"
>
a
ndroid:background=
"?attr/themeColor
"
a
ndroid:orientation=
"vertical
"
>
<
LinearLayout
<
android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginBottom=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"12dp"
android:layout_weight=
"3"
android:orientation=
"vertical"
>
app:cardBackgroundColor=
"@color/colorPrimary"
app:cardCornerRadius=
"0dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/event_page_title"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"10"
android:text=
"Event Title"
android:textColor=
"@color/colorWhite"
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_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_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/event_page_date"
android:layout_width=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginBottom=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"12dp"
android:layout_weight=
"3"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"No Date Specified"
android:textColor=
"@color/colorWhite"
android:textSize=
"16sp"
/>
<TextView
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/event_page_title"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"10"
android:text=
"Event Title"
android:textColor=
"@color/colorWhite"
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_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_height=
"wrap_content"
android:text=
" | "
android:textColor=
"@color/colorWhite"
android:textSize=
"20sp"
/>
android:orientation=
"horizontal"
>
<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"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
" | "
android:textColor=
"@color/colorWhite"
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=
"@color/colorWhite"
android:textSize=
"16sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
" | "
android:textColor=
"@color/colorWhite"
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=
"Venue"
android:textColor=
"@color/colorWhite"
android:textSize=
"16sp"
/>
</LinearLayout>
<TextView
android:id=
"@+id/event_page_time"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"No Time Specified"
android:textColor=
"@color/colorWhite"
android:textSize=
"16sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
" | "
android:textColor=
"@color/colorWhite"
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=
"Venue"
android:textColor=
"@color/colorWhite"
android:textSize=
"16sp"
/>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</android.support.v7.widget.CardView>
<LinearLayout
style=
"?android:attr/buttonBarStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<LinearLayout
style=
"?android:attr/buttonBarStyle"
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_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"
/>
<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"
/>
</LinearLayout>
<View
android:layout_width=
"
1dp
"
android:layout_height=
"
match_parent
"
android:layout_width=
"
match_parent
"
android:layout_height=
"
1dp
"
android:background=
"#aaa"
>
</View>
<Button
android:id=
"@+id/interested_button"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
<TextView
android:id=
"@+id/event_page_description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin
=
"0
dp"
android:layout_
weight=
"1
"
android:
clickable=
"true
"
android:
foreground=
"?attr/selectableItemBackground
"
android:text
=
"INTERESTED
"
android:text
AllCaps=
"false
"
android:text
Color=
"@color/secondaryTextColor
"
/>
android:layout_margin
Bottom=
"16
dp"
android:layout_
marginEnd=
"10dp
"
android:
layout_marginStart=
"10dp
"
android:
layout_marginTop=
"12dp
"
android:text
Color=
"?attr/themeColorInverse
"
android:text
ColorLink=
"?attr/urlColor
"
android:text
Size=
"16sp
"
/>
<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>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"#aaa"
>
</View>
<TextView
android:id=
"@+id/event_page_description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"16dp"
android:layout_marginEnd=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"12dp"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"?attr/urlColor"
android:textSize=
"16sp"
/>
<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>
</android.support.v4.widget.NestedScrollView>
...
...
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