Commit d5acef38 authored by Yusuke Iwaki's avatar Yusuke Iwaki

fix channel list style

parent d593760b
...@@ -92,6 +92,7 @@ public class RoomListManager { ...@@ -92,6 +92,7 @@ public class RoomListManager {
.setRoomId(roomSubscription.getRid()) .setRoomId(roomSubscription.getRid())
.setRoomName(roomSubscription.getName()) .setRoomName(roomSubscription.getName())
.setRoomType(roomSubscription.getT()) .setRoomType(roomSubscription.getT())
.setAlert(roomSubscription.isAlert())
.setUnreadCount(roomSubscription.getUnread()); .setUnreadCount(roomSubscription.getUnread());
roomListItemView.setOnClickListener(this::onItemClick); roomListItemView.setOnClickListener(this::onItemClick);
......
...@@ -82,23 +82,25 @@ ...@@ -82,23 +82,25 @@
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_16" android:layout_marginTop="@dimen/margin_8"
android:layout_marginBottom="@dimen/margin_8"
> >
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="channels" android:text="CHANNELS"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textStyle="bold"
android:alpha="0.62"
android:layout_gravity="start|center_vertical" android:layout_gravity="start|center_vertical"
/> />
<chat.rocket.android.widget.FontAwesomeButton <chat.rocket.android.widget.FontAwesomeButton
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="32dp" android:layout_height="48dp"
android:text="@string/fa_plus" android:text="@string/fa_plus"
android:textSize="12dp" android:textSize="12dp"
android:layout_gravity="end|center_vertical" android:layout_gravity="end|center_vertical"
style="@style/Widget.AppCompat.Button.Borderless"
/> />
</FrameLayout> </FrameLayout>
...@@ -114,22 +116,24 @@ ...@@ -114,22 +116,24 @@
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_16" android:layout_marginTop="@dimen/margin_8"
android:layout_marginBottom="@dimen/margin_8"
> >
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="direct messages" android:text="DIRECT MESSAGES"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textStyle="bold"
android:alpha="0.62"
android:layout_gravity="start|center_vertical" android:layout_gravity="start|center_vertical"
/> />
<chat.rocket.android.widget.FontAwesomeButton <chat.rocket.android.widget.FontAwesomeButton
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="32dp" android:layout_height="48dp"
android:text="@string/fa_plus" android:text="@string/fa_plus"
android:textSize="12dp" android:textSize="12dp"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_gravity="end|center_vertical" android:layout_gravity="end|center_vertical"
/> />
......
...@@ -90,6 +90,12 @@ public class RoomListItemView extends LinearLayout { ...@@ -90,6 +90,12 @@ public class RoomListItemView extends LinearLayout {
return this; return this;
} }
public RoomListItemView setAlert(boolean alert) {
setAlpha(alert ? 1.0f : 0.62f);
return this;
}
public String getRoomName() { public String getRoomName() {
return roomName; return roomName;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment