Skip to content

A custom item container to simplify the single section view.

License

Notifications You must be signed in to change notification settings

liuzhanta/ItemContainer

Repository files navigation

ItemContainer

A custom item container to simplify the single section view.

Getting started

Add the ItemContainer dependency to your build.gradle.

dependencies {
   compile 'com.zterry.itemcontainer:library:1.0.1'
}

Screen Shot

Usage Xml

  • Common Attrs
Attrs value
ItemLocationType single,top,middle,bottom,none
hasLine true,false
lineMarginDirection top,bottom
  • SingleItemContainer Attrs
Attrs value
title string
titleTextColor color
titleTextSize dimension
titleDrawableLeft reference
noArrow true or false
contentLayout reference

And you can use ItemContainer like following this:

<com.zterry.itemcontainer.SingleItemContainer
        android:layout_width="match_parent"
        android:layout_height="@dimen/single_item_container_height"
        android:layout_marginTop="16dp"
        app:noArrow="true"
        app:ItemLocationType="single"
        app:title="SingleItemContainer-Single"
        app:titleDrawableLeft="@drawable/ic_change_history_red_300_24dp"
        app:titleTextColor="@color/gray_800" />

For more usage ,you can see the ItemContainerDemo

Developed by

Name: ZTerry Liu
E-mail: [email protected]
Subject: ItemContainer

License

Copyright 2016 刘战塔

Licensed 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.      

About

A custom item container to simplify the single section view.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages