Reformat layouts

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-07-29 14:03:52 +02:00
parent 796f24143a
commit e0c7b01e31
15 changed files with 64 additions and 64 deletions

View File

@ -20,9 +20,9 @@
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
tools:context=".activities.MagicCallActivity"> tools:context=".activities.MagicCallActivity">

View File

@ -8,9 +8,9 @@
tools:context=".activities.MainActivity"> tools:context=".activities.MainActivity">
<android.support.design.widget.AppBarLayout <android.support.design.widget.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:id="@+id/appBarLayout">
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"

View File

@ -33,9 +33,9 @@
android:visibility="invisible"/> android:visibility="invisible"/>
<ImageView <ImageView
android:id="@+id/avatarImageView"
android:layout_width="80dp" android:layout_width="80dp"
android:layout_height="80dp" android:layout_height="80dp"
android:id="@+id/avatarImageView"
android:layout_centerInParent="true"/> android:layout_centerInParent="true"/>
<ImageView <ImageView

View File

@ -47,6 +47,7 @@
android:indeterminateTintMode="src_in"/> android:indeterminateTintMode="src_in"/>
<TextView <TextView
android:id="@+id/connectingTextView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/progress_bar" android:layout_below="@id/progress_bar"
@ -54,8 +55,7 @@
android:layout_margin="16dp" android:layout_margin="16dp"
android:text="@string/nc_connecting_call" android:text="@string/nc_connecting_call"
android:textAlignment="center" android:textAlignment="center"
android:textColor="@color/white" android:textColor="@color/white"/>
android:id="@+id/connectingTextView"/>
</RelativeLayout> </RelativeLayout>
@ -77,8 +77,8 @@
<FrameLayout <FrameLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentTop="true" android:layout_alignParentEnd="true"
android:layout_alignParentEnd="true"> android:layout_alignParentTop="true">
<org.webrtc.SurfaceViewRenderer <org.webrtc.SurfaceViewRenderer
android:id="@+id/pip_video_view" android:id="@+id/pip_video_view"
@ -93,8 +93,8 @@
android:id="@+id/call_control_switch_camera" android:id="@+id/call_control_switch_camera"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="20dp"
android:layout_gravity="center_horizontal|bottom" android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="20dp"
app:checked="false" app:checked="false"
app:enableInitialAnimation="false" app:enableInitialAnimation="false"
@ -153,13 +153,13 @@
android:id="@+id/callControlEnableSpeaker" android:id="@+id/callControlEnableSpeaker"
android:layout_width="60dp" android:layout_width="60dp"
android:layout_height="60dp" android:layout_height="60dp"
app:checked="false"
android:visibility="gone" android:visibility="gone"
app:animateRearImage="false"
app:checked="false"
app:enableInitialAnimation="false" app:enableInitialAnimation="false"
app:frontBackgroundColor="@color/colorPrimary" app:frontBackgroundColor="@color/colorPrimary"
app:animateRearImage="false"
app:rearBackgroundColor="@color/colorPrimaryDark"
app:frontImage="@drawable/ic_volume_up_white_24dp" app:frontImage="@drawable/ic_volume_up_white_24dp"
app:rearBackgroundColor="@color/colorPrimaryDark"
app:rearImage="@drawable/ic_volume_up_white_24dp"/> app:rearImage="@drawable/ic_volume_up_white_24dp"/>
</LinearLayout> </LinearLayout>

View File

@ -48,12 +48,12 @@
android:id="@+id/conversationNameTextView" android:id="@+id/conversationNameTextView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/incomingCallTextView"
android:layout_marginBottom="16dp"
android:ellipsize="marquee" android:ellipsize="marquee"
android:textAlignment="center" android:textAlignment="center"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="28sp" android:textSize="28sp"
android:layout_marginBottom="16dp"
android:layout_below="@+id/incomingCallTextView"
tools:text="Victor Gregorius Magnus"/> tools:text="Victor Gregorius Magnus"/>
</RelativeLayout> </RelativeLayout>

View File

@ -25,5 +25,5 @@
<include layout="@layout/rv_item_call_header"/> <include layout="@layout/rv_item_call_header"/>
<include layout="@layout/controller_generic_rv" /> <include layout="@layout/controller_generic_rv"/>
</LinearLayout> </LinearLayout>

View File

@ -21,25 +21,25 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end" android:layout_gravity="end"
android:layout_marginEnd="0dp" android:layout_marginEnd="0dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:layout_toStartOf="@+id/fast_scroller_handle" android:layout_toStartOf="@+id/fast_scroller_handle"
android:background="@drawable/fast_scroller_bubble" android:background="@drawable/fast_scroller_bubble"
android:gravity="center" android:gravity="center"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textColor="?android:attr/textColorPrimaryInverse" android:textColor="?android:attr/textColorPrimaryInverse"
android:textSize="38sp" android:textSize="38sp"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible" tools:text="A"
tools:text="A" /> tools:visibility="visible"/>
<ImageView <ImageView
android:id="@+id/fast_scroller_handle" android:id="@+id/fast_scroller_handle"
android:alpha="0.5"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:paddingStart="6dp" android:alpha="0.5"
android:contentDescription="@null" android:contentDescription="@null"
android:paddingStart="6dp"
android:src="@drawable/fast_scroller_handle"/> android:src="@drawable/fast_scroller_handle"/>
</RelativeLayout> </RelativeLayout>

View File

@ -47,8 +47,8 @@
android:layout_toEndOf="@id/icon_image_view" android:layout_toEndOf="@id/icon_image_view"
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" android:focusableInTouchMode="false"
android:textSize="16sp"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="16sp"
tools:text="Start a new conversation"/> tools:text="Start a new conversation"/>
</RelativeLayout> </RelativeLayout>

View File

@ -40,7 +40,7 @@
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:contentDescription="@null" android:contentDescription="@null"
android:src="@drawable/ic_group_black_24px" android:src="@drawable/ic_group_black_24px"
android:tint="@color/colorPrimary" /> android:tint="@color/colorPrimary"/>
<TextView <TextView
android:id="@+id/description_text" android:id="@+id/description_text"
@ -54,7 +54,7 @@
android:singleLine="true" android:singleLine="true"
android:text="@string/nc_public_call" android:text="@string/nc_public_call"
android:textAppearance="?android:attr/textAppearanceListItem" android:textAppearance="?android:attr/textAppearanceListItem"
tools:text="@string/nc_public_call" /> tools:text="@string/nc_public_call"/>
</RelativeLayout> </RelativeLayout>
@ -76,7 +76,7 @@
android:text="@string/nc_public_call_explanation" android:text="@string/nc_public_call_explanation"
android:textAlignment="center" android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceListItem" android:textAppearance="?android:attr/textAppearanceListItem"
tools:text="@string/nc_public_call_explanation" /> tools:text="@string/nc_public_call_explanation"/>
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View File

@ -49,8 +49,8 @@
android:layout_width="10dp" android:layout_width="10dp"
android:layout_height="10dp" android:layout_height="10dp"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:layout_marginEnd="6dp"
android:layout_marginBottom="6dp" android:layout_marginBottom="6dp"
android:layout_marginEnd="6dp"
android:src="@drawable/ic_lock_white_24px" android:src="@drawable/ic_lock_white_24px"
android:visibility="visible"/> android:visibility="visible"/>

View File

@ -52,8 +52,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:layout_marginStart="@dimen/margin_between_elements"
android:layout_marginEnd="@dimen/margin_between_elements" android:layout_marginEnd="@dimen/margin_between_elements"
android:layout_marginStart="@dimen/margin_between_elements"
android:layout_toEndOf="@id/frame_layout" android:layout_toEndOf="@id/frame_layout"
android:orientation="vertical"> android:orientation="vertical">
@ -70,8 +70,8 @@
android:id="@+id/secondary_text" android:id="@+id/secondary_text"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
tools:text="A week ago"/> tools:text="A week ago"/>

View File

@ -35,9 +35,9 @@
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" android:focusableInTouchMode="false"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="16sp"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="16sp"
tools:drawableLeft="@drawable/ic_add_grey600_24px" tools:drawableLeft="@drawable/ic_add_grey600_24px"
tools:drawablePadding="16dp" tools:drawablePadding="16dp"
tools:text="Start a new conversation" /> tools:text="Start a new conversation"/>
</RelativeLayout> </RelativeLayout>

View File

@ -21,9 +21,9 @@
<FrameLayout <FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
android:padding="8dp"> android:padding="8dp">
<ProgressBar <ProgressBar
@ -37,8 +37,8 @@
android:id="@+id/progress_message" android:id="@+id/progress_message"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/nc_no_more_load_retry"
android:layout_gravity="center" android:layout_gravity="center"
android:text="@string/nc_no_more_load_retry"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible"/> tools:visibility="visible"/>

View File

@ -34,10 +34,10 @@
android:id="@+id/title_text_view" android:id="@+id/title_text_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:textColor="@color/colorPrimary" android:textColor="@color/colorPrimary"
tools:text="A"/> tools:text="A"/>