Commit 51a1d9ba authored by Tiago Cunha's avatar Tiago Cunha

Exported strings

Clean up the view a bit
parent f791fce4
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"> android:shape="oval">
<solid android:color="@color/userstatus_away"/> <solid android:color="@color/userstatus_away" />
<stroke <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> </shape>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"> android:shape="oval">
<solid android:color="@color/userstatus_busy"/> <solid android:color="@color/userstatus_busy" />
<stroke <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> </shape>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"> android:shape="oval">
<solid android:color="@color/userstatus_offline"/> <solid android:color="@color/userstatus_offline" />
<stroke <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> </shape>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"> android:shape="oval">
<solid android:color="@color/userstatus_online"/> <solid android:color="@color/userstatus_online" />
<stroke <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> </shape>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="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:background="?attr/colorPrimaryDark"
android:foreground="?attr/selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="@dimen/margin_16"
android:layout_alignParentTop="true"
android:elevation="2dp"
>
<ImageView
android:id="@+id/current_user_status"
android:layout_width="8dp"
android:layout_height="8dp"
android:src="@drawable/userstatus_online"
/>
<Space
android:layout_width="@dimen/margin_8"
android:layout_height="wrap_content"
/>
<ImageView
android:id="@+id/current_user_avatar"
android:layout_width="48dp"
android:layout_height="48dp"
/>
<FrameLayout
android:layout_width="0px"
android:layout_height="wrap_content"
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>
<chat.rocket.android.widget.DownUpToggleView
android:id="@+id/toggle_user_action"
android:layout_width="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"
>
<LinearLayout <LinearLayout
android:id="@+id/user_info_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="?attr/listPreferredItemPaddingLeft" android:layout_alignParentTop="true"
android:orientation="vertical" android:background="?attr/colorPrimaryDark"
> android:elevation="2dp"
<FrameLayout android:foreground="?attr/selectableItemBackground"
android:layout_width="match_parent" android:gravity="center_vertical"
android:layout_height="wrap_content" android:orientation="horizontal"
android:layout_marginTop="@dimen/margin_8" android:padding="@dimen/margin_16">
>
<TextView <ImageView
android:layout_width="wrap_content" android:id="@+id/current_user_status"
android:layout_height="wrap_content" android:layout_width="8dp"
android:text="CHANNELS" android:layout_height="8dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body2" android:src="@drawable/userstatus_online" />
android:textStyle="bold"
android:alpha="0.62" <Space
android:layout_gravity="start|center_vertical" android:layout_width="@dimen/margin_8"
/> android:layout_height="wrap_content" />
<chat.rocket.android.widget.FontAwesomeButton <ImageView
android:id="@+id/current_user_avatar"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp" />
android:text="@string/fa_plus"
android:textSize="12dp"
android:layout_gravity="end|center_vertical"
style="@style/Widget.AppCompat.Button.Borderless"
/>
</FrameLayout>
<LinearLayout
android:id="@+id/channels_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginEnd="?attr/listPreferredItemPaddingRight"
/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_8"
>
<TextView <TextView
android:layout_width="wrap_content" android:id="@+id/current_user_name"
android:layout_width="0px"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="DIRECT MESSAGES" android:layout_gravity="center_vertical"
android:textAppearance="@style/TextAppearance.AppCompat.Body2" android:layout_marginLeft="@dimen/margin_8"
android:textStyle="bold" android:layout_marginRight="@dimen/margin_8"
android:alpha="0.62" android:layout_weight="1"
android:layout_gravity="start|center_vertical" android:textSize="14sp"
/> tools:text="John Doe" />
<chat.rocket.android.widget.FontAwesomeButton <chat.rocket.android.widget.DownUpToggleView
android:layout_width="48dp" android:id="@+id/toggle_user_action"
android:layout_height="48dp" android:layout_width="wrap_content"
android:text="@string/fa_plus" android:layout_height="wrap_content" />
android:textSize="12dp"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_gravity="end|center_vertical"
/>
</FrameLayout>
<LinearLayout
android:id="@+id/direct_messages_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginEnd="?attr/listPreferredItemPaddingRight"
/>
</LinearLayout> </LinearLayout>
</android.support.v4.widget.NestedScrollView>
<android.support.v4.widget.NestedScrollView <android.support.v4.widget.NestedScrollView
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:background="?attr/colorPrimaryDark"
android:elevation="2dp"
android:visibility="gone"
tools:visibility="visible"
>
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:layout_alignParentBottom="true"
> android:layout_below="@+id/user_info_container"
<LinearLayout android:background="?attr/colorPrimary">
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>
<TextView <LinearLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
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>
<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>
<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:layout_height="wrap_content"
android:text="Invisible" android:orientation="vertical"
android:textAppearance="?attr/textAppearanceListItemSmall" android:paddingStart="?attr/listPreferredItemPaddingLeft">
/>
</LinearLayout> <FrameLayout
android:layout_width="match_parent"
<chat.rocket.android.widget.DividerView android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_marginTop="@dimen/margin_8">
android:layout_height="wrap_content"/>
<TextView
<LinearLayout android:layout_width="wrap_content"
android:id="@+id/btn_logout" android:layout_height="wrap_content"
android:orientation="horizontal" android:layout_gravity="start|center_vertical"
style="@style/sidebar_list_item" android:alpha="0.62"
> android:text="@string/fragment_sidebar_main_channels_title"
<FrameLayout android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:layout_width="48dp" android:textStyle="bold" />
android:layout_height="match_parent"
> <chat.rocket.android.widget.FontAwesomeButton
<chat.rocket.android.widget.FontAwesomeTextView style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="16dp" android:layout_width="48dp"
android:layout_height="16dp" android:layout_height="48dp"
android:textSize="14dp" android:layout_gravity="end|center_vertical"
android:text="@string/fa_sign_out" android:text="@string/fa_plus"
android:layout_gravity="center" android:textSize="12dp" />
android:gravity="center"
/> </FrameLayout>
</FrameLayout>
<LinearLayout
<TextView android:id="@+id/channels_container"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content"
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">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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:layout_gravity="end|center_vertical"
android:text="@string/fa_plus"
android:textSize="12dp" />
</FrameLayout>
<LinearLayout
android:id="@+id/direct_messages_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="?attr/listPreferredItemPaddingRight"
android:orientation="vertical" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
<android.support.v4.widget.NestedScrollView
android:id="@+id/user_action_outer_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@+id/user_info_container"
android:background="?attr/colorPrimaryDark"
android:elevation="2dp"
android:visibility="gone"
tools:visibility="visible">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Logout" android:orientation="vertical">
android:textAppearance="?attr/textAppearanceListItemSmall"
/> <TextView
</LinearLayout> android:id="@+id/btn_status_online"
</LinearLayout> style="@style/sidebar_list_item"
</android.support.v4.widget.NestedScrollView> android:layout_marginLeft="16dp"
android:drawableLeft="@drawable/userstatus_online"
android:drawablePadding="16dp"
android:text="@string/user_status_online"
android:textAppearance="?attr/textAppearanceListItemSmall" />
<TextView
android:id="@+id/btn_status_away"
style="@style/sidebar_list_item"
android:layout_marginLeft="16dp"
android:drawableLeft="@drawable/userstatus_away"
android:drawablePadding="16dp"
android:text="@string/user_status_away"
android:textAppearance="?attr/textAppearanceListItemSmall" />
<TextView
android:id="@+id/btn_status_busy"
style="@style/sidebar_list_item"
android:layout_marginLeft="16dp"
android:drawableLeft="@drawable/userstatus_busy"
android:drawablePadding="16dp"
android:text="@string/user_status_busy"
android:textAppearance="?attr/textAppearanceListItemSmall" />
<TextView
android:id="@+id/btn_status_invisible"
style="@style/sidebar_list_item"
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" />
<LinearLayout
android:id="@+id/btn_logout"
style="@style/sidebar_list_item"
android:orientation="horizontal">
<FrameLayout
android:layout_width="48dp"
android:layout_height="match_parent">
<chat.rocket.android.widget.FontAwesomeTextView
android:layout_width="16dp"
android:layout_height="16dp"
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="@string/fragment_sidebar_main_logout_title"
android:textAppearance="?attr/textAppearanceListItemSmall" />
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</RelativeLayout> </RelativeLayout>
\ No newline at end of file
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/content" android:id="@+id/content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
>
</FrameLayout> </FrameLayout>
\ No newline at end of file
<resources> <resources>
<string name="app_name">Rocket.Chat.Android</string> <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> </resources>
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