Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
63e62798
Commit
63e62798
authored
Apr 01, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contact list "scroll up" action button added.
parent
93218ce4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
2 deletions
+39
-2
ContactListFragment.java
.../main/java/com/xabber/android/ui/ContactListFragment.java
+8
-0
ic_arrow_up_white_24dp.png
app/src/main/res/drawable-hdpi/ic_arrow_up_white_24dp.png
+0
-0
ic_arrow_up_white_24dp.png
app/src/main/res/drawable-mdpi/ic_arrow_up_white_24dp.png
+0
-0
ic_arrow_up_white_24dp.png
app/src/main/res/drawable-xhdpi/ic_arrow_up_white_24dp.png
+0
-0
ic_arrow_up_white_24dp.png
app/src/main/res/drawable-xxhdpi/ic_arrow_up_white_24dp.png
+0
-0
ic_arrow_up_white_24dp.png
app/src/main/res/drawable-xxxhdpi/ic_arrow_up_white_24dp.png
+0
-0
contact_list_fragment.xml
app/src/main/res/layout/contact_list_fragment.xml
+31
-2
No files found.
app/src/main/java/com/xabber/android/ui/ContactListFragment.java
View file @
63e62798
...
...
@@ -104,6 +104,8 @@ public class ContactListFragment extends Fragment implements OnAccountChangedLis
this
,
(
LinearLayout
)
view
.
findViewById
(
R
.
id
.
account_action_buttons
));
accountActionButtonsAdapter
.
onChange
();
view
.
findViewById
(
R
.
id
.
fab_up_container
).
setOnClickListener
(
this
);
return
view
;
}
...
...
@@ -368,6 +370,12 @@ public class ContactListFragment extends Fragment implements OnAccountChangedLis
@Override
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
fab_up_container
)
{
scrollUp
();
return
;
}
String
account
=
accountActionButtonsAdapter
.
getItemForView
(
view
);
if
(
account
==
null
)
{
// Check for tap on account in the title
return
;
...
...
app/src/main/res/drawable-hdpi/ic_arrow_up_white_24dp.png
0 → 100644
View file @
63e62798
330 Bytes
app/src/main/res/drawable-mdpi/ic_arrow_up_white_24dp.png
0 → 100644
View file @
63e62798
227 Bytes
app/src/main/res/drawable-xhdpi/ic_arrow_up_white_24dp.png
0 → 100644
View file @
63e62798
318 Bytes
app/src/main/res/drawable-xxhdpi/ic_arrow_up_white_24dp.png
0 → 100644
View file @
63e62798
405 Bytes
app/src/main/res/drawable-xxxhdpi/ic_arrow_up_white_24dp.png
0 → 100644
View file @
63e62798
515 Bytes
app/src/main/res/layout/contact_list_fragment.xml
View file @
63e62798
...
...
@@ -15,6 +15,7 @@
-->
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:fab=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
...
...
@@ -73,14 +74,42 @@
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentRight=
"true"
android:layout_alignParentEnd=
"true"
android:orientation=
"vertical"
android:layout_marginRight=
"16dp"
android:layout_marginBottom=
"8dp"
android:id=
"@+id/account_action_buttons"
android:layout_above=
"@+id/fab_up_container"
>
</LinearLayout>
<FrameLayout
android:id=
"@+id/fab_up_container"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"16dp"
android:layout_marginBottom=
"8dp"
android:layout_alignParentRight=
"true"
android:layout_alignParentEnd=
"true"
android:layout_alignParentBottom=
"true"
>
<com.melnykov.fab.FloatingActionButton
android:id=
"@+id/fab_up"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
fab:fab_type=
"mini"
fab:fab_colorNormal=
"@color/red_500"
fab:fab_colorPressed=
"@color/red_700"
fab:fab_colorRipple=
"@color/color_primary_light"
android:src=
"@drawable/ic_arrow_up_white_24dp"
android:clickable=
"false"
android:layout_marginTop=
"8dp"
android:layout_marginBottom=
"16dp"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
/>
</FrameLayout>
</RelativeLayout>
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