Giter Club home page Giter Club logo

fadingactionbar-native's People

Contributors

manuelpeinado avatar timvdalen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fadingactionbar-native's Issues

Contrast enhancing like in Play music app

Excellent stuff.
A feature request.
Regardless if using dark or light actionbar the text can be hard to see depending on the image.
Handling header images with difficult to see text like the Google Play Music app could be very useful. Looking closely at that app they add a grey transparent shape coming in from the top under the text when at the top.

screenshot_2013-05-29-20-30-33

Action bar shows as white when alpha is 0.

On Android 4.2.2 this action bar shows as white, rather than transparent. It does fade in when the user scrolls the content down, but it fades in from White rather than from Transparent.

    FadingActionBarHelper helper = new FadingActionBarHelper()
                .actionBarBackground(R.drawable.ab_solid_tinsel)
                .headerLayout(R.layout.fragment_profile_header)
                .contentLayout(R.layout.fragment_profile)
                .lightActionBar(false);

    setContentView(helper.createView(this));

    helper.initActionBar(this);

Here is the profile_header:

    <?xml version="1.0" encoding="utf-8"?>
    <ImageView android:id="@+id/profile_avatar"
           xmlns:android="http://schemas.android.com/apk/res/android"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:adjustViewBounds="true"
           android:scaleType="centerCrop"
           android:contentDescription="@string/content_desc_avatar"/>

And here is the main contentLayout:

   <?xml version="1.0" encoding="utf-8"?>
   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="?android:attr/windowBackground"
              android:orientation="vertical">
        <!-- TextViews here -->
    </LinearLayout>

The action bar style is:

    <style name="ActionBar.Solid.Tinsel" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
        <item name="android:background">@drawable/ab_solid_tinsel</item>
        <item name="android:backgroundStacked">@drawable/ab_stacked_solid_tinsel</item>
        <item name="android:backgroundSplit">@drawable/ab_bottom_solid_tinsel</item>
        <item name="android:progressBarStyle">@style/ProgressBar.Tinsel</item>
    </style>

Wrong headerLayout offset when keyboard is shown or hidden.

When scrolling a little bit and then let the software keyboard show up, the header offset suddenly changes. This problem also occurs when scrolling with the keyboard showing and then hide the keyboard.

Hope this description is enough to solve it, otherwise you can always contact me.
Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.