Skip to content

mightyfrog/marqueetoolbar

Repository files navigation

demo

Android Marqueeable Toolbar

implementation "org.mightyfrog.marqueetoolbar:marqueetoolbar:1.0.2"

Usage

Replace android's Toolbar with org.mightyfrog.widget.MarqueeToolbar.

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">

    <android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/AppTheme.AppBarOverlay">

        <org.mightyfrog.widget.MarqueeToolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="?attr/colorPrimary"
            app:popupTheme="@style/AppTheme.PopupOverlay"
            app:subtitleMarqueeEnabled="true"
            app:subtitleText="@string/test_subtitle"
            app:titleMarqueeEnabled="true"
            app:titleText="@string/test_title" />

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

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

XML attributes
startDelay: the start delay in ms (default = 0)
titleRepeat: the number of title loops, -1 to repeat permanently (default = -1)
subtitleRepeat: enable(true)/disable(false) subtitle marque (defualt = true)
titleMarqueeEnabled: the number of subtitle loops, -1 tp repeast permanently (default = -1)
subtitleMarqueeEnabled: enable(true)/disable(false) title marque (defualt = true)
titleText: the default title text
subtitleText: the default subtitle text

License

Copyright 2015 Shigehiro Soejima.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Build Status Build Status

About

Android Marquee Toolbar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages