mirror of
https://github.com/Katana-Official/SPatch-Update.git
synced 2026-04-15 21:04:07 +08:00
Open source
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.sk.stubmanifest;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest
|
||||
{
|
||||
@Test
|
||||
public void useAppContext()
|
||||
{
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
|
||||
assertEquals("com.sk.stubmanifest.test", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
3301
lib/src/main/AndroidManifest.xml
Normal file
3301
lib/src/main/AndroidManifest.xml
Normal file
File diff suppressed because it is too large
Load Diff
24
lib/src/main/java/com/sk/svm/qihoo/BuildConfig.java
Normal file
24
lib/src/main/java/com/sk/svm/qihoo/BuildConfig.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.sk.svm.qihoo;
|
||||
|
||||
public final class BuildConfig {
|
||||
@Deprecated
|
||||
public static final String APPLICATION_ID = "com.sk.svm.qihoo";
|
||||
|
||||
public static final String BUILD_TYPE = "release";
|
||||
|
||||
public static final boolean DEBUG = false;
|
||||
|
||||
public static final String FLAVOR = "";
|
||||
|
||||
public static final String LIBRARY_PACKAGE_NAME = "com.sk.svm.qihoo";
|
||||
|
||||
public static final int VERSION_CODE = 1;
|
||||
|
||||
public static final String VERSION_NAME = "1.0";
|
||||
}
|
||||
|
||||
|
||||
/* Location: C:\User\\user\Desktop\classes-dex2jar.jar!\com\sk\svm\qihoo\BuildConfig.class
|
||||
* Java compiler version: 6 (50.0)
|
||||
* JD-Core Version: 1.1.1
|
||||
*/
|
||||
171
lib/src/main/java/com/sk/svm/qihoo/R.java
Normal file
171
lib/src/main/java/com/sk/svm/qihoo/R.java
Normal file
@@ -0,0 +1,171 @@
|
||||
package com.sk.svm.qihoo;
|
||||
|
||||
public final class R {
|
||||
public static final class dimen {
|
||||
public static final int match_parent = 2131099816;
|
||||
|
||||
public static final int notification_max_height = 2131099976;
|
||||
|
||||
public static final int notification_mid_height = 2131099978;
|
||||
|
||||
public static final int notification_min_height = 2131099979;
|
||||
|
||||
public static final int notification_padding = 2131099980;
|
||||
|
||||
public static final int notification_panel_width = 2131099981;
|
||||
|
||||
public static final int notification_side_padding = 2131099984;
|
||||
|
||||
public static final int standard_notification_panel_width = 2131099991;
|
||||
}
|
||||
|
||||
public static final class id {
|
||||
public static final int account_row_icon = 2131230782;
|
||||
|
||||
public static final int account_row_text = 2131230783;
|
||||
|
||||
public static final int btn_1 = 2131230825;
|
||||
|
||||
public static final int btn_10 = 2131230826;
|
||||
|
||||
public static final int btn_11 = 2131230827;
|
||||
|
||||
public static final int btn_12 = 2131230828;
|
||||
|
||||
public static final int btn_13 = 2131230829;
|
||||
|
||||
public static final int btn_14 = 2131230830;
|
||||
|
||||
public static final int btn_15 = 2131230831;
|
||||
|
||||
public static final int btn_16 = 2131230832;
|
||||
|
||||
public static final int btn_17 = 2131230833;
|
||||
|
||||
public static final int btn_18 = 2131230834;
|
||||
|
||||
public static final int btn_19 = 2131230835;
|
||||
|
||||
public static final int btn_2 = 2131230836;
|
||||
|
||||
public static final int btn_20 = 2131230837;
|
||||
|
||||
public static final int btn_21 = 2131230838;
|
||||
|
||||
public static final int btn_22 = 2131230839;
|
||||
|
||||
public static final int btn_23 = 2131230840;
|
||||
|
||||
public static final int btn_24 = 2131230841;
|
||||
|
||||
public static final int btn_25 = 2131230842;
|
||||
|
||||
public static final int btn_26 = 2131230843;
|
||||
|
||||
public static final int btn_27 = 2131230844;
|
||||
|
||||
public static final int btn_28 = 2131230845;
|
||||
|
||||
public static final int btn_29 = 2131230846;
|
||||
|
||||
public static final int btn_3 = 2131230847;
|
||||
|
||||
public static final int btn_30 = 2131230848;
|
||||
|
||||
public static final int btn_31 = 2131230849;
|
||||
|
||||
public static final int btn_32 = 2131230850;
|
||||
|
||||
public static final int btn_4 = 2131230851;
|
||||
|
||||
public static final int btn_5 = 2131230852;
|
||||
|
||||
public static final int btn_6 = 2131230853;
|
||||
|
||||
public static final int btn_7 = 2131230854;
|
||||
|
||||
public static final int btn_8 = 2131230855;
|
||||
|
||||
public static final int btn_9 = 2131230856;
|
||||
|
||||
public static final int button_bar = 2131230864;
|
||||
|
||||
public static final int description = 2131230890;
|
||||
|
||||
public static final int icon = 2131230937;
|
||||
|
||||
public static final int im_main = 2131230940;
|
||||
|
||||
public static final int text1 = 2131231104;
|
||||
|
||||
public static final int text2 = 2131231105;
|
||||
}
|
||||
|
||||
public static final class integer {
|
||||
public static final int config_maxResolverActivityColumns = 2131296261;
|
||||
}
|
||||
|
||||
public static final class layout {
|
||||
public static final int app_not_authorized = 2131427364;
|
||||
|
||||
public static final int choose_account_row = 2131427367;
|
||||
|
||||
public static final int choose_account_type = 2131427368;
|
||||
|
||||
public static final int choose_type_and_account = 2131427369;
|
||||
|
||||
public static final int custom_notification = 2131427373;
|
||||
|
||||
public static final int custom_notification_lite = 2131427374;
|
||||
|
||||
public static final int resolve_list_item = 2131427426;
|
||||
}
|
||||
|
||||
public static final class string {
|
||||
public static final int add_account_button_label = 2131689499;
|
||||
|
||||
public static final int app_name = 2131689500;
|
||||
|
||||
public static final int choose = 2131689509;
|
||||
|
||||
public static final int engine_process_name = 2131689511;
|
||||
|
||||
public static final int keep_service_damon_noti_text = 2131689519;
|
||||
|
||||
public static final int keep_service_damon_noti_text_v24 = 2131689520;
|
||||
|
||||
public static final int keep_service_damon_noti_title = 2131689521;
|
||||
|
||||
public static final int keep_service_damon_noti_title_v24 = 2131689522;
|
||||
|
||||
public static final int keep_service_noti_text = 2131689523;
|
||||
|
||||
public static final int keep_service_noti_title = 2131689524;
|
||||
|
||||
public static final int noApplications = 2131689559;
|
||||
|
||||
public static final int owner_name = 2131689560;
|
||||
|
||||
public static final int virtual_installer = 2131689645;
|
||||
}
|
||||
|
||||
public static final class style {
|
||||
public static final int VAAlertTheme = 2131755505;
|
||||
|
||||
public static final int VATheme = 2131755506;
|
||||
|
||||
public static final int WindowBackgroundTheme = 2131755685;
|
||||
|
||||
public static final int notAnimation = 2131755688;
|
||||
|
||||
public static final int notification_button = 2131755689;
|
||||
|
||||
public static final int notification_layout = 2131755690;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Location: C:\User\\user\Desktop\classes-dex2jar.jar!\com\sk\svm\qihoo\R.class
|
||||
* Java compiler version: 6 (50.0)
|
||||
* JD-Core Version: 1.1.1
|
||||
*/
|
||||
56
lib/src/main/res/layout/app_not_authorized.xml
Normal file
56
lib/src/main/res/layout/app_not_authorized.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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.
|
||||
*/
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- Customizable description text -->
|
||||
<TextView android:id="@+id/description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:paddingTop="16dip"
|
||||
android:paddingBottom="16dip"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:text="Change not allowed"
|
||||
/>
|
||||
|
||||
<!-- Horizontal divider line -->
|
||||
<View android:layout_height="1dip"
|
||||
android:layout_width="match_parent"
|
||||
android:background="?android:attr/dividerHorizontal" />
|
||||
|
||||
<!-- Alert dialog style buttons along the bottom. -->
|
||||
<LinearLayout android:id="@+id/button_bar"
|
||||
style="?android:attr/buttonBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:measureWithLargestChild="true">
|
||||
<Button android:id="@android:id/button1"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="0dp" android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@android:string/yes"
|
||||
android:onClick="onCancelButtonClicked" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
26
lib/src/main/res/layout/choose_account_row.xml
Normal file
26
lib/src/main/res/layout/choose_account_row.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView android:id="@+id/account_row_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingRight="8dip"
|
||||
android:paddingEnd="8dip" />
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/account_row_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?android:listPreferredItemHeight" />
|
||||
|
||||
</LinearLayout>
|
||||
19
lib/src/main/res/layout/choose_account_type.xml
Normal file
19
lib/src/main/res/layout/choose_account_type.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View android:layout_height="3dip"
|
||||
android:layout_width="match_parent"
|
||||
android:background="#323232"/>
|
||||
|
||||
<ListView android:id="@android:id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:scrollbarAlwaysDrawVerticalTrack="true" />
|
||||
|
||||
</LinearLayout>
|
||||
62
lib/src/main/res/layout/choose_type_and_account.xml
Normal file
62
lib/src/main/res/layout/choose_type_and_account.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- Customizable description text -->
|
||||
<TextView
|
||||
android:id="@+id/description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:paddingBottom="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingTop="16dip"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<!-- List of accounts, with "Add new account" as the last item -->
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:choiceMode="singleChoice"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:scrollbarAlwaysDrawVerticalTrack="true" />
|
||||
|
||||
<!-- Horizontal divider line -->
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dip"
|
||||
android:background="?android:attr/dividerHorizontal" />
|
||||
|
||||
<!-- Alert dialog style buttons along the bottom. -->
|
||||
<LinearLayout
|
||||
android:id="@+id/button_bar"
|
||||
style="?android:attr/buttonBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:measureWithLargestChild="true">
|
||||
|
||||
<Button
|
||||
android:id="@android:id/button1"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onCancelButtonClicked"
|
||||
android:text="@android:string/no" />
|
||||
|
||||
<Button
|
||||
android:id="@android:id/button2"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onOkButtonClicked"
|
||||
android:text="@android:string/yes" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
168
lib/src/main/res/layout/custom_notification.xml
Normal file
168
lib/src/main/res/layout/custom_notification.xml
Normal file
@@ -0,0 +1,168 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/im_main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
style="@style/notification_layout"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_1"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_2"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_3"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_4"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_5"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_6"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_7"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_8"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/notification_layout"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_9"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_10"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_11"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_12"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_13"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_14"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_15"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_16"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/notification_layout"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_17"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_18"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_19"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_20"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_21"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_22"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_23"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_24"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/notification_layout"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_25"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_26"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_27"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_28"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_29"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_30"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_31"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_32"
|
||||
style="@style/notification_button"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
11
lib/src/main/res/layout/custom_notification_lite.xml
Normal file
11
lib/src/main/res/layout/custom_notification_lite.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/im_main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY" />
|
||||
</FrameLayout>
|
||||
65
lib/src/main/res/layout/resolve_list_item.xml
Normal file
65
lib/src/main/res/layout/resolve_list_item.xml
Normal file
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/res/any/layout/resolve_list_item.xml
|
||||
**
|
||||
** Copyright 2006, 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.
|
||||
*/
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingTop="4dp">
|
||||
|
||||
<!-- Activity icon when presenting dialog
|
||||
Size will be filled in by ResolverActivity -->
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:scaleType="fitCenter"/>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:gravity="start|center_vertical"
|
||||
android:orientation="vertical">
|
||||
<!-- Activity name -->
|
||||
<TextView
|
||||
android:id="@+id/text1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:maxLines="1"
|
||||
android:minLines="1"/>
|
||||
<!-- Extended activity info to distinguish between duplicate activity names -->
|
||||
<TextView
|
||||
android:id="@+id/text2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:maxLines="1"
|
||||
android:minLines="1"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
14
lib/src/main/res/values-zh-rCN/strings.xml
Normal file
14
lib/src/main/res/values-zh-rCN/strings.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="virtual_installer">VirtualPackage Installer</string>
|
||||
<string name="owner_name">机主</string>
|
||||
<string name="choose">选择</string>
|
||||
<string name="noApplications">找不到可用应用程序</string>
|
||||
<string name="add_account_button_label">添加账号</string>
|
||||
<string name="keep_service_noti_title">移除服务通知</string>
|
||||
<string name="keep_service_noti_text">移除服务通知</string>
|
||||
<string name="keep_service_damon_noti_title_v24">后台运行中</string>
|
||||
<string name="keep_service_damon_noti_text_v24">保持应用后台运行,能够及时接收消息</string>
|
||||
<string name="keep_service_damon_noti_title">提示: 消息应该是隐藏的</string>
|
||||
<string name="keep_service_damon_noti_text">消失</string>
|
||||
</resources>
|
||||
15
lib/src/main/res/values/dimens.xml
Normal file
15
lib/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<resources>
|
||||
<!-- notification -->
|
||||
<dimen name="match_parent">-1px</dimen>
|
||||
<dimen name="standard_notification_panel_width">416dp
|
||||
</dimen><!-- includes notification_side_padding on each side -->
|
||||
<!-- Height of a small notification in the status bar -->
|
||||
<dimen name="notification_min_height">64dp</dimen>
|
||||
<dimen name="notification_side_padding">8dp</dimen>
|
||||
<dimen name="notification_panel_width">-1dp</dimen>
|
||||
<!-- Height of a large notification in the status bar -->
|
||||
<dimen name="notification_max_height">256dp</dimen>
|
||||
<dimen name="notification_padding">4dp</dimen>
|
||||
<!-- Height of a medium notification in the status bar -->
|
||||
<dimen name="notification_mid_height">128dp</dimen>
|
||||
</resources>
|
||||
4
lib/src/main/res/values/integer.xml
Normal file
4
lib/src/main/res/values/integer.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="config_maxResolverActivityColumns">8</integer>
|
||||
</resources>
|
||||
15
lib/src/main/res/values/strings.xml
Normal file
15
lib/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="engine_process_name" translatable="false">:x</string>
|
||||
<string name="virtual_installer">VirtualPackage Installer</string>
|
||||
<string name="owner_name">Admin</string>
|
||||
<string name="choose">Choose</string>
|
||||
<string name="noApplications">No find applications</string>
|
||||
<string name="add_account_button_label">Add account</string>
|
||||
<string name="keep_service_noti_title">Remove Service Notification</string>
|
||||
<string name="keep_service_noti_text">Remove Service Notification</string>
|
||||
<string name="keep_service_damon_noti_title_v24">Running...</string>
|
||||
<string name="keep_service_damon_noti_text_v24">Keep app alive to receive new messages on time</string>
|
||||
<string name="keep_service_damon_noti_title">Tip: Message Should Be Hidden</string>
|
||||
<string name="keep_service_damon_noti_text">Get Removed</string>
|
||||
</resources>
|
||||
42
lib/src/main/res/values/styles.xml
Normal file
42
lib/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<resources>
|
||||
|
||||
<style name="notification_layout">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">0dp</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
</style>
|
||||
|
||||
<style name="notification_button">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
</style>
|
||||
|
||||
<style name="VATheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:windowDisablePreview">true</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="WindowBackgroundTheme" parent="VATheme">
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:windowAnimationStyle">@style/notAnimation</item>
|
||||
</style>
|
||||
|
||||
<style name="notAnimation">
|
||||
<item name="android:activityOpenEnterAnimation">@null</item>
|
||||
<item name="android:activityOpenExitAnimation">@null</item>
|
||||
<item name="android:activityCloseEnterAnimation">@null</item>
|
||||
<item name="android:activityCloseExitAnimation">@null</item>
|
||||
<item name="android:taskOpenEnterAnimation">@null</item>
|
||||
<item name="android:taskOpenExitAnimation">@null</item>
|
||||
<item name="android:taskCloseEnterAnimation">@null</item>
|
||||
<item name="android:taskCloseExitAnimation">@null</item>
|
||||
<item name="android:taskToFrontEnterAnimation">@null</item>
|
||||
<item name="android:taskToFrontExitAnimation">@null</item>
|
||||
<item name="android:taskToBackEnterAnimation">@null</item>
|
||||
<item name="android:taskToBackExitAnimation">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="VAAlertTheme" parent="android:Theme.DeviceDefault.Dialog" />
|
||||
</resources>
|
||||
19
lib/src/test/java/com/sk/spatch/ExampleUnitTest.java
Normal file
19
lib/src/test/java/com/sk/spatch/ExampleUnitTest.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.sk.stubmanifest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
public class ExampleUnitTest
|
||||
{
|
||||
@Test
|
||||
public void addition_isCorrect()
|
||||
{
|
||||
assertEquals(4, 2 + 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user