Changes made for new feature for back button for screen tracking back with keyboard event attach

This commit is contained in:
surbhi 2018-09-05 17:03:01 +05:30
parent a8be2e764a
commit ccd383b72f
No known key found for this signature in database
GPG Key ID: 88928762974D3618
3 changed files with 20 additions and 12 deletions

View File

@ -54,16 +54,6 @@ BoxLayout:
size_hint_x: 0.1 size_hint_x: 0.1
pos_hint: {'x': 0.8, 'y':0.4} pos_hint: {'x': 0.8, 'y':0.4}
on_press: app.say_exit() on_press: app.say_exit()
ActionBar:
size_hint_y: 0.4
size_hint_x: 0.1
pos_hint: {'x': 0.99, 'y':0.35}
background_color: (0,0,0,0)
ActionView:
use_separator: True
ActionPrevious:
with_previous: True
on_release: app.set_previous_screen()
ScreenManager: ScreenManager:
id: scr_mngr id: scr_mngr
@ -352,8 +342,26 @@ BoxLayout:
<Page>: <Page>:
name: 'page' name: 'page'
ActionBar:
background_color:0,0,0,0
pos_hint: {'top':0.98}
size_hint_y: 0.05
size_hint_x: 0.07
ActionView:
ActionPrevious:
with_previous: False
app_icon: 'images/back-button.png'
markup:True
font_size:"16dp"
on_release: app.set_previous_screen()
Label: Label:
text: 'I am on description of my email yooooo' text:"Message sent on 5 september 2018 05:44"
color: 0,0,0,1
size: self.texture_size
size_hint: (None, None)
Label:
text: 'I am on description of my email yooooo I am on description of my email yooooo description description\nI am on description of my email yooooo am on description of my email yooooo description description \nI am on description of my email yooooo I am on description of my email yooooo description description \nI am on description of my email yooooo am on description of my email yooooo description description \nI am on description of my email yooooo I am on description of my email yooooo description description \nI am on description of my email yooooo am on description of my email yooooo description description \nI am on description of my email yooooo I am on description of my email yooooo description description \nI am on description of my email yooooo am on description of my email yooooo description description \nI am on description of my email yooooo I am on description of my email yooooo description description \nI am on description of my email yooooo am on description of my email yooooo description description \nI am on description of my email yooooo I am on description of my email yooooo description description \nI am on description of my email yooooo am on description of my email yooooo description description \nI am on description of my email yooooo I am on description of my email yooooo description description\nI am on description of my email yooooo I am on description of my email yooooo description description\nI am on description of my email yooooo I am on description of my email yooooo description description\nI am on description of my email yooooo I am on description of my email yooooo description description\nI am on description of my email yooooo I am on description of my email yooooo description description\n'
color: 0,0,0,1 color: 0,0,0,1
<AddressSuccessful>: <AddressSuccessful>:

View File

@ -50,7 +50,7 @@ class NavigateApp(App, TextInput):
def set_previous_screen(self): def set_previous_screen(self):
if self.root.ids.scr_mngr.current != 'inbox': if self.root.ids.scr_mngr.current != 'inbox':
self.root.ids.scr_mngr.transition.direction = 'left' self.root.ids.scr_mngr.transition.direction = 'left'
self.root.ids.scr_mngr.current = self.root.ids.scr_mngr.previous() self.root.ids.scr_mngr.current = 'inbox'
def getCurrentAccountData(self, text): def getCurrentAccountData(self, text):
"""Get Current Address Account Data.""" """Get Current Address Account Data."""

BIN
src/images/back-button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB