improved the add button and other visual stuffs
This commit is contained in:
parent
280e662fc3
commit
e2ce35c85e
5 changed files with 54 additions and 31 deletions
|
@ -140,7 +140,7 @@ public class PgpHandler extends Activity {
|
|||
TextView extraText = (TextView) findViewById(R.id.crypto_extra_show);
|
||||
|
||||
if (extraText.getText().length() != 0)
|
||||
((LinearLayout) findViewById(R.id.crypto_extra_show_layout)).setVisibility(View.VISIBLE);
|
||||
((LinearLayout) findViewById(R.id.crypto_extra_show_layout )).setVisibility(View.VISIBLE);
|
||||
|
||||
this.pb = (ProgressBar) findViewById(R.id.pbLoading);
|
||||
this.pb.setVisibility(ProgressBar.VISIBLE);
|
||||
|
|
37
app/src/main/res/drawable-xxhdpi/oval.xml
Normal file
37
app/src/main/res/drawable-xxhdpi/oval.xml
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item>
|
||||
<shape android:shape="oval" android:dither="true">
|
||||
<corners android:radius="2dp"/>
|
||||
<solid android:color="#eee" />
|
||||
<gradient
|
||||
android:startColor="#aaa"
|
||||
android:centerColor="#aaa"
|
||||
android:endColor="@android:color/transparent"
|
||||
android:gradientRadius="55"
|
||||
android:type="radial"
|
||||
/>
|
||||
|
||||
<padding android:bottom="5dp"
|
||||
android:left="5dp"
|
||||
android:right="5dp"
|
||||
android:top="5dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="oval" android:dither="true">
|
||||
<corners android:radius="2dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
|
||||
<padding android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
|
||||
</layer-list>
|
|
@ -6,6 +6,7 @@
|
|||
android:dither="true">
|
||||
<corners android:radius="2dp"/>
|
||||
<solid android:color="#ccc" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
android:text="Large Text"
|
||||
android:id="@+id/crypto_password_file"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_column="0"/>
|
||||
|
||||
<ImageButton
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -14,35 +14,19 @@
|
|||
android:id="@+id/main_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_row="0"></LinearLayout>
|
||||
android:orientation="vertical"></LinearLayout>
|
||||
|
||||
<GridLayout
|
||||
android:id="@+id/bottom_layout"
|
||||
android:orientation="horizontal"
|
||||
|
||||
<ImageButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_row="2">
|
||||
android:src="@android:drawable/ic_input_add"
|
||||
android:background="@drawable/oval"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:onClick="createPassword"
|
||||
android:layout_column="2"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignRight="@+id/main_layout"
|
||||
android:layout_alignEnd="@+id/main_layout" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@android:color/holo_orange_dark"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="Large Text"
|
||||
android:id="@+id/crypto_password_file"
|
||||
android:background="#fff"
|
||||
android:layout_marginBottom="@dimen/activity_vertical_margin"/>
|
||||
|
||||
<ImageButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@android:drawable/ic_input_add"
|
||||
android:background="@drawable/rectangle"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:onClick="createPassword"
|
||||
android:layout_column="2"/>
|
||||
|
||||
</GridLayout>
|
||||
|
||||
</GridLayout>
|
||||
</RelativeLayout>
|
||||
|
|
Loading…
Reference in a new issue