New ringtone activity layout

This commit is contained in:
Phillip Hsu
2016-08-06 03:34:53 -07:00
parent 29194f241f
commit 6b7c9cedee
5 changed files with 77 additions and 35 deletions
+44 -26
View File
@@ -1,7 +1,8 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:background="@color/colorPrimary">
<LinearLayout
@@ -24,20 +25,20 @@
<LinearLayout
android:id="@+id/auto_silenced_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_gravity="center"
android:gravity="center"
android:visibility="gone">
<TextView
android:id="@+id/auto_silenced_text"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:keepScreenOn="true"
android:gravity="center_horizontal"
android:drawableTop="@drawable/ic_half_day_1_black_24dp"
android:drawablePadding="8dp"
android:text="@string/alarm_auto_silenced_text"
style="@style/TextAppearance.AppCompat.Large.Inverse"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/ok"
@@ -48,30 +49,47 @@
</LinearLayout>
<android.support.v7.widget.GridLayout
<LinearLayout
android:id="@+id/buttons_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:layout_marginBottom="72dp"
app:columnCount="2">
android:orientation="horizontal">
<android.support.design.widget.FloatingActionButton
<FrameLayout
android:id="@+id/btn_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_columnWeight="1"
app:layout_gravity="center"
app:elevation="0dp"/>
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?selectableItemBackground">
<android.support.design.widget.FloatingActionButton
<TextView
android:id="@+id/btn_text_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:drawablePadding="8dp"
style="@style/TextAppearance.AppCompat.Medium.Inverse"/>
</FrameLayout>
<FrameLayout
android:id="@+id/btn_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_columnWeight="1"
app:layout_gravity="center"
app:elevation="0dp"/>
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?selectableItemBackground">
</android.support.v7.widget.GridLayout>
<TextView
android:id="@+id/btn_text_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:drawablePadding="8dp"
style="@style/TextAppearance.AppCompat.Medium.Inverse"/>
</FrameLayout>
</FrameLayout>
</LinearLayout>
</LinearLayout>
-2
View File
@@ -3,8 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginTop="8dp">