Merge "Polish Configuration activity" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d15c63903a
@@ -1,18 +0,0 @@
|
|||||||
<!--
|
|
||||||
~ Copyright (C) 2020 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.
|
|
||||||
-->
|
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<solid android:color="@color/people_tile_background" />
|
|
||||||
</shape>
|
|
||||||
@@ -14,7 +14,8 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<solid android:color="?android:attr/colorBackgroundFloating" />
|
<solid android:color="?androidprv:attr/colorAccentPrimary" />
|
||||||
<corners android:radius="40dp" />
|
<corners android:radius="40dp" />
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
-->
|
-->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||||
android:id="@+id/top_level"
|
android:id="@+id/top_level"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
@@ -41,7 +42,8 @@
|
|||||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.ListItem"
|
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.ListItem"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:padding="24dp" />
|
android:paddingVertical="24dp"
|
||||||
|
android:paddingHorizontal="48dp"/>
|
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView
|
<androidx.core.widget.NestedScrollView
|
||||||
android:id="@+id/scroll_view"
|
android:id="@+id/scroll_view"
|
||||||
@@ -65,8 +67,8 @@
|
|||||||
android:id="@+id/priority_header"
|
android:id="@+id/priority_header"
|
||||||
android:text="@string/priority_conversations"
|
android:text="@string/priority_conversations"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.ListItem"
|
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"
|
||||||
android:textColor="?android:attr/colorAccent"
|
android:textColor="?androidprv:attr/colorAccentPrimaryVariant"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:paddingStart="16dp"
|
android:paddingStart="16dp"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
@@ -92,8 +94,8 @@
|
|||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:text="@string/recent_conversations"
|
android:text="@string/recent_conversations"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.ListItem"
|
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"
|
||||||
android:textColor="?android:attr/colorAccent"
|
android:textColor="?androidprv:attr/colorAccentPrimaryVariant"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:paddingStart="16dp"
|
android:paddingStart="16dp"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
android:background="@drawable/rounded_bg_full_large_radius"
|
android:background="@drawable/rounded_bg_full_large_radius"
|
||||||
android:onClick="dismissActivity"
|
android:onClick="dismissActivity"
|
||||||
android:text="@string/okay"
|
android:text="@string/okay"
|
||||||
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:layout_marginBottom="60dp"
|
android:layout_marginBottom="60dp"
|
||||||
android:layout_alignParentBottom="true" />
|
android:layout_alignParentBottom="true" />
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,9 @@
|
|||||||
~ See the License for the specific language governing permissions and
|
~ See the License for the specific language governing permissions and
|
||||||
~ limitations under the License.
|
~ limitations under the License.
|
||||||
-->
|
-->
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||||
android:id="@+id/tile_view"
|
android:id="@+id/tile_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -21,7 +23,7 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:background="@drawable/people_space_activity_card"
|
android:background="?androidprv:attr/colorSurface"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
android:elevation="4dp"
|
android:elevation="4dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ public class PeopleSpaceActivity extends Activity {
|
|||||||
// than the activity's background.
|
// than the activity's background.
|
||||||
LinearLayout item = findViewById(R.id.item);
|
LinearLayout item = findViewById(R.id.item);
|
||||||
GradientDrawable shape = (GradientDrawable) item.getBackground();
|
GradientDrawable shape = (GradientDrawable) item.getBackground();
|
||||||
final TypedArray ta = mContext.obtainStyledAttributes(
|
final TypedArray ta = mContext.getTheme().obtainStyledAttributes(
|
||||||
new int[]{android.R.attr.colorBackgroundFloating});
|
new int[]{com.android.internal.R.attr.colorSurface});
|
||||||
shape.setColor(ta.getColor(0, Color.WHITE));
|
shape.setColor(ta.getColor(0, Color.WHITE));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user