Merge "Show a line below the tabs in tabbed view to align with UX mocks."
This commit is contained in:
committed by
Android (Google) Code Review
commit
d0f257ebb6
@@ -3100,7 +3100,7 @@ public class ChooserActivity extends ResolverActivity implements
|
||||
final ViewGroup viewGroup = (ViewGroup) holder.itemView;
|
||||
int start = getListPosition(position);
|
||||
int startType = getRowType(start);
|
||||
if (viewGroup.getForeground() == null) {
|
||||
if (viewGroup.getForeground() == null && position > 0) {
|
||||
viewGroup.setForeground(
|
||||
getResources().getDrawable(R.drawable.chooser_row_layer_list, null));
|
||||
}
|
||||
|
||||
@@ -1566,6 +1566,7 @@ public class ResolverActivity extends Activity implements
|
||||
viewPager.setVisibility(View.VISIBLE);
|
||||
tabHost.setCurrentTab(mMultiProfilePagerAdapter.getCurrentPage());
|
||||
mMultiProfilePagerAdapter.setOnProfileSelectedListener(tabHost::setCurrentTab);
|
||||
findViewById(R.id.resolver_tab_divider).setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
private void resetTabsHeaderStyle(TabWidget tabWidget) {
|
||||
|
||||
@@ -78,6 +78,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone">
|
||||
</TabWidget>
|
||||
<View
|
||||
android:id="@+id/resolver_tab_divider"
|
||||
android:visibility="gone"
|
||||
android:layout_alwaysShow="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/colorBackgroundFloating"
|
||||
android:foreground="?attr/dividerVertical" />
|
||||
<FrameLayout
|
||||
android:id="@android:id/tabcontent"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -94,6 +94,13 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone">
|
||||
</TabWidget>
|
||||
<View
|
||||
android:id="@+id/resolver_tab_divider"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/colorBackgroundFloating"
|
||||
android:foreground="?attr/dividerVertical" />
|
||||
<FrameLayout
|
||||
android:id="@android:id/tabcontent"
|
||||
android:layout_width="match_parent"
|
||||
@@ -102,10 +109,7 @@
|
||||
android:id="@+id/profile_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="?attr/dividerVertical"
|
||||
android:footerDividersEnabled="false"
|
||||
android:headerDividersEnabled="false"
|
||||
android:dividerHeight="1dp"/>
|
||||
android:minHeight="@dimen/resolver_empty_state_height" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
</TabHost>
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
android:elevation="@dimen/resolver_elevation"
|
||||
android:nestedScrollingEnabled="true"
|
||||
android:scrollbarStyle="outsideOverlay"
|
||||
android:scrollIndicators="top|bottom"
|
||||
android:divider="@null"
|
||||
android:footerDividersEnabled="false"
|
||||
android:headerDividersEnabled="false"
|
||||
|
||||
@@ -175,6 +175,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone">
|
||||
</TabWidget>
|
||||
<View
|
||||
android:id="@+id/resolver_tab_divider"
|
||||
android:visibility="gone"
|
||||
android:layout_alwaysShow="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/colorBackgroundFloating"
|
||||
android:foreground="?attr/dividerVertical" />
|
||||
<FrameLayout
|
||||
android:id="@android:id/tabcontent"
|
||||
android:layout_width="match_parent"
|
||||
@@ -183,10 +191,7 @@
|
||||
android:id="@+id/profile_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:dividerHeight="1dp"
|
||||
android:divider="?attr/dividerVertical"
|
||||
android:footerDividersEnabled="false"
|
||||
android:headerDividersEnabled="false"/>
|
||||
android:minHeight="@dimen/resolver_empty_state_height" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
</TabHost>
|
||||
|
||||
@@ -3874,6 +3874,7 @@
|
||||
<java-symbol type="id" name="resolver_empty_state_title" />
|
||||
<java-symbol type="id" name="resolver_empty_state_subtitle" />
|
||||
<java-symbol type="id" name="resolver_empty_state_button" />
|
||||
<java-symbol type="id" name="resolver_tab_divider" />
|
||||
<java-symbol type="string" name="resolver_cant_share_with_work_apps" />
|
||||
<java-symbol type="string" name="resolver_cant_share_with_personal_apps" />
|
||||
<java-symbol type="string" name="resolver_cant_share_cross_profile_explanation" />
|
||||
|
||||
Reference in New Issue
Block a user