关于ALAssetsLibrary的简单使用有两个方面: 第一:存储图片/视频方法如下: 简单说明: orientation为储存图片时的具体操作: typedef NS_ENUM(NSInteger, ALAssetOrientation) { ALAssetOrientationUp // de ...
分类:
移动开发 时间:
2016-04-20 20:08:51
阅读次数:
305
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android ...
分类:
移动开发 时间:
2016-04-20 13:06:54
阅读次数:
179
在项目中,有时候可能会想使不同的页面显示的横竖屏也不一样,比如前一段我做的《广播体操》的项目,在首页面,肯定是想使页面为竖屏显示,但是播放页面要为横屏显示,即使用户的手机可以转屏,我们的播放页面也要是横屏显示。 有这样的需求,我们可以借助react-native的第三方组件,react-native ...
分类:
其他好文 时间:
2016-04-20 13:03:40
阅读次数:
910
1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" 4 ...
分类:
移动开发 时间:
2016-04-19 22:52:55
阅读次数:
268
一、HorizontalScrollView控件只是支持水平滚动,而且它只能包含一个控件,通常是在< HorizontalScrollView >标签中定义了一个<LinearLayout> 标签并且在<LinearLayout>标签中android:orientation属性值设置为horizon ...
分类:
其他好文 时间:
2016-04-18 22:14:31
阅读次数:
132
一、ScrollView控件只是支持垂直滚动,而且在ScrollView中只能包含一个控件,通常是在< ScrollView >标签中定义了一个<LinearLayout> 标签并且在<LinearLayout>标签中android:orientation属性值设置为vertical,然后在<Lin ...
分类:
其他好文 时间:
2016-04-18 22:09:38
阅读次数:
119
LinearLayout 1.核心属性 高度:layout_height (基于内容 wrap_content;基于父控件;) 宽度:layout_width 方向:orientation (纵向 vertical;横向 horizontal;) 位置:layout_gravity (居中 cent ...
分类:
移动开发 时间:
2016-04-18 17:00:18
阅读次数:
247
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android ...
分类:
移动开发 时间:
2016-04-18 09:57:58
阅读次数:
156
1.线性布局管理器<LinearLayout xmlns:android=http://schemas.android.com/apk/res/android> </ LinearLayout > Android:orientation 用于设置布局管理器内组件的排列方式(ertical(垂直)、h ...
分类:
移动开发 时间:
2016-04-17 19:19:12
阅读次数:
236
LinearLayout线型布局android:orientation(方向)=“vertical”(垂直)或“horizontal”(水平)android:gravity(重力)=“center”center_vertical垂直(Y轴)居中center_horizontal水平(X轴)居中center全部居中right子类控件位于当前布局的右边left子类控件位于当前布..
分类:
移动开发 时间:
2016-04-17 00:59:51
阅读次数:
198