fix: Add build script and fix manifest
- Add build-apk.sh for easy compilation - Simplify AndroidManifest.xml - Fix themes.xml to use basic Android themes - Enable BuildConfig - Add okhttp-dnsoverhttps dependency
This commit is contained in:
@@ -0,0 +1,151 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<!-- Layout used to decide whether to launch a single target in another profile.
|
||||
When this layout is used in ResolverActivity, the user can choose between a verified app in the
|
||||
other profile and the default browser in the current profile.
|
||||
In IntentForwarderActivity, they choose whether to launch in the other profile or cancel. -->
|
||||
<com.android.internal.widget.ResolverDrawerLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:maxWidth="@dimen/resolver_max_width"
|
||||
android:maxCollapsedHeight="@dimen/resolver_max_collapsed_height"
|
||||
android:maxCollapsedHeightSmall="56dp"
|
||||
android:id="@id/contentPanel">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/title_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alwaysShow="true"
|
||||
android:elevation="@dimen/resolver_elevation"
|
||||
android:paddingTop="24dp"
|
||||
android:paddingStart="@dimen/resolver_edge_margin"
|
||||
android:paddingEnd="@dimen/resolver_edge_margin"
|
||||
android:paddingBottom="@dimen/resolver_title_padding_bottom"
|
||||
android:background="@drawable/bottomsheet_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:scaleType="fitCenter"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/open_cross_profile"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:layout_below="@id/icon"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:fontFamily="@string/config_headlineFontFamily"
|
||||
android:textSize="24sp"
|
||||
android:lineHeight="32sp"
|
||||
android:gravity="center"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<!-- Additional information section, currently only shown when redirecting to Telephony apps -->
|
||||
<LinearLayout
|
||||
android:id="@+id/miniresolver_info_section"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:paddingBottom="48dp"
|
||||
android:visibility="gone"
|
||||
android:background="?attr/colorBackground"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/miniresolver_info_section_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="8dp"
|
||||
android:src="@drawable/ic_info_outline_24"
|
||||
android:tint="?android:textColorSecondary"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/miniresolver_info_section_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:paddingEnd="8dp"
|
||||
android:textSize="14sp"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/button_bar_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alwaysShow="true"
|
||||
android:paddingTop="32dp"
|
||||
android:paddingBottom="@dimen/resolver_button_bar_spacing"
|
||||
android:orientation="vertical"
|
||||
android:background="?attr/colorBackground">
|
||||
<RelativeLayout
|
||||
style="?attr/buttonBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_ignoreOffset="true"
|
||||
android:layout_hasNestedScrollIndicator="true"
|
||||
android:gravity="end|center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:layoutDirection="locale"
|
||||
android:measureWithLargestChild="true"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:elevation="@dimen/resolver_elevation">
|
||||
|
||||
<Button
|
||||
android:id="@+id/use_same_profile_browser"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:maxLines="2"
|
||||
android:background="@drawable/resolver_outlined_button_bg"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:fontFamily="@android:string/config_headlineFontFamilyMedium"
|
||||
android:textAllCaps="false"
|
||||
android:text="@string/activity_resolver_use_once"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_open"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:maxLines="2"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:background="@drawable/resolver_button_bg"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:fontFamily="@android:string/config_headlineFontFamilyMedium"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="@color/resolver_button_text"
|
||||
android:text="@string/whichViewApplicationLabel"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</com.android.internal.widget.ResolverDrawerLayout>
|
||||
Reference in New Issue
Block a user