android中使用别人的UI框架

在主工程直接使用 xmlns:my 直接在主工程里的写法
<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框架在子工程在主工程中的写法
<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>

更多相关文章

  1. Ted Mosby - 一个MVP框架的软件架构
  2. 导入Android自带Sample工程出错解决(Error retrieving parent fo
  3. [入门八]Android的应用程序框架
  4. Android 开源框架的收集
  5. Android工程的编译过程
  6. 【android工程转为lib工程后提示'R.id.xxx不能作为case语句的表
  7. android 导入新工程或是编译没了android.jar 导致出错的解决方案
  8. android 中一个工程引用另一个工程
  9. Unity导出android工程集成到android studio项目内

随机推荐

  1. Android程序开发通过HttpURLConnection上
  2. [Android]attrs.xml文件中属性类型format
  3. Anroid中两台手机连接同一wifi通过socket
  4. Android(安卓)自定义View - 网络加载 Pro
  5. ros安装android
  6. Cocos2dx android 部分代码的理解
  7. Android:采用Google Suggest API 实现 Aut
  8. 2013.07.22(2)——— android 验证码与cook
  9. 在android中添加欢迎页
  10. Android的DialogFragment的基本使用方法