Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e2f8e96 authored by Sai Cheemalapati's avatar Sai Cheemalapati
Browse files

Fixed no contacts layout on nexus 7.

Bug: 16154824

Change-Id: Id9ff3a3f7635c9b0b41f3aa4e6db9989b81e5f87
parent 333091ae
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="?attr/favorites_padding_bottom">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal">
        <View
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="@integer/people_activity_land_space_layout_weight"
            android:background="@color/background_primary"/>
        <View
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:background="@color/contact_favorites_list_background_color"
            android:layout_weight="@integer/people_activity_land_list_view_layout_weight"
            android:elevation="@dimen/people_activity_card_elevation"/>
        <View
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="@integer/people_activity_land_space_layout_weight"
            android:background="@color/background_primary"/>
    </LinearLayout>
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true">
        <include layout="@layout/contacts_unavailable_fragment_content"/>
    </ScrollView>
</FrameLayout>
+4 −76
Original line number Diff line number Diff line
@@ -17,79 +17,7 @@
<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:fillViewport="true">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:background="@drawable/panel_message">
        <TextView
            android:id="@+id/message"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="48dip"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:textColor="?android:attr/textColorSecondary" />

        <TextView
            android:id="@+id/secondary_message"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="?android:attr/textColorSecondary"
            android:layout_gravity="center_horizontal"
            android:layout_marginBottom="@dimen/no_accounts_message_margin" />

        <LinearLayout
            android:orientation="vertical"
            android:layout_marginLeft="48dip"
            android:layout_marginRight="48dip"
            android:layout_marginStart="48dip"
            android:layout_marginEnd="48dip"
            android:layout_width="wrap_content"
            android:layout_height="match_parent">
            <Button
                android:id="@+id/create_contact_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="15dip"
                android:text="@string/contacts_unavailable_create_contact" />

            <Button
                android:id="@+id/add_account_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="15dip"
                android:text="@string/contacts_unavailable_add_account" />

            <Button
                android:id="@+id/import_contacts_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="15dip"
                android:text="@string/contacts_unavailable_import_contacts" />

            <Button
                android:id="@+id/import_failure_uninstall_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="15dip"
                android:text="@string/upgrade_out_of_memory_uninstall" />

            <Button
                android:id="@+id/import_failure_retry_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="15dip"
                android:text="@string/upgrade_out_of_memory_retry" />

            <ProgressBar
                android:id="@+id/progress"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginBottom="15dip" />
        </LinearLayout>
    </LinearLayout>
    android:fillViewport="true"
    android:background="@color/background_primary">
    <include layout="@layout/contacts_unavailable_fragment_content"/>
</ScrollView>
+90 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_horizontal">
    <TextView
        android:id="@+id/message"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="48dip"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:textColor="?android:attr/textColorSecondary" />

    <TextView
        android:id="@+id/secondary_message"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="?android:attr/textColorSecondary"
        android:layout_gravity="center_horizontal"
        android:layout_marginBottom="@dimen/no_accounts_message_margin" />

    <LinearLayout
        android:orientation="vertical"
        android:layout_marginLeft="48dip"
        android:layout_marginRight="48dip"
        android:layout_marginStart="48dip"
        android:layout_marginEnd="48dip"
        android:layout_width="wrap_content"
        android:layout_height="match_parent">
        <Button
            android:id="@+id/create_contact_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="15dip"
            android:text="@string/contacts_unavailable_create_contact" />

        <Button
            android:id="@+id/add_account_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="15dip"
            android:text="@string/contacts_unavailable_add_account" />

        <Button
            android:id="@+id/import_contacts_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="15dip"
            android:text="@string/contacts_unavailable_import_contacts" />

        <Button
            android:id="@+id/import_failure_uninstall_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="15dip"
            android:text="@string/upgrade_out_of_memory_uninstall" />

        <Button
            android:id="@+id/import_failure_retry_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="15dip"
            android:text="@string/upgrade_out_of_memory_retry" />

        <ProgressBar
            android:id="@+id/progress"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginBottom="15dip" />
    </LinearLayout>
</LinearLayout>