Question: I have a text file like below

```
    A : abc
    B : crs
    C : rds
    D : fgh

    A: wer
    B : tyu
    C : uio
    D : dfg

```

There can be any number of above blocks in the input text file.I want to create a json file from this.Here is my code:

```
import json
with open("<input file path>") as fd: # open file
    d = dict(line.split(":", 1) for line in fd) # create dict of it
print json.dumps(d) # print dict in json format

```

but this is not doing the job, its omitting some initial lines and not printing separate blocks one below the other

Answer: 
```
Use this

    protected void showBackButton() {
        mDrawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
        mDrawerToggle.setDrawerIndicatorEnabled(false);
        final Drawable upArrow = ContextCompat.getDrawable(this, R.drawable.ic_back); (R.drawable.ic_back==> your own drawable .png)
        mDrawerToggle.setHomeAsUpIndicator(upArrow);
        setSupportActionBar(mToolbar);
    }

```
Try this:

```
<android.support.v7.widget.Toolbar
     android:id="@+id/toolbar"
     android:layout_width="match_parent"
     android:layout_height="?attr/actionBarSize"
     app:layout_collapseMode="pin"
     app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>

```

I.e. using `@style/ThemeOverlay.AppCompat.Dark.ActionBar` (instead of `@style/ThemeOverlay.AppCompat.Dark`) when setting the toolbar's `app:theme`.