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
3541aa3c
Commit
3541aa3c
authored
Jul 18, 2018
by
Sajal Narang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zoom images on click
parent
4eefdbff
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2059 additions
and
203 deletions
+2059
-203
app/src/main/java/app/insti/TouchImageView.java
app/src/main/java/app/insti/TouchImageView.java
+1265
-0
app/src/main/java/app/insti/fragment/BackHandledFragment.java
...src/main/java/app/insti/fragment/BackHandledFragment.java
+30
-0
app/src/main/java/app/insti/fragment/BodyFragment.java
app/src/main/java/app/insti/fragment/BodyFragment.java
+190
-9
app/src/main/java/app/insti/fragment/EventFragment.java
app/src/main/java/app/insti/fragment/EventFragment.java
+180
-5
app/src/main/java/app/insti/fragment/ProfileFragment.java
app/src/main/java/app/insti/fragment/ProfileFragment.java
+181
-5
app/src/main/res/layout/fragment_body.xml
app/src/main/res/layout/fragment_body.xml
+24
-16
app/src/main/res/layout/fragment_event.xml
app/src/main/res/layout/fragment_event.xml
+181
-168
app/src/main/res/layout/fragment_profile.xml
app/src/main/res/layout/fragment_profile.xml
+8
-0
No files found.
app/src/main/java/app/insti/TouchImageView.java
0 → 100644
View file @
3541aa3c
This diff is collapsed.
Click to expand it.
app/src/main/java/app/insti/fragment/BackHandledFragment.java
0 → 100644
View file @
3541aa3c
package
app.insti.fragment
;
import
android.os.Bundle
;
public
abstract
class
BackHandledFragment
extends
BaseFragment
{
protected
BackHandlerInterface
backHandlerInterface
;
public
abstract
boolean
onBackPressed
();
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
if
(!(
getActivity
()
instanceof
BackHandlerInterface
))
{
throw
new
ClassCastException
(
"Hosting activity must implement BackHandlerInterface"
);
}
else
{
backHandlerInterface
=
(
BackHandlerInterface
)
getActivity
();
}
}
@Override
public
void
onStart
()
{
super
.
onStart
();
// Mark this fragment as the selected Fragment.
backHandlerInterface
.
setSelectedFragment
(
this
);
}
public
interface
BackHandlerInterface
{
public
void
setSelectedFragment
(
BackHandledFragment
backHandledFragment
);
}
}
\ No newline at end of file
app/src/main/java/app/insti/fragment/BodyFragment.java
View file @
3541aa3c
This diff is collapsed.
Click to expand it.
app/src/main/java/app/insti/fragment/EventFragment.java
View file @
3541aa3c
This diff is collapsed.
Click to expand it.
app/src/main/java/app/insti/fragment/ProfileFragment.java
View file @
3541aa3c
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/fragment_body.xml
View file @
3541aa3c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
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_body"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
...
@@ -128,75 +129,75 @@
...
@@ -128,75 +129,75 @@
<TextView
<TextView
android:id=
"@+id/body_events_title"
android:id=
"@+id/body_events_title"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:fontFamily=
"sans-serif-light"
android:text=
"Events"
android:text=
"Events"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/event_card_recycler_view"
android:id=
"@+id/event_card_recycler_view"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
/>
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
<TextView
android:id=
"@+id/body_orgs_title"
android:id=
"@+id/body_orgs_title"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:fontFamily=
"sans-serif-light"
android:text=
"Organizations"
android:text=
"Organizations"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/org_card_recycler_view"
android:id=
"@+id/org_card_recycler_view"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
/>
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
<TextView
android:id=
"@+id/body_people_title"
android:id=
"@+id/body_people_title"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:fontFamily=
"sans-serif-light"
android:text=
"People"
android:text=
"People"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/people_card_recycler_view"
android:id=
"@+id/people_card_recycler_view"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
/>
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
<TextView
<TextView
android:id=
"@+id/body_parents_title"
android:id=
"@+id/body_parents_title"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:fontFamily=
"sans-serif-light"
android:fontFamily=
"sans-serif-light"
android:text=
"Part of"
android:text=
"Part of"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/parentorg_card_recycler_view"
android:id=
"@+id/parentorg_card_recycler_view"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:nestedScrollingEnabled=
"false"
/>
android:nestedScrollingEnabled=
"false"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.v4.widget.NestedScrollView>
...
@@ -213,4 +214,11 @@
...
@@ -213,4 +214,11 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:indeterminate=
"true"
/>
android:indeterminate=
"true"
/>
</RelativeLayout>
</RelativeLayout>
<app.insti.TouchImageView
android:id=
"@+id/expanded_image_body"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:contentDescription=
"Zoomed Image"
android:visibility=
"gone"
/>
</FrameLayout>
</FrameLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_event.xml
View file @
3541aa3c
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/fragment_profile.xml
View file @
3541aa3c
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/container_profile"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
...
@@ -103,4 +104,11 @@
...
@@ -103,4 +104,11 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:indeterminate=
"true"
/>
android:indeterminate=
"true"
/>
</RelativeLayout>
</RelativeLayout>
<app.insti.TouchImageView
android:id=
"@+id/expanded_image_profile"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:visibility=
"gone"
android:contentDescription=
"Zoomed Image"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
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