
android UI
馋_猫
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
android 自定义view
在继承View类时,需要重写两个方法,分别是onMeasure和onLayout。1,在方法onMeasure中调用setMeasuredDimension方法void android.view.View.setMeasuredDimension(int measuredWidth, int measuredHeight)public class MyTestView exte原创 2014-04-02 13:10:09 · 1260 阅读 · 0 评论 -
android中include和merge标记的区别和使用
include和merge标记的作用主要是为了解决layout的重用问题。比如我们有三四个Activity但是他们都要用到同一个样式的标题栏,虽然我们把一样的代码copy个三四遍也没关系,但实在是太丑了,而且效率太低,如果这个标题栏要改样式,你岂不是要去三四个地方分别改动。为了解决这个问题,android中有了include和merge标记 以下为标题栏的layou转载 2014-05-12 12:05:19 · 1118 阅读 · 0 评论 -
android FragmentActivity以及Fragment的学习
package com.example.fragmentdemo;import android.app.Activity;import android.app.FragmentManager;import android.app.FragmentTransaction;import android.content.Intent;import android.os.Bundle;imp原创 2014-04-28 16:06:19 · 3202 阅读 · 1 评论 -
android 中FragmentActivity中模拟返回键返回上一个Activity效果
package com.example.fragmentdemo;import android.app.Activity;import android.app.FragmentManager;import android.app.FragmentTransaction;import android.content.Intent;import android.os.Bundle;imp原创 2014-04-28 16:41:16 · 7418 阅读 · 0 评论 -
LinearLayout中的layout_weight的使用
概述: android开发过程中我们会经常通过la原创 2014-06-18 14:09:54 · 1331 阅读 · 0 评论