
Fragment
my_worldlet
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
安卓中回调实现Fragment向Activity传值
1.创建主布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height原创 2015-09-15 20:31:10 · 1872 阅读 · 0 评论 -
安卓:Fragment向Fragment传值的3种方法
第一种: 主布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_hei原创 2015-09-15 21:31:23 · 15191 阅读 · 0 评论 -
安卓:回退栈,类似新闻的布局界面
点击新闻出现绿色图,点击娱乐出现蓝色图 1.主布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"原创 2015-09-15 20:51:11 · 622 阅读 · 0 评论 -
安卓中实现Activity向Fragment传值
1.写主布局文件,有一个输入框,发送按钮,用来放Fragment的LinearLayout xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orie原创 2015-09-15 19:39:50 · 6867 阅读 · 1 评论 -
安卓:ActionBar实现的导航栏(ActionBarTab)
如图: 逻辑代码: 1.先得到一个ActionBar对象:ActionBar actionbar=getActionBar(); 2.设置ActionBar的导航模式:actionbar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); 3.通过ActionBar创建导航项Tab对象,设置其文本,监听事件:Tab tab1=a原创 2015-09-23 16:54:23 · 1217 阅读 · 0 评论