Improved button style

centered buttons
removed commented-out button
This commit is contained in:
Daniel Albert 2014-06-29 12:33:02 +02:00
parent bd44516576
commit e731dc139f
3 changed files with 12 additions and 21 deletions

View File

@ -8,8 +8,8 @@
android:left="6dip" android:left="6dip"
android:right="6dip" android:right="6dip"
android:top="6dip" /> android:top="6dip" />
<corners android:radius="10dip" /> <corners android:radius="6dip" />
<stroke android:color="#cccccc" android:width="2dip" /> <stroke android:color="#cccccc" android:width="1.5dip" />
<stroke android:color="#ebebeb" /> <stroke android:color="#ebebeb" />
</shape> </shape>
</item> </item>
@ -20,8 +20,8 @@
android:left="6dip" android:left="6dip"
android:right="6dip" android:right="6dip"
android:top="6dip" /> android:top="6dip" />
<corners android:radius="10dip" /> <corners android:radius="6dip" />
<stroke android:color="#cccccc" android:width="2dip" /> <stroke android:color="#cccccc" android:width="1.5dip" />
<solid android:color="#ebebeb"/> <solid android:color="#ebebeb"/>
</shape> </shape>
</item> </item>
@ -32,8 +32,8 @@
android:left="6dip" android:left="6dip"
android:right="6dip" android:right="6dip"
android:top="6dip" /> android:top="6dip" />
<corners android:radius="10dip" /> <corners android:radius="6dip" />
<stroke android:color="#cccccc" android:width="2dip" /> <stroke android:color="#cccccc" android:width="1.5dip" />
<solid android:color="#ffffff" /> <solid android:color="#ffffff" />
</shape> </shape>
</item> </item>

View File

@ -42,22 +42,14 @@
android:minLines="2" android:minLines="2"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
<!--<com.beardedhen.androidbootstrap.BootstrapButton
android:id="@+id/decrypt_file_browse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
bootstrapbutton:bb_icon_left="fa-folder-open"
bootstrapbutton:bb_roundedCorners="true"
bootstrapbutton:bb_size="default"
bootstrapbutton:bb_type="default" />-->
<ImageButton <ImageButton
android:id="@+id/decrypt_file_browse" android:id="@+id/decrypt_file_browse"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="4dp" android:layout_margin="4dp"
android:src="@drawable/ic_action_collection" android:src="@drawable/ic_action_collection"
android:background="@drawable/button_rounded"/> android:background="@drawable/button_rounded"
android:layout_gravity="center_vertical"/>
</LinearLayout> </LinearLayout>
<CheckBox <CheckBox

View File

@ -31,15 +31,14 @@
android:minLines="2" android:minLines="2"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
<com.beardedhen.androidbootstrap.BootstrapButton <ImageButton
android:id="@+id/btn_browse" android:id="@+id/btn_browse"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="4dp" android:layout_margin="4dp"
bootstrapbutton:bb_icon_left="fa-folder-open" android:layout_gravity="center_vertical"
bootstrapbutton:bb_roundedCorners="true" android:src="@drawable/ic_action_collection"
bootstrapbutton:bb_size="default" android:background="@drawable/button_rounded"/>
bootstrapbutton:bb_type="default" />
</LinearLayout> </LinearLayout>
<org.sufficientlysecure.keychain.ui.widget.FoldableLinearLayout <org.sufficientlysecure.keychain.ui.widget.FoldableLinearLayout