this may be your last chance to do so on Netflix.
If you're a Netflix fanatic, be warned: The online movie service will be losing the rights to stream a number of classic films effective January 1, 2014.
As you might expect, a number of the movies Netflix is losing the rights to aren't worth watching, unless you have unusually fond memories of Stop! Or My Mom Will Shoot. That said, there are a number of legit classics that you'll no longer be able to stream in the new year. This is your last chance to catch Being John Malkovich, Braveheart, Eternal Sunshine of the Spotless Mind, Flashdance, Roman Holiday, Platoon, Titanic, and Top Gun on the service. Netflix is also losing the rights to stream the 1951 Disney film Alice in Wonderland, though that movie will continue to be available until January 4.
A small handful of TV shows will be disappearing as well, including the hilarious Canadian sketch comedy show Kids in the Hall and Mr. Bean. Netflix will be losing the rights to Saturday Night Live The 2000s, though you can now view the full SNL back catalogue for free at Yahoo.


text:
/*
 * Interface to functions that find values in strings.
 */

/*
 * Return the index of the first occurrence of <ch> in <string>,
 * or (-1) if the <ch> is not in <string>.
 */
int find_ch_index(char string[], char ch) ;

/*
 * Return a pointer to the first occurrence of <ch> in <string>,
 * or NULL if the <ch> is not in <string>.
 */
char *find_ch_ptr(char *string, char ch) ;

/*
 * Return the index of the first occurrence of any character in <stop>
 * in the given <string>, or (-1) if the <string> contains no character
 * in <stop>.
 */
int find_any_index(char string[], char stop[]) ;

/*
 * Return a pointer to the first occurrence of any character in <stop>
 * in the given <string> or NULL if the <string> contains no characters
 * in <stop>.
 */
char *find_any_ptr(char *string, char* stop) ;

/*
 * Return a pointer to the first character of the first occurrence of
 * <substr> in the given <string> or NULL if <substr> is not a substring
 * of <string>.
 * Note: An empty <substr> ("") matches *any* <string> at the <string>'s
 * start.
 */
char *find_substr(char *string, char* substr) ;

redpajama_set_name: RedPajamaGithub


text:
Q: Horizontal progress bar is not visible if placed above toolbar (For Android 5) I tried to place horizontal progress bar on the top of toolbar by having the following XML.
my_activity.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <!-- Toolbar -->
        <include layout="@layout/toolbar"/>

        <!-- http://stackoverflow.com/questions/14171471/remove-vertical-padding-from-horizontal-progressbar -->
        <ProgressBar
            style="?android:attr/progressBarStyleHorizontal"
            android:layout_width="match_parent"
            android:layout_height="8dp"
            android:id="@+id/progress_bar"
            android:layout_gravity="top"

            android:layout_marginBottom="0dp"
            android:layout_marginTop="-3dp"

            android:progress="2000"
            android:max="10000" />

    </FrameLayout>

    <FrameLayout
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <ProgressBar
            style="?android:attr/progressBarStyleHorizontal"
            android:layout_width="match_parent"
            android:layout_height="8dp"
            android:id="@+id/progress_bar2"
            android:layout_gravity="top"

            android:layout_marginBottom="0dp"
            android:layout_marginTop="-3dp"

            android:progress="2000"
            android:max="10000" />

    </FrameLayout>
</LinearLayout>

toolbar.xml
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/toolbar"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:minHeight="?attr/actionBarSize"
    android:background="?attr/colorPrimary"
    android:elevation="4dp"
    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    app:popupTheme="@style/ThemeOverlay.AppCompat.Light" >

    <!-- android:elevation="4dp" is used due to http://www.google.com/design/spec/what-is-material/elevation-shadows.html#elevation-shadows-elevation-android- -->

</android.support.v7.widget.Toolbar>

This works absolutely fine under Android 4+. Here's the screenshot for Android 4+

However, when it comes to Android 5+, the horizontal progress bar is not visible on the top of toolbar.

If I remove line
<include layout="@layout/toolbar"/>

I will get the following screenshot in Android 5+

It seems that the top progress bar is blocked by toolbar? But, I thought within FrameLayout, the progress bar is having higher z-order than toolbar?
May I know, how I can make horizontal progress bar visible if placed above toolbar, in Android 5+

A: On Android 5.0+ devices, elevation is taken into account when determining the z-order of components - those with a higher elevation are visibly above those with a lower elevation, even if the higher elevation item is declared earlier in the XML file (normally causing it to be behind).
You can add an elevation to your ProgressBar, matching the elevation of the Toolbar - that will ensure that the same z-ordering works as in previous versions of Android.

A: Try to use this:
<RelativeLayout
        android:id="@+id/container_toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <include
            android:id="@+id/toolbar"
            layout="@layout/toolbar" />

       // try to set your progress bar here
       // on top of the toolbar

    </RelativeLayout>

redpajama_set_name: RedPajamaStackExchange