Loading res/layout-sw720dp/quickcontact_activity.xml +27 −34 Original line number Diff line number Diff line Loading @@ -24,17 +24,6 @@ android:focusableInTouchMode="true" android:descendantFocusability="afterDescendants" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <View android:layout_width="match_parent" android:layout_height="@dimen/quickcontact_starting_empty_height" android:contentDescription="@string/quickcontact_transparent_view_description" android:id="@+id/transparent_view" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" Loading @@ -45,16 +34,20 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="@integer/contact_list_space_layout_weight" android:background="@color/background_primary" android:focusable="false" /> android:contentDescription="@string/quickcontact_transparent_view_description" /> <LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="@integer/contact_list_card_layout_weight" android:orientation="vertical" android:elevation="@dimen/contact_list_card_elevation" android:outlineProvider="bounds" > android:layout_height="match_parent" android:orientation="vertical"> <View android:layout_width="match_parent" android:layout_height="@dimen/quickcontact_starting_empty_height" android:contentDescription="@string/quickcontact_transparent_view_description" android:id="@+id/transparent_view" /> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" Loading @@ -63,6 +56,7 @@ </FrameLayout> <include layout="@layout/quickcontact_content" /> </LinearLayout> <View Loading @@ -70,9 +64,8 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="@integer/contact_list_space_layout_weight" android:background="@color/background_primary" android:focusable="false" /> </LinearLayout> android:contentDescription="@string/quickcontact_transparent_view_description" /> </LinearLayout> <!-- This title's maximum height must be less than the minimum size of its Loading src/com/android/contacts/widget/MultiShrinkScroller.java +15 −1 Original line number Diff line number Diff line Loading @@ -275,7 +275,21 @@ public class MultiShrinkScroller extends FrameLayout { mLargeTextView = (TextView) findViewById(R.id.large_title); mInvisiblePlaceholderTextView = (TextView) findViewById(R.id.placeholder_textview); mStartColumn = findViewById(R.id.empty_start_column); // Touching the empty space should close the card if (mStartColumn != null) { mStartColumn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { scrollOffBottom(); } }); findViewById(R.id.empty_end_column).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { scrollOffBottom(); } }); } mListener = listener; mIsOpenContactSquare = isOpenContactSquare; Loading Loading
res/layout-sw720dp/quickcontact_activity.xml +27 −34 Original line number Diff line number Diff line Loading @@ -24,17 +24,6 @@ android:focusableInTouchMode="true" android:descendantFocusability="afterDescendants" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <View android:layout_width="match_parent" android:layout_height="@dimen/quickcontact_starting_empty_height" android:contentDescription="@string/quickcontact_transparent_view_description" android:id="@+id/transparent_view" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" Loading @@ -45,16 +34,20 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="@integer/contact_list_space_layout_weight" android:background="@color/background_primary" android:focusable="false" /> android:contentDescription="@string/quickcontact_transparent_view_description" /> <LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="@integer/contact_list_card_layout_weight" android:orientation="vertical" android:elevation="@dimen/contact_list_card_elevation" android:outlineProvider="bounds" > android:layout_height="match_parent" android:orientation="vertical"> <View android:layout_width="match_parent" android:layout_height="@dimen/quickcontact_starting_empty_height" android:contentDescription="@string/quickcontact_transparent_view_description" android:id="@+id/transparent_view" /> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" Loading @@ -63,6 +56,7 @@ </FrameLayout> <include layout="@layout/quickcontact_content" /> </LinearLayout> <View Loading @@ -70,9 +64,8 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="@integer/contact_list_space_layout_weight" android:background="@color/background_primary" android:focusable="false" /> </LinearLayout> android:contentDescription="@string/quickcontact_transparent_view_description" /> </LinearLayout> <!-- This title's maximum height must be less than the minimum size of its Loading
src/com/android/contacts/widget/MultiShrinkScroller.java +15 −1 Original line number Diff line number Diff line Loading @@ -275,7 +275,21 @@ public class MultiShrinkScroller extends FrameLayout { mLargeTextView = (TextView) findViewById(R.id.large_title); mInvisiblePlaceholderTextView = (TextView) findViewById(R.id.placeholder_textview); mStartColumn = findViewById(R.id.empty_start_column); // Touching the empty space should close the card if (mStartColumn != null) { mStartColumn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { scrollOffBottom(); } }); findViewById(R.id.empty_end_column).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { scrollOffBottom(); } }); } mListener = listener; mIsOpenContactSquare = isOpenContactSquare; Loading