- Distribute action buttons evenly at the bottom of main activity
- Use colorSecondaryDark as text view hint color
This commit is contained in:
@@ -57,6 +57,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
private lateinit var holdButton: ImageButton
|
private lateinit var holdButton: ImageButton
|
||||||
private lateinit var transferButton: ImageButton
|
private lateinit var transferButton: ImageButton
|
||||||
private lateinit var voicemailButton: ImageButton
|
private lateinit var voicemailButton: ImageButton
|
||||||
|
private lateinit var voicemailButtonSpace: Space
|
||||||
private lateinit var contactsButton: ImageButton
|
private lateinit var contactsButton: ImageButton
|
||||||
private lateinit var messagesButton: ImageButton
|
private lateinit var messagesButton: ImageButton
|
||||||
private lateinit var callsButton: ImageButton
|
private lateinit var callsButton: ImageButton
|
||||||
@@ -151,6 +152,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
infoButton = binding.info
|
infoButton = binding.info
|
||||||
onHoldNotice = binding.onHoldNotice
|
onHoldNotice = binding.onHoldNotice
|
||||||
voicemailButton = binding.voicemailButton
|
voicemailButton = binding.voicemailButton
|
||||||
|
voicemailButtonSpace = binding.voicemailButtonSpace
|
||||||
contactsButton = binding.contactsButton
|
contactsButton = binding.contactsButton
|
||||||
messagesButton = binding.messagesButton
|
messagesButton = binding.messagesButton
|
||||||
callsButton = binding.callsButton
|
callsButton = binding.callsButton
|
||||||
@@ -1927,8 +1929,10 @@ class MainActivity : AppCompatActivity() {
|
|||||||
else
|
else
|
||||||
voicemailButton.setImageResource(R.drawable.voicemail)
|
voicemailButton.setImageResource(R.drawable.voicemail)
|
||||||
voicemailButton.visibility = View.VISIBLE
|
voicemailButton.visibility = View.VISIBLE
|
||||||
|
voicemailButtonSpace.visibility = View.VISIBLE
|
||||||
} else {
|
} else {
|
||||||
voicemailButton.visibility = View.INVISIBLE
|
voicemailButton.visibility = View.GONE
|
||||||
|
voicemailButtonSpace.visibility =View.GONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,8 @@
|
|||||||
android:layout_weight = "1"
|
android:layout_weight = "1"
|
||||||
android:inputType="textEmailAddress"
|
android:inputType="textEmailAddress"
|
||||||
android:textSize="20sp"
|
android:textSize="20sp"
|
||||||
android:hint="@string/callee" >
|
android:hint="@string/callee"
|
||||||
|
android:textColorHint="@color/colorSecondaryDark" >
|
||||||
<!-- <requestFocus /> -->
|
<!-- <requestFocus /> -->
|
||||||
</AutoCompleteTextView>
|
</AutoCompleteTextView>
|
||||||
|
|
||||||
@@ -238,6 +239,7 @@
|
|||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:scrollHorizontally="true"
|
android:scrollHorizontally="true"
|
||||||
android:hint="@string/dtmf"
|
android:hint="@string/dtmf"
|
||||||
|
android:textColorHint="@color/colorSecondaryDark"
|
||||||
android:importantForAutofill="no"
|
android:importantForAutofill="no"
|
||||||
android:inputType="phone"
|
android:inputType="phone"
|
||||||
android:digits="0123456789#*"
|
android:digits="0123456789#*"
|
||||||
@@ -285,65 +287,97 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="end"
|
android:gravity="center"
|
||||||
android:layout_alignParentBottom="true" >
|
android:layout_alignParentBottom="true" >
|
||||||
|
|
||||||
<ImageButton
|
<Space
|
||||||
android:id="@+id/voicemailButton"
|
android:layout_width="0dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="1dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_weight="1" >
|
||||||
android:background="@null"
|
</Space>
|
||||||
android:src="@drawable/voicemail"
|
|
||||||
android:layout_marginEnd="10dp"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:visibility="invisible"
|
|
||||||
android:contentDescription="@string/voicemail" >
|
|
||||||
</ImageButton>
|
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/contactsButton"
|
android:id="@+id/voicemailButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:src="@drawable/contacts"
|
android:gravity="center_horizontal|center_vertical"
|
||||||
android:layout_marginEnd="10dp"
|
android:src="@drawable/voicemail"
|
||||||
android:layout_marginBottom="5dp"
|
android:visibility="gone"
|
||||||
android:contentDescription="@string/contacts" >
|
android:contentDescription="@string/voicemail" >
|
||||||
</ImageButton>
|
</ImageButton>
|
||||||
|
|
||||||
<ImageButton
|
<Space
|
||||||
android:id="@+id/messagesButton"
|
android:id="@+id/voicemailButtonSpace"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="1dp"
|
||||||
android:background="@null"
|
android:layout_weight="1"
|
||||||
android:src="@drawable/messages"
|
android:visibility="gone" >
|
||||||
android:layout_marginEnd="10dp"
|
</Space>
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:contentDescription="@string/messages" >
|
|
||||||
</ImageButton>
|
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/callsButton"
|
android:id="@+id/contactsButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="10dp"
|
android:background="@null"
|
||||||
android:layout_marginBottom="5dp"
|
android:gravity="center_horizontal|center_vertical"
|
||||||
android:padding="0dp"
|
android:src="@drawable/contacts"
|
||||||
android:background="@null"
|
android:contentDescription="@string/contacts" >
|
||||||
android:src="@drawable/calls"
|
</ImageButton>
|
||||||
android:contentDescription="@string/call_history" >
|
|
||||||
</ImageButton>
|
|
||||||
|
|
||||||
<ImageButton
|
<Space
|
||||||
android:id="@+id/dialpadButton"
|
android:layout_width="0dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="1dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_weight="1" >
|
||||||
android:layout_marginEnd="15dp"
|
</Space>
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
android:background="@null"
|
<ImageButton
|
||||||
android:src="@drawable/dialpad_off"
|
android:id="@+id/messagesButton"
|
||||||
android:contentDescription="@string/dialpad" >
|
android:layout_width="wrap_content"
|
||||||
</ImageButton>
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@null"
|
||||||
|
android:gravity="center_horizontal|center_vertical"
|
||||||
|
android:src="@drawable/messages"
|
||||||
|
android:contentDescription="@string/messages" >
|
||||||
|
</ImageButton>
|
||||||
|
|
||||||
|
<Space
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" >
|
||||||
|
</Space>
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/callsButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@null"
|
||||||
|
android:gravity="center_horizontal|center_vertical"
|
||||||
|
android:src="@drawable/calls"
|
||||||
|
android:contentDescription="@string/call_history" >
|
||||||
|
</ImageButton>
|
||||||
|
|
||||||
|
<Space
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" >
|
||||||
|
</Space>
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/dialpadButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@null"
|
||||||
|
android:gravity="center_horizontal|center_vertical"
|
||||||
|
android:src="@drawable/dialpad_off"
|
||||||
|
android:contentDescription="@string/dialpad" >
|
||||||
|
</ImageButton>
|
||||||
|
|
||||||
|
<Space
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" >
|
||||||
|
</Space>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user