android中使用别人的UI框架
16lz
2021-01-23
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>
在主工程直接使用 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>
更多相关文章
- Ted Mosby - 一个MVP框架的软件架构
- 导入Android自带Sample工程出错解决(Error retrieving parent fo
- [入门八]Android的应用程序框架
- Android 开源框架的收集
- Android工程的编译过程
- 【android工程转为lib工程后提示'R.id.xxx不能作为case语句的表
- android 导入新工程或是编译没了android.jar 导致出错的解决方案
- android 中一个工程引用另一个工程
- Unity导出android工程集成到android studio项目内