Library Project including GridLayout.
This can be used by an Android project to provide
access to GridLayout on applications running on API 7+
There is technically no source, but the src folder is necessary
to ensure that the build system works. The content is actually
located in libs/android-support-v7-gridlayout.jar
USAGE:
Make sure you use <android.support.v7.widget.GridLayout> in your
layouts instead of <GridLayout>.
Same for <android.support.v7.widget.Space> instead of <Space>.
Additionally, all of GridLayout's attributes should be put in the
namespace of the app, as those attributes have been redefined in
the library so that it can run on older platforms that don't offer
those attributes in their namespace.
To know which attributes need the application namespace, look at
the two declare-styleable declared in res/values/attrs.xml
For instance:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.GridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" <==== the namespace used for the library project
android:layout_width="match_parent"
android:layout_height="match_parent"
app:columnCount="6" > <===== notice how we're using app:columnCount here, not android:columnCount!
<Button
android:id="@+id/button1"
app:layout_column="1" <=== again, note the app: namespace
app:layout_columnSpan="2"
app:layout_gravity="left"
app:layout_row="1"
android:text="Button" />
<CheckBox
android:id="@+id/checkBox1"
app:layout_column="4"
app:layout_gravity="left"
app:layout_row="2"
android:text="CheckBox" />
<Button
android:id="@+id/button2"
app:layout_column="5"
app:layout_gravity="left"
app:layout_row="3"
android:text="Button" />
<android.support.v7.widget.Space <=== space widgets also need the full support package path
android:layout_width="21dp" <=== use the android namespace for width, height etc -- only use app: for the grid layout library's new resources
android:layout_height="1dp"
app:layout_column="0"
app:layout_gravity="fill_horizontal"
app:layout_row="0" />
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
android sdk-extras (256个子文件)
.classpath 356B
package.html 458B
package.html 368B
package.html 323B
package.html 280B
package.html 163B
package.html 149B
package.html 139B
package.html 129B
package.html 127B
package.html 123B
package.html 121B
package.html 101B
android-support-v13.jar 353KB
android-support-v4.jar 341KB
android-support-v7-gridlayout.jar 37KB
ViewPager.java 97KB
FragmentManager.java 78KB
AccessibilityNodeInfoCompat.java 54KB
Fragment.java 50KB
ShareCompat.java 38KB
LoaderManager.java 34KB
AccessibilityRecordCompat.java 29KB
NotificationCompat.java 27KB
FragmentActivity.java 26KB
BackStackRecord.java 25KB
ViewCompat.java 24KB
AccessibilityDelegateCompat.java 20KB
LoaderThrottleSupport.java 19KB
ModernAsyncTask.java 18KB
PagerTitleStrip.java 18KB
LoaderCustomSupport.java 17KB
CursorAdapter.java 16KB
SimpleCursorAdapter.java 15KB
DialogFragment.java 15KB
ListFragment.java 14KB
TaskStackBuilder.java 14KB
Loader.java 13KB
PagerAdapter.java 13KB
Cheeses.java 12KB
Cheeses.java 12KB
NavUtils.java 12KB
Shakespeare.java 12KB
Shakespeare.java 12KB
LocalBroadcastManager.java 11KB
FragmentTransaction.java 11KB
LruCache.java 10KB
AsyncTaskLoader.java 10KB
PagerTabStrip.java 10KB
LongSparseArray.java 9KB
SparseArrayCompat.java 9KB
AccessibilityManagerCompat.java 8KB
FragmentLayoutSupport.java 8KB
FragmentStatePagerAdapter.java 8KB
FragmentRetainInstanceSupport.java 8KB
FragmentStatePagerAdapter.java 8KB
EdgeEffectCompat.java 8KB
LoaderRetainedSupport.java 8KB
AccessibilityServiceInfoCompat.java 7KB
LoaderCursorSupport.java 7KB
MotionEventCompat.java 7KB
AccessibilityNodeInfoCompatIcs.java 7KB
AccessibilityNodeProviderCompat.java 7KB
FragmentTabsPager.java 7KB
FragmentTabs.java 6KB
CursorLoader.java 6KB
FragmentPagerAdapter.java 6KB
TrafficStatsCompat.java 6KB
AccessibilityRecordCompatIcs.java 6KB
ScrollerCompat.java 6KB
FragmentDialogSupport.java 6KB
AccessibilityEventCompat.java 6KB
FragmentPagerAdapter.java 6KB
LocalServiceBroadcaster.java 6KB
AccessibilityManagerSupportActivity.java 6KB
TimeUtils.java 6KB
CursorFragment.java 6KB
IntentCompat.java 5KB
ActionBarTabsPager.java 5KB
ResourceCursorAdapter.java 5KB
KeyEventCompat.java 5KB
SearchViewCompat.java 5KB
Support4Demos.java 5KB
Support13Demos.java 5KB
FragmentReceiveResultSupport.java 5KB
ContextCompat.java 5KB
AccessibilityDelegateCompatIcs.java 5KB
FragmentMenuSupport.java 5KB
FragmentStackSupport.java 5KB
MenuItemCompat.java 4KB
FragmentStatePagerSupport.java 4KB
FragmentPagerSupport.java 4KB
AccessibilityDelegateSupportActivity.java 4KB
FragmentStatePagerSupport.java 4KB
FragmentPagerSupport.java 4KB
AccessibilityDelegateCompatJellyBean.java 4KB
SharingSupport.java 4KB
BasicDream.java 4KB
FragmentHideShowSupport.java 4KB
FragmentCustomAnimationSupport.java 4KB
共 256 条
- 1
- 2
- 3
无尽意
- 粉丝: 6
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页