Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-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
AloqaIM-Android
Commits
c4554625
Commit
c4554625
authored
Jan 15, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new icon for the search bar
parent
f495ce5f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
ChatRoomsFragment.kt
...ava/chat/rocket/android/chatrooms/ui/ChatRoomsFragment.kt
+4
-2
ic_search_white_24px.xml
app/src/main/res/drawable/ic_search_white_24px.xml
+5
-0
chatrooms_menu.xml
app/src/main/res/menu/chatrooms_menu.xml
+1
-1
No files found.
app/src/main/java/chat/rocket/android/chatrooms/ui/ChatRoomsFragment.kt
View file @
c4554625
...
@@ -51,8 +51,10 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
...
@@ -51,8 +51,10 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
if
(
supportActionBar
==
null
)
{
if
(
supportActionBar
==
null
)
{
setSupportActionBar
(
toolbar
)
setSupportActionBar
(
toolbar
)
supportActionBar
?.
setDisplayHomeAsUpEnabled
(
false
)
supportActionBar
?.
setDisplayHomeAsUpEnabled
(
false
)
supportActionBar
?.
setDisplayShowHomeEnabled
(
false
)
supportActionBar
?.
setDisplayShowHomeEnabled
(
true
)
supportActionBar
?.
setDisplayShowTitleEnabled
(
false
)
//TODO: should display the current server "SiteName" setting?
supportActionBar
?.
setDisplayShowTitleEnabled
(
true
)
supportActionBar
?.
title
=
"Rocket.Chat"
}
}
}
}
presenter
.
loadChatRooms
()
presenter
.
loadChatRooms
()
...
...
app/src/main/res/drawable/ic_search_white_24px.xml
0 → 100644
View file @
c4554625
<vector
android:autoMirrored=
"true"
android:height=
"24dp"
android:viewportHeight=
"24.0"
android:viewportWidth=
"24.0"
android:width=
"24dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"#FFFFFF"
android:pathData=
"M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"
/>
</vector>
app/src/main/res/menu/chatrooms_menu.xml
View file @
c4554625
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
<item
android:id=
"@+id/action_search"
android:id=
"@+id/action_search"
android:icon=
"@
android:drawable/ic_menu_search
"
android:icon=
"@
drawable/ic_search_white_24px
"
android:title=
"@string/search"
android:title=
"@string/search"
app:actionViewClass=
"android.support.v7.widget.SearchView"
app:actionViewClass=
"android.support.v7.widget.SearchView"
app:showAsAction=
"always|collapseActionView"
/>
app:showAsAction=
"always|collapseActionView"
/>
...
...
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