Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
15d87935
Commit
15d87935
authored
11 years ago
by
Alexandre Lision
Browse files
Options
Downloads
Patches
Plain Diff
removed drawer shadow (memory consumption)
parent
d2fe4f0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
res/layout/activity_sflphone_home.xml
+2
-1
2 additions, 1 deletion
res/layout/activity_sflphone_home.xml
res/layout/contact_drawer.xml
+16
-16
16 additions, 16 deletions
res/layout/contact_drawer.xml
src/org/sflphone/client/HomeActivity.java
+1
-6
1 addition, 6 deletions
src/org/sflphone/client/HomeActivity.java
with
19 additions
and
23 deletions
res/layout/activity_sflphone_home.xml
+
2
−
1
View file @
15d87935
...
...
@@ -34,7 +34,8 @@ as that of the covered work.
xmlns:app=
"http://schemas.android.com/apk/res/org.sflphone"
android:id=
"@+id/drawer_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:background=
"@color/sfl_dark_blue"
>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
...
...
This diff is collapsed.
Click to expand it.
res/layout/contact_drawer.xml
+
16
−
16
View file @
15d87935
...
...
@@ -44,23 +44,23 @@ as that of the covered work.
android:layout_width=
"match_parent"
android:layout_height=
"72dp"
>
<ImageView
android:id=
"@+id/menu_top_shadow_left"
android:layout_width=
"0dp"
android:layout_height=
"4dp"
android:layout_above=
"@+id/coucou"
android:layout_alignParentLeft=
"true"
android:layout_toLeftOf=
"@+id/hello"
android:src=
"@drawable/defaultshadowtop"
/>
<!--
<ImageView
-->
<!--
android:id="@+id/menu_top_shadow_left"
-->
<!--
android:layout_width="0dp"
-->
<!--
android:layout_height="4dp"
-->
<!--
android:layout_above="@+id/coucou"
-->
<!--
android:layout_alignParentLeft="true"
-->
<!--
android:layout_toLeftOf="@+id/hello"
-->
<!--
android:src="@drawable/defaultshadowtop" />
-->
<ImageView
android:id=
"@+id/menu_top_shadow_right"
android:layout_width=
"0dp"
android:layout_height=
"4dp"
android:layout_above=
"@+id/coucou"
android:layout_alignParentRight=
"true"
android:layout_toRightOf=
"@+id/hello"
android:src=
"@drawable/defaultshadowtop"
/>
<!--
<ImageView
-->
<!--
android:id="@+id/menu_top_shadow_right"
-->
<!--
android:layout_width="0dp"
-->
<!--
android:layout_height="4dp"
-->
<!--
android:layout_above="@+id/coucou"
-->
<!--
android:layout_alignParentRight="true"
-->
<!--
android:layout_toRightOf="@+id/hello"
-->
<!--
android:src="@drawable/defaultshadowtop" />
-->
<RelativeLayout
android:id=
"@+id/coucou"
...
...
This diff is collapsed.
Click to expand it.
src/org/sflphone/client/HomeActivity.java
+
1
−
6
View file @
15d87935
...
...
@@ -164,17 +164,12 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks,
@Override
public
void
onScrollEnded
()
{
if
(!
mContactDrawer
.
isOpened
())
{
mShadow
.
setAlpha
(
0
f
);
}
}
@Override
public
void
onScroll
(
int
offset
)
{
float
relativeOffset
=
offset
+
getResources
().
getDimension
(
R
.
dimen
.
contact_drawer_handle_height
);
float
alpha
=
1
-
(((
float
)
relativeOffset
)
/
((
float
)
getResources
().
getDisplayMetrics
().
heightPixels
));
mShadow
.
setAlpha
(
alpha
);
if
(
offset
<
400
)
{
getActionBar
().
hide
();
// mNavigationDrawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment