Guest User

Untitled

a guest
Feb 5th, 2015
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.42 KB | None | 0 0
  1. XML
  2.  
  3. File row_chat_me.xml
  4. <?xml version="1.0" encoding="utf-8"?>
  5. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6.     android:orientation="vertical"
  7.     android:layout_width="fill_parent"
  8.     android:layout_height="fill_parent" >
  9.  
  10.     <TextView
  11.         android:id="@+id/txt_message_me_time"
  12.         android:layout_height="25dp"
  13.         android:layout_marginTop="3dp"
  14.         style="@style/textView_chat_me"/>
  15.  
  16.     <TextView
  17.         android:id="@+id/txt_message_me_from"
  18.         android:layout_height="35dp"
  19.         android:layout_below="@+id/txt_message_me_time"
  20.         style="@style/textView_chat_me"/>
  21.  
  22.     <TextView
  23.         android:id="@+id/txt_message_me_message"
  24.         android:layout_below="@+id/txt_message_me_from"
  25.         android:layout_height="50dp"
  26.         android:layout_marginBottom="3dp"
  27.         style="@style/textView_chat_me"/>
  28.  
  29. </RelativeLayout>
  30.  
  31. File row_chat_other.xml
  32.  
  33. <?xml version="1.0" encoding="utf-8"?>
  34. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  35.     android:orientation="vertical"
  36.     android:layout_width="fill_parent"
  37.     android:layout_height="fill_parent" >
  38.  
  39.     <TextView
  40.         android:id="@+id/txt_message_others_time"
  41.         android:layout_height="25dp"
  42.         style="@style/textView_chat_others"
  43.         android:layout_marginTop="3dp" />
  44.  
  45.     <TextView
  46.         android:id="@+id/txt_message_others_from"
  47.         android:layout_height="35dp"
  48.         android:layout_below="@+id/txt_message_others_time"
  49.         style="@style/textView_chat_others" />
  50.  
  51.     <TextView
  52.         android:id="@+id/txt_message_others_message"
  53.         android:layout_height="50dp"
  54.         style="@style/textView_chat_others"
  55.         android:layout_marginBottom="3dp"
  56.         android:layout_below="@+id/txt_message_others_from" />
  57.  
  58. </RelativeLayout>
  59.  
  60. File fragment_group.xml
  61.  
  62. <?xml version="1.0" encoding="utf-8"?>
  63. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  64.     android:orientation="horizontal"
  65.     android:layout_width="match_parent"
  66.     android:layout_height="match_parent">
  67.  
  68.     <LinearLayout
  69.         android:layout_width="match_parent"
  70.         android:layout_height="wrap_content"
  71.         android:layout_weight=".25"
  72.         android:orientation="horizontal"
  73.         android:id="@+id/listView_regNewGroup" >
  74.  
  75.         <EditText
  76.             android:id="@+id/txt_group_name"
  77.             android:layout_width="0dp"
  78.             android:layout_weight=".75"
  79.             android:layout_height="match_parent"
  80.             android:background="#CBCBB2"
  81.             android:hint="grupp name" />
  82.  
  83.         <Button
  84.             android:id="@+id/btn_reg_new_group"
  85.             android:layout_width="0dp"
  86.             android:layout_weight=".25"
  87.             android:layout_height="match_parent"
  88.             android:text="Create new group"
  89.             android:textSize ="15sp"
  90.             android:background="#D7C5E0"
  91.             android:layout_toRightOf="@+id/txt_group_name" />
  92.  
  93.     </LinearLayout>
  94.  
  95.     <LinearLayout
  96.         android:layout_width="match_parent"
  97.         android:layout_height="wrap_content"
  98.         android:layout_weight=".75"
  99.         android:layout_below="@+id/listView_regNewGroup" >
  100.  
  101.         <ListView
  102.             android:id="@+id/listView_group"
  103.             android:layout_width="match_parent"
  104.             android:layout_height="match_parent" />
  105.  
  106.     </LinearLayout>
  107.  
  108. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment