Mans on installing a full-screen photo - features for lolipop
Because manes dofiga then cite only difference 5.02 from 4.4
1. parse Phonebook.apk File
Phonebook \ smali \ com \ sonyericsson \ android \ socialphonebook \ Configuration.smalibetween the lines add : .field private static final SMALL_PHOTO_WIDTH: I = 0x1e0
# The value of this static final field might be set in the static constructor
.field private static final TAG: Ljava / lang / String; = "Configuration"
.field private static sSelf: Lcom / sonyericsson / android / socialphonebook / Configuration;
2. File
Phonebook \ res \ layout \ call_log_list_single_item.xml do the type of rooms and the number 2 line
<RelativeLayout android: id = "@ id / call_log_list_item_second_row" android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: layout_below = "@ id / call_log_list_item_first_row" android: layout_marginEnd = "@ dimen / call_log_list_item_padding_start_end">
<Linearlayoutandroid: id = "@ + id / call_log_list_item_third_row"android: orientation = "horizontal" android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: layout_toStartOf = "@ id / date" android: layout_alignParentStart = "true">
<TextView android: textColor = "android:? ColorAccent" android: id = "@ id / label" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_marginEnd = "@ dimen / call_log_list_item_label_margin_right" android: layout_alignParentStart = " true "style =" @ android: style / TextAppearance.Material.Body1 "/>
</ LinearLayout>
<LinearLayout android: orientation = "horizontal" android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: layout_below = "@ id / call_log_list_item_third_row" android: layout_toStartOf = "@ id / date" android: layout_alignParentStart = "true">
3. parse InCallUI.apk 3.1 remove the substrate
files:
call_button_fragment.xml
incall_screen.xml
somc_answering_machine_fragment.xml
somc_call_ended_interaction_fragment.xml
somc_incoming_sliding_tab.xml
somc_reject_with_msgs_drawer.xmlare passed along the common search line
? Android: colorBackground and replace with
@null in file
somc_reject_with_msgs_drawer.xmlwe change
android: background = "@ color / somc_theme_color" on
android: background = "@null " in file
somc_primary_call_info.xmlwe change
android: background = "@ drawable / somc_scrim_dark_bottom" on
android: background = "@null" in file
colors.xml <color name = "incall_dialpad_background">#95ffffff</ color> - transparency of the dialer
<color name = "large_white_button_background">#95ffffff</ color> - transparency of the buttons to reject SMS / voice mail
<color name = "end_call_button_background">#bfff2400</ color> - Transparency button to end a call
3.2 file
dimens.xmlWe set the size
<dimen name = "contact_picture_width">720.0px</ dimen>
<dimen name = "contact_picture_height">1280.0px</ dimen>
<dimen name = "contact_picture_height_large">1280.0px</ dimen> 3.3 We proceed to the positioning
file
somc_call_card_content.xmlwe change
<LinearLayout android: gravity = "bottom" android: orientation = "vertical" android: id = "@ id / primary_call_info_container" android: clipChildren = "false" android: clipToPadding = "false" android: layout_width = "fill_parent" android: layout_height = "fill_parent"android: layout_alignBottom = "@ id / photo"android: layout_centerHorizontal = "true" android: elevation = "@ dimen / primary_call_elevation">
on
<LinearLayout android: gravity = "bottom" android: orientation = "vertical" android: id = "@ id / primary_call_info_container" android: clipChildren = "false" android: clipToPadding = "false"
android: paddingBottom = "@ dimen / waiting_call_answer_and_busy_panel_margin_bottom"
android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: layout_centerHorizontal = "true" android: elevation = "@ dimen / primary_call_elevation">
we change
<ImageView android: id = "@ id / photo" android: background = "@ color / somc_theme_color" android: layout_width = "fill_parent" android: layout_height = "@ dimen / contact_picture_height" android: scaleType = "centerCrop" android: layout_alignParentTop = " true "android: contentDescription =" @ string / contactPhoto "/>
on
<ImageView android: id = "@ id / photo" android: background = "@ color / somc_theme_color" android: layout_width = "fill_parent" android: layout_height = "@ dimen / contact_picture_height"
android: scaleType = "fitXY"Android: layout_alignParentTop =" true "android: contentDescription =" @ string / contactPhoto "/>
we change
<FrameLayout android: layout_gravity = "center_horizontal" android: id = "@ id / dialpadFragmentContainer" android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: layout_marginTop = "@ dimen / twelve_key_dialer_margin_top"android: layout_alignBottom = "@ id / photo"android: layout_alignParentTop = "true" android: elevation = "@ dimen / twelve_key_dialer_elevation" />
on
<FrameLayout android: layout_gravity = "center_horizontal" android: id = "@ id / dialpadFragmentContainer" android: layout_width = "fill_parent" android: layout_height = "wrap_content"Android: layout_marginTop =" @ dimen / twelve_key_dialer_margin_top "android: layout_alignParentTop =" true "android: elevation =" @ dimen / twelve_key_dialer_elevation "/>
we change
<fragment android: name = "com.android.incallui.SomcCallEndedInteractionFragment" android: id = "@ id / somcCallEndedInteractionFragment" android: visibility = "gone" android: layout_width = "fill_parent" android: layout_height = "wrap_content"android: layout_below = "@ id / photo" />
on
<fragment android: name = "com.android.incallui.SomcCallEndedInteractionFragment" android: id = "@ id / somcCallEndedInteractionFragment" android: visibility = "gone" android: layout_width = "fill_parent" android: layout_height = "wrap_content"android: layout_marginBottom = "@ dimen / panel_button_margin_bottom" android: layout_alignParentBottom = "true" />
in file
somc_call_ended_interaction_fragment.xmlwe changeandroid: layout_alignParentBottom = "true" on android: layout_alignParentBottom = "false"
3.4 The substrate also has a dialer positioning but also a zone zatemneneiya statusbara:
<dimen name = "twelve_key_dialer_margin_top">0.0dip</ dimen> - indent from statusbara (. Unnecessarily dialer above untied from the parent container changing to 0)
<dimen name = "twelve_key_dialer_padding_top">21.0dip</ dimen> - width dimming statusbara
Will be here and so simpotishno ... Screen:
3.5 do "end a call" button style lolipop
file
somc_call_card_content.xmlchange all the code
<FrameLayout android: id = "@ id / floating_end_call_action_button_container" android: paddingTop = "@ dimen / end_call_button_padding_top_size" android: clipChildren = "false" android: clipToPadding = "false" android: layout_width = "fill_parent" android: layout_height = "@ dimen / call_button_panel_height "android: layout_marginTop =" @ dimen / end_call_button_margin_top_size "android: layout_marginBottom =" @ dimen / end_call_button_margin_bottom_size "android: layout_alignParentBottom =" true "android: layout_centerHorizontal =" true "android: paddingStart =" @ dimen / end_call_button_margin_horizontal "android: paddingEnd = "@ dimen / end_call_button_margin_horizontal">
<ImageButton android: id = "@ id / floating_end_call_action_button" android: background = "@ drawable / somc_smartsearch_large_reject_btn" android: layout_width = "fill_parent" android: layout_height = "@ dimen / end_call_button_portrait_height" android: src = "@ drawable / clh_large_end_call_icon" android: scaleType = "center" android: contentDescription = "@ string / onscreenEndCallText" android: elevation = "@ dimen / end_call_button_elevation" />
on
<FrameLayout android: paddingTop = "@ dimen / end_call_button_padding_top_size" android: clipChildren = "false" android: clipToPadding = "false" android: layout_width = "fill_parent" android: layout_height = "@ dimen / call_button_panel_height" android: layout_alignParentBottom = "true" android : paddingStart = "@ dimen / call_ended_interaction_layout_height">
<LinearLayout android: id = "@ id / floating_end_call_action_button_container" android: background = "@ drawable / fab_red" android: layout_width = "@ dimen / end_call_floating_action_button_small_diameter" android: layout_height = "@ dimen / end_call_floating_action_button_small_diameter">
<ImageButton android: id = "@ id / floating_end_call_action_button" android: background = "@ drawable / end_call_background" android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: src = "@ drawable / clh_large_end_call_icon" android: scaleType = " center "android: contentDescription =" @ string / onscreenEndCallText "/>
</ LinearLayout>
3.6 by the desire to do a shadow under the button labeled ...
so as not to register each key separately go to Styles
<style name = "SomcInCallButtonText">and add
<item name = "android: shadowColor">@android: color / white</ item>
<item name = "android: shadowRadius">15.0</ item>
Ps
Remove the widget from the call log:
file
phone_activity_toolbar.xml(In both orientations)
delete
<fragment android: id = "@ id / top_contacts_list" android: layout_width = "fill_parent" android: layout_height = "@ dimen / top_contacts_item_width_height" class = "com.sonyericsson.android.socialphonebook.topcontacts.TopContactsListFragment" />
Added in Post has been editedvalday456 - 05.04.15, 00:39