All Projects → davcpas1234 → MaterialSettings

davcpas1234 / MaterialSettings

Licence: other
The open repository with a global support for Android 5 Toolbar within any Settings Activity

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to MaterialSettings

Summernote Cleaner
Plugin for Summernote that adds a Button and/or Paste functionality for cleaning MS Word Crud from editor text
Stars: ✭ 148 (+155.17%)
Mutual labels:  toolbar
wui
Collection of GUI widgets for the web
Stars: ✭ 44 (-24.14%)
Mutual labels:  toolbar
CustomToolbar
A mockup of the custom toolbar from Social Steps app on Google Play.
Stars: ✭ 28 (-51.72%)
Mutual labels:  toolbar
Alipayhome
高仿支付宝首页的头部伸缩动画(使用design实现效果,CoordinatorLayout+AppBarLayout+CollapsingToolbarLayout+Toolbar)
Stars: ✭ 164 (+182.76%)
Mutual labels:  toolbar
Bforartists
Bforartists is a fork of the popular 3D software Blender, with the goal to improve the UI.
Stars: ✭ 240 (+313.79%)
Mutual labels:  toolbar
olturf
A Turf toolbar for OpenLayers.
Stars: ✭ 30 (-48.28%)
Mutual labels:  toolbar
Arctoolbarview
An Arc view for the android Toolbar.
Stars: ✭ 145 (+150%)
Mutual labels:  toolbar
tool-bar
Package providing customisable toolbar for Atom
Stars: ✭ 161 (+177.59%)
Mutual labels:  toolbar
Extended text field
extended official text field to quickly build special text like inline image, @somebody, custom background etc.
Stars: ✭ 250 (+331.03%)
Mutual labels:  toolbar
OpcacheBundle
Displays the PHP OPcache status in the Symfony profiler toolbar.
Stars: ✭ 21 (-63.79%)
Mutual labels:  toolbar
Frameless Titlebar
Customizable Electron Titlebar for frameless windows
Stars: ✭ 167 (+187.93%)
Mutual labels:  toolbar
Everythingtoolbar
Everything integration for the Windows taskbar.
Stars: ✭ 3,706 (+6289.66%)
Mutual labels:  toolbar
FormToolbar
Simple, movable and powerful toolbar for UITextField and UITextView.
Stars: ✭ 85 (+46.55%)
Mutual labels:  toolbar
Tool Bar
Package providing customisable toolbar for Atom
Stars: ✭ 159 (+174.14%)
Mutual labels:  toolbar
Switch
Manage chrome extensions from the toolbar
Stars: ✭ 13 (-77.59%)
Mutual labels:  toolbar
Android List To Grid
Implementation of List to Grid: Icon Transition
Stars: ✭ 147 (+153.45%)
Mutual labels:  toolbar
SanSessionToolbar
⚡ Session Toolbar that can be applied into Zend/Laminas DeveloperTools
Stars: ✭ 39 (-32.76%)
Mutual labels:  toolbar
qt-quick-responsive-helper
A simple toolbar for QtQuick based applications, to let developers test different resolutions and dpi settings easily. It was made to be integrated with minimal effort (only one QML file), and to be configurable for your specific usage.
Stars: ✭ 26 (-55.17%)
Mutual labels:  toolbar
Whatsapp Android App
This is sample code for layout for chatting app like Whatsapp.
Stars: ✭ 32 (-44.83%)
Mutual labels:  toolbar
MultiGame
MultiGame is a tool for rapid development in Unity
Stars: ✭ 16 (-72.41%)
Mutual labels:  toolbar

Deprecated (No Longer Developed)

This example is no longer maintained as Google have implemented the AppCompatDelegate class to implement Material Design in a PreferenceActivity.


Banner

MaterialSettings

The open repository with a global support for Android 5 Toolbar within any Settings Activity (PreferenceActivity), compatible with API 10 and above.

IMPORTANT - Compatibility

Element Tinting

In order to mimic (material-like) element tinting on pre-L devices utilise the following code:

@Override
public View onCreateView(String name, Context context, AttributeSet attrs) {
    // Allow super to try and create a view first
    final View result = super.onCreateView(name, context, attrs);
    if (result != null) {
        return result;
    }

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
        // If we're running pre-L, we need to 'inject' our tint aware Views in place of the
        // standard framework versions
        switch (name) {
            case "EditText":
                return new AppCompatEditText(this, attrs);
            case "Spinner":
                return new AppCompatSpinner(this, attrs);
            case "CheckBox":
                return new AppCompatCheckBox(this, attrs);
            case "RadioButton":
                return new AppCompatRadioButton(this, attrs);
            case "CheckedTextView":
                return new AppCompatCheckedTextView(this, attrs);
        }
    }

    return null;
}

Remember: Import the appcompt-v7 library in your app.gradle:
compile 'com.android.support:appcompat-v7:22.2.0'

Gingerbread

In order to handle nested PreferenceScreens correctly onConfigurationChanged() must be overriden in your SettingsActivity as below:

@Override
public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
}

and so this code is called, add the following to your SettingsActivity declaration in your AndroidManifest.xml:

android:configChanges="keyboard|keyboardHidden|orientation|screenSize"

Full Example:

<activity
    android:name=".SettingsExampleActivity"
    android:label="@string/title_activity_settings_example"
    android:theme="@style/AppTheme.NoActionBar"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

Thanks to @hclemens for indentifying this.

Toolbar Shadow

To simulate the elevation of the Toolbar on pre-L devices, utilise the following code:

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

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

</android.support.design.widget.AppBarLayout>

Remember: Import the Design library in your app.gradle:
compile 'com.android.support:design:22.2.0'

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].