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
d5acef38
Commit
d5acef38
authored
Nov 13, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix channel list style
parent
d593760b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
RoomListManager.java
...rocket/android/layouthelper/chatroom/RoomListManager.java
+1
-0
sidebar.xml
app/src/main/res/layout/sidebar.xml
+14
-10
RoomListItemView.java
...chat/rocket/android/widget/internal/RoomListItemView.java
+6
-0
No files found.
app/src/main/java/chat/rocket/android/layouthelper/chatroom/RoomListManager.java
View file @
d5acef38
...
...
@@ -92,6 +92,7 @@ public class RoomListManager {
.
setRoomId
(
roomSubscription
.
getRid
())
.
setRoomName
(
roomSubscription
.
getName
())
.
setRoomType
(
roomSubscription
.
getT
())
.
setAlert
(
roomSubscription
.
isAlert
())
.
setUnreadCount
(
roomSubscription
.
getUnread
());
roomListItemView
.
setOnClickListener
(
this
::
onItemClick
);
...
...
app/src/main/res/layout/sidebar.xml
View file @
d5acef38
...
...
@@ -82,23 +82,25 @@
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/margin_16"
android:layout_marginBottom=
"@dimen/margin_8"
android:layout_marginTop=
"@dimen/margin_8"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"channels"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:text=
"CHANNELS"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body2"
android:textStyle=
"bold"
android:alpha=
"0.62"
android:layout_gravity=
"start|center_vertical"
/>
<chat.rocket.android.widget.FontAwesomeButton
android:layout_width=
"48dp"
android:layout_height=
"
32
dp"
android:layout_height=
"
48
dp"
android:text=
"@string/fa_plus"
android:textSize=
"12dp"
android:layout_gravity=
"end|center_vertical"
style=
"@style/Widget.AppCompat.Button.Borderless"
/>
</FrameLayout>
...
...
@@ -114,22 +116,24 @@
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/margin_16"
android:layout_marginBottom=
"@dimen/margin_8"
android:layout_marginTop=
"@dimen/margin_8"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"direct messages"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:text=
"DIRECT MESSAGES"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body2"
android:textStyle=
"bold"
android:alpha=
"0.62"
android:layout_gravity=
"start|center_vertical"
/>
<chat.rocket.android.widget.FontAwesomeButton
android:layout_width=
"48dp"
android:layout_height=
"
32
dp"
android:layout_height=
"
48
dp"
android:text=
"@string/fa_plus"
android:textSize=
"12dp"
style=
"@style/Widget.AppCompat.Button.Borderless"
android:layout_gravity=
"end|center_vertical"
/>
...
...
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/internal/RoomListItemView.java
View file @
d5acef38
...
...
@@ -90,6 +90,12 @@ public class RoomListItemView extends LinearLayout {
return
this
;
}
public
RoomListItemView
setAlert
(
boolean
alert
)
{
setAlpha
(
alert
?
1.0f
:
0.62f
);
return
this
;
}
public
String
getRoomName
()
{
return
roomName
;
}
...
...
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