我有一个XML文件:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ProgressBar
android:id="@+id/progressbar"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal"
android:visibility="visible" />
<WebView
android:id="@+id/web_engine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
而我要的ProgressBar是Large风格,并在屏幕的中间垂直和水平居中......当我设置layout_width和height到fill_parent,它增加了实际负荷微调到整个屏幕的大小...我怎样才能让布局适合整个屏幕并居中实际加载图标?
通过UIImagePickerController,有没有办法判断用户从库中选择的图像是否是屏幕截图?另外,是否有与屏幕截图相关的时间戳?我已阅读从 UIImage - UIImagePickerController 获取 Exif 数据,但屏幕截图是否特别具有此数据?