android中使用别人的UI框架(针对有自定义属性)
在主工程直接使用(子UI的代码在主工程当中) xmlns:my 直接在主工程里的写法
com.gsta.v2.activity 是主工程包名
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:my="http://schemas.android.com/apk/res/com.gsta.v2.activity"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white"
android:orientation="vertical" >
<include layout="@layout/title_bar" />
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<include
android:id="@+id/nodata"
layout="@layout/nomore" />
<com.gsta.v2.ui.PullToRefreshListView
android:id="@+id/lv_1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:cacheColorHint="#00000000"
android:clickable="true"
android:fadingEdge="none"
my:ptrTag="pl_phone" >
</com.gsta.v2.ui.PullToRefreshListView>
</FrameLayout>
</LinearLayout>
如果下拉刷新UI框架代码全在子工程中,在主工程中使用的写法
com.siqiao.sdk.pull_listview.ui 子UI所在的文件夹目录(不使用子工程的包名:可能是因为打包时,子工程的代码都到主工程当中了,不能在子工程的包名中去找)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:my="http://com.siqiao.sdk.pull_listview.ui/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white"
android:orientation="vertical" >
<include layout="@layout/title_bar" />
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<include
android:id="@+id/nodata"
layout="@layout/nomore" />
<com.siqiao.sdk.pull_listview.ui.PullToRefreshListView
android:id="@+id/lv_1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:cacheColorHint="#00000000"
android:clickable="true"
android:fadingEdge="none"
my:ptrTag="pl_phone" >
</com.siqiao.sdk.pull_listview.ui.PullToRefreshListView>
</FrameLayout>
</LinearLayout>
分享到:
相关推荐
Android轻量级UI框架 是一个轻量级的Android框架,简化了具有复杂UI结构的Android应用程序的开发。 Paginize利用Java注释来注入布局和视图,布局和页面可以继承。布局继承特性,就像HTML中的框架集标记,这使得代码...
Android UI统一框架, 实现复杂维度的UI管理框架, 参考博文: http://blog.csdn.net/ostrichmyself/article/details/8285735
1.自定义android项目底部任务栏 2.实用Fragment切换 3.项目整体架构
搭建了Android简单UI框架,DrawerLayoutayout +viewpager +fragment 使用MVP方式搭建代码框架
android UI框架 实例项目 demo 如图,有源码,可以运行。
此版本在“一个不错的UI框架”基础上修改了首次启动底部导航没有选中Tab的情况 Android UI UI框架 底部导航 Fragment
借鉴了几位大侠的小例子,然后在android下做的一个手机影视客户端小例子,包括搜索、AndroidImageSlider图片滑块菜单、横滚菜单、视频播放等。
android(框架及UI设计)讲解
Android MVP 快速开发框架,Android 开源 UI 框架Android-ZBLibrary-master.zip
仿蘑菇街UI框架 集合 Tabhost viewpage
基于Android框架的动态UI构建(Creating Dynamic UI with Android Fragments, 2nd Edition)-2016英文原版,0积分——该书是2016年最新的第2版,全书154页。
环信客服 ui框架 es使用框架
XDroid是一个轻量级的Android快速开发框架,由UI、Cache、Event、ImageLoader、Kit、Log、Router、Net等几个部分组成。其设计思想是使用接口对各模块解耦规范化,不强依赖某些明确的三方类库,使得三方类库可自由...
Fries是一个极好的仅使用HTML、CSS和JavaScript开发Android Apps的移动UI框架。 标签:Fries
android(框架及UI设计).ppt,
github上很火的一个Android UI框架,SlidingMenu.已经将所需要的Actionbarssherlock和SlidingMenu库打包好。下载后解压并且,将Actionbarssherlock,SlidingMenu和SlidingMenuExample这三个文件夹import到eclipse中...
android-query android开发框架。 开发过java-web的人都懂得,有框架,开发起来是多么的方便。 注明:暂无API。所有的方法可在AQuery里找到。 大家可以尝试着使用。方便管理和控制UI界面。很不错的框架。
Apache Weex 一个构建移动跨平台App的UI框架
Android项目源码在线课堂教育UI框架源码是一个基于安卓的在线课堂应用源码,只做了一个UI框架,没有实现任何具体功能。有类似win8的方块布局。注册登录多线程自定义进度条等界面都做的不错。有需要的可以下载看看。...