Fix options in incall layout
This commit is contained in:
parent
705ddc5cee
commit
eddcf28501
3 changed files with 112 additions and 111 deletions
|
@ -52,34 +52,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:visibility="gone"
|
||||
android:gravity="right"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/transfer"
|
||||
android:background="@drawable/options_transfer"
|
||||
android:text="@string/button_transfer"
|
||||
android:gravity="center"
|
||||
android:paddingTop="50dp"
|
||||
android:textColor="@drawable/text_incall_button_color"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/addCall"
|
||||
android:background="@drawable/options_add_call_alt"
|
||||
android:text="@string/button_add_call"
|
||||
android:gravity="center"
|
||||
android:paddingTop="50dp"
|
||||
android:textColor="@drawable/text_incall_button_color"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
|
@ -146,6 +119,34 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_weight="1">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/transfer"
|
||||
android:background="@drawable/options_transfer"
|
||||
android:text="@string/button_transfer"
|
||||
android:gravity="center"
|
||||
android:paddingTop="35dp"
|
||||
android:visibility="invisible"
|
||||
android:textColor="@drawable/text_incall_button_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/addCall"
|
||||
android:background="@drawable/options_add_call_alt"
|
||||
android:text="@string/button_add_call"
|
||||
android:gravity="center"
|
||||
android:paddingTop="35dp"
|
||||
android:visibility="invisible"
|
||||
android:textColor="@drawable/text_incall_button_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/options"
|
||||
android:background="@drawable/options"
|
||||
|
@ -154,8 +155,9 @@
|
|||
android:paddingTop="30dp"
|
||||
android:textColor="@drawable/text_incall_button_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dialer"
|
||||
|
@ -169,6 +171,4 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
|
@ -60,18 +60,18 @@
|
|||
android:background="@drawable/options_transfer"
|
||||
android:text="@string/button_transfer"
|
||||
android:gravity="center"
|
||||
android:paddingTop="50dp"
|
||||
android:paddingTop="40dp"
|
||||
android:visibility="invisible"
|
||||
android:textColor="@drawable/text_incall_button_color"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible" />
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/addCall"
|
||||
android:background="@drawable/options_add_call_alt"
|
||||
android:text="@string/button_add_call"
|
||||
android:gravity="center"
|
||||
android:paddingTop="50dp"
|
||||
android:paddingTop="40dp"
|
||||
android:textColor="@drawable/text_incall_button_color"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -130,6 +130,7 @@
|
|||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/black"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
|
|
|
@ -215,7 +215,7 @@ public class ChatStorage {
|
|||
ArrayList<String> chatList = new ArrayList<String>();
|
||||
|
||||
Cursor c = db.query(TABLE_NAME, null, null, null, "remoteContact", null, "id DESC");
|
||||
while (c.moveToNext()) {
|
||||
while (c != null && c.moveToNext()) {
|
||||
String remoteContact = c.getString(c.getColumnIndex("remoteContact"));
|
||||
chatList.add(remoteContact);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue