question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Previous activity doesn't show

See original GitHub issue

screenshot_20160501-171728

Java code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_client_detail); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setHomeButtonEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true); SlidrConfig config = new SlidrConfig.Builder() .scrimEndAlpha(0f) .scrimStartAlpha(0.5f) .build(); Slidr.attach(this, config); }

Theme:

<style name="AppTheme.Slidr" parent="@style/AppTheme"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowBackground">@android:color/transparent</item> </style>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

9reactions
RomanTsekhmeistrukcommented, Jan 23, 2018

try to add the next theme to your slideable acivity in manifest:

<style name="Theme.Slidr.Slidable" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- These values must be set for this mechanism to work -->
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>

        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>
3reactions
muhrifqiicommented, Aug 5, 2016

I got the same issue, but with transparent background, making the android home screen visible. Anyone?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Back Button Doesn't Return to Previous Activity
When this menu item is clicked, it launches the SettingsActivity with an intent. After the activity starts up, I click the back button...
Read more >
How to Go Back to Previous Activity in Android?
In the projects folder, right-click on app > new > Activity > Empty Activity. You can customize this activity accordingly. Creating New Activity ......
Read more >
How to Go back to previous activity in android - Tutorialspoint
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create...
Read more >
Tasks and the back stack - Android Developers
The previous activity in the stack is resumed. When an activity is destroyed, the system does not retain the activity's state.
Read more >
What is the Recent activity page? - Microsoft Support
This page shows info about the activity in your Microsoft account, within the ... If you see only a Recent activity section on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found