Android Layout && Anroid Library && Android Widget

1.  Layout

1.1 LinearLayout

 

 

1.2 RelativeLayout

 

 

1.3 TableLayout

1. android:collapseColumns:设置需要被隐藏的列的序号
2. android:shrinkColumns:设置允许被收缩的列的列序号
3. android:stretchColumns:设置运行被拉伸的列的列序号
<TableLayout>
<TableRow>
</TableRow>
</TableLayout>

1.4  FrameLayout

android:foreground:*设置改帧布局容器的前景图像
android:foregroundGravity:设置前景图像显示的位置

1.5  GridLayout

 

 

GirdLayout是4.0后才推出的,所以minSDK版本要改为14或者以上的版本

1.6 AbsoluteLayout

2. Library

2.1 JSON 解析

JSONObject(源自Android官方)、
Gson(源自Google)、
Jackson(第三方开源库)、
FastJSON(第三方开源库)、
 

3. Android  widget

1,TextView :走马灯效果

2,EditText ,AutoCompleteText MutiAutoCompleteTextView

3,Button,ImageButton,RadioButton,ToggleButton(开关状态),CheckBox。

4,ImageView,ImageSwitcher(图像切换控件)

5,DatePicker, TimePicker,NumberPicker;时钟控件:AnalogClock,DigitalClock;

6,ProgressBar,SeekBar,RatingBar(评分控件),ProgressDialog

7,ListView,ListActivity,ExpandableListView,Spinner

8,ScrollView,HorizontalScrollView(水平滚动控件),将两者嵌套使用,可实现可垂直和水平滚动的视图;Gallery

9,GridView,TabHost(标签控件), ViewStub(惰性装载控件):与<include>唯一不同的是ViewStub并不会马上装载引用的布局文件,只有在调用了ViewStub.inflate或ViewStub.setVisibility(View.VISIBLE)方法后,ViewStub才会装载引用的控件。

 

10,

Sliding menu ,SurfaceView

 

 

http://mp.weixin.qq.com/s?__biz=MzAxNjI3MDkzOQ==&mid=401187031&idx=1&sn=9c55c1909a49e0e0d3e2374bb9f3cce7&scene=23&srcid=1125sX1Tc5xqXF5DPtt5sxib#rd

posted @ 2015-01-30 15:09  尘恍若梦  阅读(213)  评论(0编辑  收藏  举报