UserInfoView
vailable at run time
Android的UserInfoview輕鬆創建帶有標題,字幕,標籤和圖像的UserviewCard。您可以通過存在的XML屬性輕鬆自定義視圖。
注意:現在,您可以在v1.0中以編程方式在運行時更改圖像。
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.graphicstone:UserInfoView:version'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.graphicstone</groupId>
<artifactId>UserInfoView</artifactId>
<version>Tag</version>
</dependency>
<com.nullbyte.userinfoview.UserInfoView
android:id="@+id/userInfoView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:backgroundColor="@color/colorGrey"
app:cornerRadius="@dimen/dp_8"
app:image="@drawable/ic_image_black_24dp"
app:subtitle="next text"
app:subtitleTextColor="@color/colorWhite"
app:subtitleTextSize="@dimen/sp_18"
app:tag="check"
app:tagTextColor="@color/colorWhite"
app:tagTextSize="@dimen/sp_10"
app:title="new text"
app:titleTextColor="@color/colorWhite"
app:titleTextSize="@dimen/sp_20" />
MIT License
Copyright (c) 2020 Harishiv Singh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.