Contact card with and without social updates
- This is for the phone (landscape and portrait)
- Some tweaks were done to the tablet to prevent regression
but it's not quite ready yet
- No social updates means a single scrolling list of details
- Having social updates means a tab carousel and ViewPager
- Add invisible contact loader fragment
- Now the loader fragment loads the contact --> passes to
ContactDetailActivity --> passes to all necessary fragments /
carousels (no matter the configuration)
- Get rid of ContactDetailAboutFragment and move those changes
into the ContactDetailFragment
Change-Id: I7be55ae7205bbcb8106bf2f2e4ae8dd6ce2c6a78
diff --git a/res/layout/contact_detail_fragment.xml b/res/layout/contact_detail_fragment.xml
index 70a9a28..d16771c 100644
--- a/res/layout/contact_detail_fragment.xml
+++ b/res/layout/contact_detail_fragment.xml
@@ -15,7 +15,7 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/contact_detail"
+ android:id="@+id/contact_detail_about_fragment"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -25,15 +25,14 @@
android:layout_height="0px"
android:layout_weight="1"
android:background="@color/background_primary"
- android:divider="@null"
- />
+ android:divider="@null"/>
<ScrollView android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
- android:visibility="gone"
- >
+ android:visibility="gone">
+
<TextView android:id="@+id/emptyText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -43,8 +42,8 @@
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:paddingTop="10dip"
- android:lineSpacingMultiplier="0.92"
- />
+ android:lineSpacingMultiplier="0.92"/>
+
</ScrollView>
<!-- "Copy to my contacts"- button -->