So hello everyone!
We will add programs that I also consider system-based, and always hide their shortcuts on the desktop.
We assorted SecurityCenter.apk. Six shortcuts to launch are located in the card_layout_menu_button.xml file. Open it and see:
<include layout = "@ layout / include_horizontal_line" />
<LinearLayout android: layout_width = "fill_parent" android: layout_height = "@ dimen / main_card_menu_model_height">
<include android: id = "@ id / menu_item_garbage_cleanup" layout = "@ layout / include_menu_button" />
<include layout = "@ layout / include_vertical_line" />
<include android: id = "@ id / menu_item_network_assistants" layout = "@ layout / include_menu_button" />
<include layout = "@ layout / include_vertical_line" />
<include android: id = "@ id / menu_item_antispam" layout = "@ layout / include_menu_button" />
</ LinearLayout>
<include layout = "@ layout / include_horizontal_line" />
<LinearLayout android: layout_width = "fill_parent" android: layout_height = "@ dimen / main_card_menu_model_height">
<include android: id = "@ id / menu_item_power_manger" layout = "@ layout / include_menu_button" />
<include layout = "@ layout / include_vertical_line" />
<include android: id = "@ id / menu_item_antivirus" layout = "@ layout / include_menu_button" />
<include layout = "@ layout / include_vertical_line" />
<include android: id = "@ id / menu_item_license_manager" layout = "@ layout / include_menu_button" />
</ LinearLayout>
These are our buttons and separators between them.
We need to add our three buttons)))
Yes, I will say right away, I got rid of the delimiters by simply deleting the lines
<include layout = "@ layout / include_vertical_line" /> and
<include layout = "@ layout / include_horizontal_line" /> .
We continue ...
Then I registered three buttons like this:
<include layout = "@ layout / include_main_button" />
<include layout = "@ layout / include_main_button_2" />
<include layout = "@ layout / include_main_button_3" /> These are links to three files, which in turn will lie along the way.
SecurityCenter.apk \ res \ layoutNow create these three files with the following contents:
<? xml version = "1.0" encoding = "utf-8"?>
<aaa.sk0t.ui.MultyBtn android: textSize = "12.0sp" android: textColor = "@ color / card_menu_button_text" android: gravity = "center_horizontal"
android: tag = ". WelcomeActivity"android: background = "# 00000000" android: paddingTop = "12.0dip" android: layout_width = "0.0dip" android: layout_height = "fill_parent"
android: text = "@ string / Xposed_title"android: drawableTop =
"@ drawable / menu_icon_xposed"android: drawablePadding = "0.0dip" android: layout_weight = "1.0"
android: contentDescription = "de.robv.android.xposed.installer"xmlns: android = "
http://schemas.android.com/apk/res/android" />
where -
"@ drawable / menu_icon_xposed"our icon
android: text = "@ string / Xposed_title"title
android: contentDescription = "de.robv.android.xposed.installer"and
android: tag = ". WelcomeActivity"- application and its activation.
There is nothing difficult, in principle, except for the fact that I spent almost the whole day on calculating the coordinates, because having registered my own elements, the native buttons shifted, and an abracdabra and an incomprehensible picture were obtained, especially when you were linked up. Therefore, I attach my placement options, the screen resolution can also influence ..... I do not know, in general, try and experiment!
I spelled out
<? xml version = "1.0" encoding = "utf-8"?>
<LinearLayout android: orientation = "vertical" android: id = "@ id / menu_bar" android: background = "@ drawable / main_page_background" android: layout_width = "fill_parent" android: layout_height = "290.0dip"
xmlns: android = "
http://schemas.android.com/apk/res/android">
<LinearLayout android: layout_width = "fill_parent" android: layout_height = "85.0dip">
<include android: id = "@ id / menu_item_garbage_cleanup" layout = "@ layout / include_menu_button" />
<include android: id = "@ id / menu_item_network_assistants" layout = "@ layout / include_menu_button" />
<include android: id = "@ id / menu_item_antispam" layout = "@ layout / include_menu_button" />
</ LinearLayout>
<LinearLayout android: layout_width = "fill_parent" android: layout_height = "85.0dip">
<include android: id = "@ id / menu_item_power_manger" layout = "@ layout / include_menu_button" />
<include android: id = "@ id / menu_item_antivirus" layout = "@ layout / include_menu_button" />
<include android: id = "@ id / menu_item_license_manager" layout = "@ layout / include_menu_button" />
</ LinearLayout>
<LinearLayout android: layout_width = "fill_parent" android: layout_height = "85.0dip">
<include layout = "@ layout / include_main_button" />
<include layout = "@ layout / include_main_button_2" />
<include layout = "@ layout / include_main_button_3" />
</ LinearLayout>
</ LinearLayout>
Just do not forget to register in strings.xml
<string name = "Titan_title">Titanium</ string>
<string name = "Root_title">Root explorer</ string>
<string name = "Xposed_title">Xposed</ string>
And yes, for the button you need smiles, they are attached too ..
In general, all the luck! There will be questions, I will be happy to help!