sidebar.xml 2.16 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 4 5 6 7
    android:layout_width="288dp"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:background="?attr/colorPrimary"
    android:orientation="vertical"
8 9 10 11 12 13 14 15 16
    android:theme="@style/AppTheme.Dark"
    >

  <LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="?attr/colorPrimaryDark"
      android:orientation="vertical"
      >
17 18

    <LinearLayout
19
        android:id="@+id/user_info_container"
20 21
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
22 23 24 25 26
        android:background="?attr/selectableItemBackground"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:padding="@dimen/margin_16"
        >
27

28 29 30 31 32 33
      <ImageView
          android:id="@+id/img_userstatus"
          android:layout_width="8dp"
          android:layout_height="8dp"
          android:src="@drawable/userstatus_online"
          />
34

35 36 37 38
      <Space
          android:layout_width="@dimen/margin_8"
          android:layout_height="wrap_content"
          />
39

40
      <include layout="@layout/avatar_container_large"/>
41

42 43 44 45 46 47 48
      <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"
          >
49

50 51 52 53 54 55 56 57
        <TextView
            android:id="@+id/txt_account_info"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:text="John Doe"
            android:textSize="14sp"
            />
58

59
      </FrameLayout>
60

61
      <chat.rocket.android.widget.FontAwesomeTextView
62 63 64 65 66 67
          android:id="@+id/img_user_action_toggle"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/fa_chevron_down"
          android:textSize="16dp"
          />
68 69

    </LinearLayout>
70
  </LinearLayout>
71 72

</LinearLayout>