1
我正在尋找一種方法來使用Android 4.1及以上版本的Android L中的這個舍入按鈕,如「新」谷歌加應用程序。
是否有任何backport庫或其他東西(也許有更多的android l設計功能)?
我已經看過google.com/design - > ressources和developer.android.com在Android 4.1中使用Android L按鈕,如谷歌加應用程序
我正在尋找一種方法來使用Android 4.1及以上版本的Android L中的這個舍入按鈕,如「新」谷歌加應用程序。
是否有任何backport庫或其他東西(也許有更多的android l設計功能)?
我已經看過google.com/design - > ressources和developer.android.com在Android 4.1中使用Android L按鈕,如谷歌加應用程序
這僅僅是一個你想要的(我認爲)樣品
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.sockettest.MainActivity"
tools:ignore="MergeRootFrame" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="250dp"
android:layout_height="100dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="#ccc"
android:orientation="vertical" >
</LinearLayout>
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/linearLayout1"
android:src="@drawable/ic_launcher"
android:layout_marginLeft="-20dp" />
</RelativeLayout>
你適合留下的imageView
在佈局的右側,然後設置減號邊距(-20)。
但要小心,imageView
必須比你的佈局下,(你可以換用的佈局,以imageView
看到結果)
你的問題是創建圓形按鈕? –
沒有我的問題是更多的「覆蓋」 - >定位^^ – ternes3
你有保證金嘗試嗎? –