![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
albertliangyg
这个作者很懒,什么都没留下…
展开
-
Android: OnPause vs OnStop
1.OnPause是说当前的Activity或者Fragment失去原创 2014-09-23 11:20:25 · 1616 阅读 · 8 评论 -
安卓开发之添加资源
Step1: 添加相应的资源文件(例如strings.xml)<string name="true_button">True</string><string name="false_button">False</string>Step2:修改相应的Layout文件(注意布局文件中对资源文件的引用[@string/true_button])...转载 2019-03-26 09:54:20 · 384 阅读 · 0 评论 -
Passing Data Between Activities
Creating an activity typically involves touching at least three files: the Java class file, an XML layout,and the application manifest.Intent是一个重要概念An intent is an object that a component can use...转载 2019-03-28 10:25:02 · 141 阅读 · 0 评论 -
Android Layout设计
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { /* Now that CrimeListFragment’s view is set up, hook up the view to the fragment. Modify ...转载 2019-04-12 14:38:31 · 148 阅读 · 0 评论 -
Passing Data Between Fragments which belong to different activities
Step1: 在CrimeActivity中利用intent传送所需信息public static Intent newIntent(Context packageContext, UUID crimeId) { Intent intent = new Intent(packageContext, CrimeActivity.class); intent.putExtra...转载 2019-04-16 16:17:08 · 124 阅读 · 0 评论 -
Passing Data Between Two Fragments hosted by same activity
背景:等同于前文中的利用Fragment argument1) 将date信息从CrimeFragment传送到DatePickerFragmentStep1: 在DatePickerFragment中添加newInstance方法public static DatePickerFragment newInstance(Date date) { Bundle args...转载 2019-04-16 17:33:17 · 146 阅读 · 0 评论