<p align="center">
<img src="https://raw.githubusercontent.com/xuexiangjys/XUI/master/art/app_logo_xui.png" width="388" height="321" alt="Banner" />
</p>
# XUI
[![](https://jitpack.io/v/xuexiangjys/XUI.svg)](https://jitpack.io/#xuexiangjys/XUI)
[![api](https://img.shields.io/badge/API-17+-brightgreen.svg)](https://android-arsenal.com/api?level=17)
[![Issue](https://img.shields.io/github/issues/xuexiangjys/XUI.svg)](https://github.com/xuexiangjys/XUI/issues)
[![Star](https://img.shields.io/github/stars/xuexiangjys/XUI.svg)](https://github.com/xuexiangjys/XUI)
## [English](./README.md) | [Chinese](./README_ZH.md)
A simple and elegant Android native UI framework, free your hands! Click on the [instruction document](https://github.com/xuexiangjys/XUI/wiki) and experience it!
> Covers most of the UI components:TextView、Button、EditText、ImageView、Spinner、Picker、Dialog、PopupWindow、ProgressBar、LoadingView、StateLayout、FlowLayout、Switch、Actionbar、TabBar、Banner、GuideView、BadgeView、MarqueeView、WebView、SearchView...etc. A series of components and colorful style themes。
Please read [【wisdom of asking questions】](https://xuexiangjys.blog.csdn.net/article/details/83344235) before raising the issue and strictly follow the [issue template](https://github.com/xuexiangjys/XUI/issues/new/choose) fill in and save everyone's time.
Please read the [instruction document](https://github.com/xuexiangjys/XUI/wiki) carefully before use, important things are to be repeated for three time!!!
please read the [instruction document](https://github.com/xuexiangjys/XUI/wiki) carefully before use, important things are to be repeated for three time!!!
Please read the [instruction document](https://github.com/xuexiangjys/XUI/wiki) carefully before use, important things are to be repeated for three time!!!
## About me
| WeChat public number | juejin | zhihu | CSDN | jianshu | segmentfault | bilibili | toutiao
|---------|---------|--------- |---------|---------|---------|---------|---------|
| [我的Android开源之旅](https://t.1yb.co/Irse) | [Click me](https://juejin.im/user/598feef55188257d592e56ed/posts) | [Click me](https://www.zhihu.com/people/xuexiangjys/posts) | [Click me](https://xuexiangjys.blog.csdn.net/) | [Click me](https://www.jianshu.com/u/6bf605575337) | [Click me](https://segmentfault.com/u/xuexiangjys) | [Click me](https://space.bilibili.com/483850585) | [Click me](https://img.rruu.net/image/5ff34ff7b02dd)
## Rapid integration of X-Library
In order to facilitate the rapid integration of X-Library, I provide a template project for your reference: [https://github.com/xuexiangjys/TemplateAppProject](https://github.com/xuexiangjys/TemplateAppProject)
In addition, I have also produced several [video tutorials](https://space.bilibili.com/483850585/channel/detail?cid=104998) for your reference.
----
## Features
* Simple and elegant,the total size of the project library is less than 1M (about 644k after packaging).
* Rich components,provides the vast majority of our developers in common functional components.
* Easy to use,in order to facilitate rapid development and improve development efficiency, the API is optimized to provide one click access.
* Uniform style,the framework provides a series of unified styles to make the UI look beautiful and harmonious.
* High compatibility,the framework also provides three different sizes of device styles (4.5 inch, 7 inch and 10 inch) and is compatible with Android 17 at least, which makes UI compatibility stronger.
* Strong expansibility,each component provides rich properties and style APIs, and different styles of UI can be built by setting different style properties.
## Stargazers over time
[![Stargazers over time](https://starchart.cc/xuexiangjys/XUI.svg)](https://starchart.cc/xuexiangjys/XUI)
----
## Usage
> Before you consider using XUI, you must be clear that this framework provides a whole set of UI solutions. If you just want to use a few of them, you don't need to introduce such a huge UI library. You can find better component libraries on GitHub. If you want to have a customized, unified UI overall solution, then you can continue to look!
### Add gradle dependency
1.In the project root directory `build.gradle`:
```
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
2.Then add in the dependencies of `build.gradle` of the application project (usually app):
```
dependencies {
...
//androidx project
implementation 'com.github.xuexiangjys:XUI:1.2.1'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
}
```
【Note】 If your project does not currently use `androidx`, please use the following configuration:
```
dependencies {
...
//support project
implementation 'com.github.xuexiangjys:XUI:1.0.9-support'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
}
```
### Initialization
1.Modify the basic theme of the application (required)
> The basic theme of the application must be set, otherwise the component will not work normally! It is very important to ensure that the theme of all windows using XUI components is a subclass of `XUITheme`!!!
Basic topic type:
* Large flat plate(10 inches, 240dpi, 1920*1200):XUITheme.Tablet.Big
* Small plate(7 inches, 320dpi, 1920*1200):XUITheme.Tablet.Small
* Mobile phone(4.5 inches, 320dpi, 720*1280):XUITheme.Phone
```
<style name="AppTheme" parent="XUITheme.Phone">
<!-- Customize your own theme style -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
```
Of course, you can also call the following code at the beginning of the `Activity` to set the theme dynamically.
```
@Override
protected void onCreate(Bundle savedInstanceState) {
XUI.initTheme(this);
super.onCreate(savedInstanceState);
...
}
```
2.Adjust font library (omit if there is no requirement for font)
(1)Set the font library path you need to modify (under assets)
```
// Set the default font to Chinese line Kai, write your font library here
XUI.getInstance().initFontStyle("fonts/hwxk.ttf");
```
(2)Add the following code to the basic activity of the project to inject fonts
Note: after version 1.1.4, use the following settings for injection
```
@Override
protected void attachBaseContext(Context newBase) {
// Injection font
super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
```
Note: versions 1.1.3 and earlier use the following settings for injection
```
@Override
protected void attachBaseContext(Context newBase) {
// Injection font
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
```
----
## Demonstration
### Screenshot
![1_splash.png](./art/1_splash.png)   ![2_main.png](./art/2_main.png)   ![3_about.png](./art/3_about.png)  
![4_menu.png](./art/4_menu.png)   ![5_dialog.png](./art/5_dialog.png)   ![6_bottom_dialog.png](./art/6_bottom_dialog.png)  
![7_picker.png](./art/7_picker.png)   ![8_webview.png](./art/8_webview.png)  ![9_flowlayout.png](./art/9_flowlayout.png)  
![10_ninegrid.png](./art/10_ninegrid.png)   ![11_radius_imageview.png](./art/11_radius_imageview.png)   ![12_badge_view.png](./art/12_badge_view.png)  
![13_tabview.png](./art/13_tabview.png)   ![14_citypicker.png](./art/14_citypicker.png)   ![15_refresh_layout.png](./art/15_refresh_l
没有合适的资源?快使用搜索试试~ 我知道了~
XUI Android原生UI框架 v1.2.1.zip
共1859个文件
java:872个
xml:696个
png:232个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 80 浏览量
2023-10-03
22:04:10
上传
评论
收藏 20.56MB ZIP 举报
温馨提示
XUI Android原生UI框架 v1.2.1.zip
资源推荐
资源详情
资源评论
收起资源包目录
XUI Android原生UI框架 v1.2.1.zip (1859个子文件)
xuidemo.apk 13.22MB
gradlew.bat 2KB
upload.css 495B
.gitignore 241B
.gitignore 7B
.gitignore 7B
.gitignore 7B
build.gradle 8KB
versions.gradle 6KB
JitPackUpload.gradle 1KB
build.gradle 920B
build.gradle 739B
build.gradle 637B
settings.gradle 47B
gradlew 5KB
uploadfile.html 5KB
jsuploadfile.html 5KB
sms.html 2KB
jsTest.html 1KB
index.html 1KB
template.html 1KB
BaiduLBS_Android.jar 286KB
gradle-wrapper.jar 53KB
MaterialDialog.java 93KB
SuperTextView.java 90KB
MaterialEditText.java 61KB
TabSegment.java 60KB
CommonTextView.java 55KB
SpanUtils.java 51KB
SwitchButton.java 41KB
ViewUtils.java 41KB
PhotoViewAttacher.java 39KB
WheelTime.java 36KB
GuideCaseView.java 36KB
BadgeView.java 35KB
PhotoEditor.java 34KB
BannerLayoutManager.java 34KB
DemoDataProvider.java 33KB
WheelView.java 32KB
BottomSheet.java 32KB
NineGridImageView.java 31KB
LinkageScrollLayout.java 31KB
TitleBar.java 30KB
SnackbarUtils.java 30KB
OverFlyingLayoutManager.java 30KB
XRangeSlider.java 29KB
AgentWebFragment.java 29KB
XUILayoutHelper.java 28KB
CropOverlayView.java 28KB
RulerView.java 28KB
MaterialProgressBar.java 27KB
DialogInit.java 27KB
StatusBarUtils.java 27KB
VerticalTabLayout.java 27KB
XPageWebViewFragment.java 26KB
MDRootLayout.java 26KB
EasyPopup.java 25KB
MaterialSpinner.java 25KB
MaterialSearchView.java 25KB
XSeekBar.java 24KB
DrawableUtils.java 23KB
CircleProgressView.java 23KB
ViewTooltip.java 23KB
BaseBanner.java 23KB
SuperButton.java 23KB
SmoothImageView.java 21KB
CropImageView.java 21KB
MultiTabControlView.java 21KB
FlowTagLayout.java 21KB
BezierBannerView.java 21KB
TabControlView.java 20KB
Edge.java 20KB
ScaleGestureDetector.java 19KB
WidgetUtils.java 19KB
XToast.java 19KB
HorizontalProgressView.java 19KB
LunarCalendarUtils.java 19KB
EditSpinner.java 18KB
WheelOptions.java 17KB
MarqueeTextView.java 17KB
VerifyCodeEditText.java 17KB
XUIGroupListView.java 17KB
RadiusImageView.java 17KB
AutoFitHelper.java 16KB
KeyboardUtils.java 16KB
RecyclerViewBannerBase.java 16KB
EasyIndicator.java 16KB
XUICommonListItemView.java 16KB
SmoothCheckBox.java 15KB
RippleView.java 15KB
BannerLayout.java 15KB
DropDownMenu.java 15KB
StickyNestedScrollView.java 15KB
Utils.java 14KB
MaterialDialogStrategy.java 14KB
ThemeUtils.java 14KB
PageConfigProcessor.java 13KB
StatefulLayout.java 13KB
RatingBar.java 13KB
ChinaDateUtils.java 13KB
共 1859 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
码云笔记
- 粉丝: 2w+
- 资源: 5851
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功