- 博客(12)
- 收藏
- 关注
原创 在HorizontalScrollView中嵌套ListView重写onInterceptTouchEvent时产生的滑动冲突的解决方法
其实不重写onInterceptTouchEvent直接使用HorizontalScrollView就可以解决滑动冲突,因为HorizontalScrollView自身就已经解决这个问题了这里是为了学习的目的才使用自定义的HorizontalScrollView并重写了onInterceptTouchEvent方法结果发现了一个问题最开始是采用下面复写onInterceptTouchEvent
2016-09-21 20:09:28 1817
原创 笔记:与其他app共享Simple Data,和在ActionBar上简单地添加分享按钮
Sending Simple Data to Other AppsSending and receiving data between applications with intents is most commonly used for social sharing of content. Intents allow users to share information quic
2016-04-28 10:24:46 358
原创 笔记:与其他app建立联系
Sending the User to Another App(调用其他app的功能)系统通过Uri data定义MIME type或通过 setType()定义MIME type,可以通过putExtra()携带额外数据One of Android's most important features is an app's ability to send the user
2016-04-27 10:32:07 437
原创 笔记:Android问题
1.Preference APIs The SharedPreferences APIs are only for reading and writing key-value pairs and you should not confuse them with the Preference APIs, which help you build a user interface for
2016-04-26 10:14:58 205
原创 笔记:Android存储数据
Saving Data //存储数据Most Android apps need to save data, even if only to save information about the app state during onPause() so the user's progress is not lost. Most non-trivial apps also need
2016-04-26 10:05:44 395
原创 笔记:Fragment1
To perform a transaction such as add or remove a fragment, you must use the FragmentManager to create aFragmentTransaction, which provides APIs to add, remove, replace, and perform other fragmen
2016-04-25 15:23:52 317
原创 笔记:Activity生命周期
During the life of an activity, the system calls a core set of lifecycle methods in a sequence similar to a step pyramid. That is, each stage of the activity lifecycle is a separate step on the pyrami
2016-04-24 13:09:15 502
原创 笔记:Android判断版本并根据版本使用不同的代码以及旧版本XML问题
Android provides a unique code for each platform version in the Build constants class. Use these codes within your app to build conditions that ensure the code that depends on higher API levels is e
2016-04-24 12:00:22 504
原创 笔记:在XML文件中获取ActionBar的宽度
主要用于ActionBar为overlay(覆盖)模式下,不覆盖掉原来要显示出来的布局不使用支持库 xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"
2016-04-23 13:12:23 715
原创 笔记:配置父Activity
... > ... android:name="com.example.myfirstapp.DisplayMessageActivity" android:label="@string/title_activity_display_message" android:parentActivityName="com.example.m
2016-04-21 21:06:43 323
原创 笔记:读Android文档的一些细节1
The default weight for all views is 0, so if you specify any weight value greater than 0 to only one view, then that view fills whatever space remains after all views are given the space they require.
2016-04-21 16:47:53 198
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人