Nos*_*mus 9 c# java xamarin.android twitter-bootstrap
我创建了以下的步骤绑定库这里的Java库Android系统的引导 结合项目在GitHub上.
将库导入Xamarin Android解决方案后,我创建了以下简单的xaml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:id="@+id/MyButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/Hello" />
<com.beardedhen.androidbootstrap.BootstrapLabel
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:bootstrapBrand="primary"
app:bootstrapHeading="h3"
app:roundedCorners="true"
android:text="Bootstrap Label" />
<com.beardedhen.androidbootstrap.BootstrapEditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:bootstrapSize="md"
app:bootstrapBrand="info" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
但是,即使重新编译后仍未应用Design布局(参见下文)
一个运气好的人有什么想法吗?谢谢
我创建了一个TestBinding依赖于项目中定义的库的项目XamarinBootstrapBinding,我使用API 23构建了您的项目,然后我修改了Main.axml我的项目文件以放置您上面提出的内容然后我Google Nexus 5 - 6.0.0使用Genymotion播放器启动了我的项目.
结果,我在Bootstrap的典型蓝框内看到一个白色的Bootstrap标签.
这是我的文件https://github.com/essobedo/XamarinBootstrapBinding
| 归档时间: |
|
| 查看次数: |
1215 次 |
| 最近记录: |