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
51a1d9ba
Commit
51a1d9ba
authored
Nov 25, 2016
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exported strings
Clean up the view a bit
parent
f791fce4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
229 additions
and
297 deletions
+229
-297
userstatus_away.xml
app/src/main/res/drawable/userstatus_away.xml
+7
-4
userstatus_busy.xml
app/src/main/res/drawable/userstatus_busy.xml
+7
-4
userstatus_offline.xml
app/src/main/res/drawable/userstatus_offline.xml
+7
-4
userstatus_online.xml
app/src/main/res/drawable/userstatus_online.xml
+7
-4
fragment_sidebar_main.xml
app/src/main/res/layout/fragment_sidebar_main.xml
+193
-279
simple_screen.xml
app/src/main/res/layout/simple_screen.xml
+1
-2
strings.xml
app/src/main/res/values/strings.xml
+7
-0
No files found.
app/src/main/res/drawable/userstatus_away.xml
View file @
51a1d9ba
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"oval"
>
<solid
android:color=
"@color/userstatus_away"
/>
<solid
android:color=
"@color/userstatus_away"
/>
<stroke
android:color=
"@color/userstatus_away_outline"
android:width=
"1dp"
/>
android:width=
"1dp"
android:color=
"@color/userstatus_away_outline"
/>
<size
android:width=
"16dp"
android:height=
"16dp"
/>
</shape>
app/src/main/res/drawable/userstatus_busy.xml
View file @
51a1d9ba
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"oval"
>
<solid
android:color=
"@color/userstatus_busy"
/>
<solid
android:color=
"@color/userstatus_busy"
/>
<stroke
android:color=
"@color/userstatus_busy_outline"
android:width=
"1dp"
/>
android:width=
"1dp"
android:color=
"@color/userstatus_busy_outline"
/>
<size
android:width=
"16dp"
android:height=
"16dp"
/>
</shape>
app/src/main/res/drawable/userstatus_offline.xml
View file @
51a1d9ba
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"oval"
>
<solid
android:color=
"@color/userstatus_offline"
/>
<solid
android:color=
"@color/userstatus_offline"
/>
<stroke
android:color=
"@color/userstatus_offline_outline"
android:width=
"1dp"
/>
android:width=
"1dp"
android:color=
"@color/userstatus_offline_outline"
/>
<size
android:width=
"16dp"
android:height=
"16dp"
/>
</shape>
app/src/main/res/drawable/userstatus_online.xml
View file @
51a1d9ba
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"oval"
>
<solid
android:color=
"@color/userstatus_online"
/>
<solid
android:color=
"@color/userstatus_online"
/>
<stroke
android:color=
"@color/userstatus_online_outline"
android:width=
"1dp"
/>
android:width=
"1dp"
android:color=
"@color/userstatus_online_outline"
/>
<size
android:width=
"16dp"
android:height=
"16dp"
/>
</shape>
app/src/main/res/layout/fragment_sidebar_main.xml
View file @
51a1d9ba
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:
android=
"http://schemas.android.com/apk/res/android
"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:
tools=
"http://schemas.android.com/tools
"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
xmlns:tools=
"http://schemas.android.com/tools"
android:theme=
"@style/AppTheme.Dark"
>
android:theme=
"@style/AppTheme.Dark"
>
<LinearLayout
android:id=
"@+id/user_info_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentTop=
"true"
android:background=
"?attr/colorPrimaryDark"
android:elevation=
"2dp"
android:foreground=
"?attr/selectableItemBackground"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:padding=
"@dimen/margin_16"
android:layout_alignParentTop=
"true"
android:elevation=
"2dp"
>
android:padding=
"@dimen/margin_16"
>
<ImageView
android:id=
"@+id/current_user_status"
android:layout_width=
"8dp"
android:layout_height=
"8dp"
android:src=
"@drawable/userstatus_online"
/>
android:src=
"@drawable/userstatus_online"
/>
<Space
android:layout_width=
"@dimen/margin_8"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/current_user_avatar"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
/>
android:layout_height=
"48dp"
/>
<FrameLayout
<TextView
android:id=
"@+id/current_user_name"
android:layout_width=
"0px"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/margin_8"
android:layout_marginRight=
"@dimen/margin_8"
android:layout_weight=
"1"
>
<TextView
android:id=
"@+id/current_user_name"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:text=
"John Doe"
android:textSize=
"14sp"
/>
</FrameLayout>
tools:text=
"John Doe"
/>
<chat.rocket.android.widget.DownUpToggleView
android:id=
"@+id/toggle_user_action"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
</LinearLayout>
<android.support.v4.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/user_info_container"
android:background=
"?attr/colorPrimary"
android:layout_alignParentBottom=
"true"
>
android:layout_below=
"@+id/user_info_container"
android:background=
"?attr/colorPrimary"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingStart=
"?attr/listPreferredItemPaddingLeft"
android:orientation=
"vertical"
>
android:paddingStart=
"?attr/listPreferredItemPaddingLeft"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@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.Body2"
android:textStyle=
"bold"
android:alpha=
"0.62"
android:layout_gravity=
"start|center_vertical"
/>
android:alpha=
"0.62"
android:text=
"@string/fragment_sidebar_main_channels_title"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body2"
android:textStyle=
"bold"
/>
<chat.rocket.android.widget.FontAwesomeButton
style=
"@style/Widget.AppCompat.Button.Borderless"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:text=
"@string/fa_plus"
android:textSize=
"12dp"
android:layout_gravity=
"end|center_vertical"
style=
"@style/Widget.AppCompat.Button.Borderles
s"
/>
android:text=
"@string/fa_plu
s"
android:textSize=
"12dp"
/>
</FrameLayout>
...
...
@@ -108,33 +91,30 @@
android:id=
"@+id/channels_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_marginEnd=
"?attr/listPreferredItemPaddingRight"
/>
android:orientation=
"vertical"
/>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@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.Body2"
android:textStyle=
"bold"
android:alpha=
"0.62"
android:layout_gravity=
"start|center_vertical"
/>
android:alpha=
"0.62"
android:text=
"@string/fragment_sidebar_main_direct_messages_title"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body2"
android:textStyle=
"bold"
/>
<chat.rocket.android.widget.FontAwesomeButton
style=
"@style/Widget.AppCompat.Button.Borderless"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:text=
"@string/fa_plus"
android:textSize=
"12dp"
style=
"@style/Widget.AppCompat.Button.Borderless"
android:layout_gravity=
"end|center_vertical"
/>
android:text=
"@string/fa_plus"
android:textSize=
"12dp"
/>
</FrameLayout>
...
...
@@ -142,9 +122,8 @@
android:id=
"@+id/direct_messages_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_marginEnd=
"?attr/listPreferredItemPaddingRight"
/>
android:orientation=
"vertical"
/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
...
...
@@ -153,146 +132,81 @@
android:id=
"@+id/user_action_outer_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/user_info_container"
android:layout_alignParentBottom=
"true"
android:layout_below=
"@+id/user_info_container"
android:background=
"?attr/colorPrimaryDark"
android:elevation=
"2dp"
android:visibility=
"gone"
tools:visibility=
"visible"
>
tools:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/btn_status_online"
android:orientation=
"horizontal"
style=
"@style/sidebar_list_item"
>
<FrameLayout
android:layout_width=
"48dp"
android:layout_height=
"match_parent"
>
<ImageView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/userstatus_online"
android:layout_gravity=
"center"
/>
</FrameLayout>
android:layout_marginLeft=
"16dp"
android:drawableLeft=
"@drawable/userstatus_online"
android:drawablePadding=
"16dp"
android:text=
"@string/user_status_online"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Online"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_status_away"
android:orientation=
"horizontal"
style=
"@style/sidebar_list_item"
>
<FrameLayout
android:layout_width=
"48dp"
android:layout_height=
"match_parent"
>
<ImageView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/userstatus_away"
android:layout_gravity=
"center"
/>
</FrameLayout>
android:layout_marginLeft=
"16dp"
android:drawableLeft=
"@drawable/userstatus_away"
android:drawablePadding=
"16dp"
android:text=
"@string/user_status_away"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Away"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_status_busy"
android:orientation=
"horizontal"
style=
"@style/sidebar_list_item"
>
<FrameLayout
android:layout_width=
"48dp"
android:layout_height=
"match_parent"
>
<ImageView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/userstatus_busy"
android:layout_gravity=
"center"
/>
</FrameLayout>
android:layout_marginLeft=
"16dp"
android:drawableLeft=
"@drawable/userstatus_busy"
android:drawablePadding=
"16dp"
android:text=
"@string/user_status_busy"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Busy"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_status_invisible"
android:orientation=
"horizontal"
style=
"@style/sidebar_list_item"
>
<FrameLayout
android:layout_width=
"48dp"
android:layout_height=
"match_parent"
>
<ImageView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/userstatus_offline"
android:layout_gravity=
"center"
/>
</FrameLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Invisible"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
</LinearLayout>
android:layout_marginLeft=
"16dp"
android:drawableLeft=
"@drawable/userstatus_offline"
android:drawablePadding=
"16dp"
android:text=
"@string/user_status_invisible"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
<chat.rocket.android.widget.DividerView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<LinearLayout
android:id=
"@+id/btn_logout"
android:orientation=
"horizontal"
style=
"@style/sidebar_list_item"
>
android:orientation=
"horizontal"
>
<FrameLayout
android:layout_width=
"48dp"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<chat.rocket.android.widget.FontAwesomeTextView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:textSize=
"14dp"
android:text=
"@string/fa_sign_out"
android:layout_gravity=
"center"
android:gravity=
"center"
/>
android:text=
"@string/fa_sign_out"
android:textSize=
"14dp"
/>
</FrameLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Logout"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
android:text=
"@string/fragment_sidebar_main_logout_title"
android:textAppearance=
"?attr/textAppearanceListItemSmall"
/>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
...
...
app/src/main/res/layout/simple_screen.xml
View file @
51a1d9ba
...
...
@@ -2,7 +2,6 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/content"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
</FrameLayout>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
51a1d9ba
<resources>
<string
name=
"app_name"
>
Rocket.Chat.Android
</string>
<string
name=
"fragment_sidebar_main_channels_title"
>
CHANNELS
</string>
<string
name=
"fragment_sidebar_main_direct_messages_title"
>
DIRECT MESSAGES
</string>
<string
name=
"user_status_online"
>
Online
</string>
<string
name=
"user_status_away"
>
Away
</string>
<string
name=
"user_status_busy"
>
Busy
</string>
<string
name=
"user_status_invisible"
>
Invisible
</string>
<string
name=
"fragment_sidebar_main_logout_title"
>
Logout
</string>
</resources>
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