Skip to content

Commit

Permalink
[+]added screenshots and improvement UI design
Browse files Browse the repository at this point in the history
  • Loading branch information
eram committed Jul 30, 2018
1 parent caa827f commit 8786dd1
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.iml
.idea
.gradle
/local.properties
/.idea/libraries
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# :earth_americas: PersianLocationPicker
Android Location Picker/ Area Picker for Iranian


<p align="center">
<img src="./sc/sc1.png" width="200"/>
<img src="./sc/sc2.png" width="200"/>
<img src="./sc/sc3.png" width="200"/>

</p>
26 changes: 26 additions & 0 deletions app/src/main/res/drawable/spinner_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<stroke android:color="@color/colorPrimary" android:width="1dp"/>
</shape>
</item>
<item android:gravity="center_vertical|left" android:left="8dp">
<layer-list>
<item android:width="12dp" android:height="12dp" android:top="2dp" android:gravity="center" android:bottom="10dp">
<rotate
android:fromDegrees="45"
android:toDegrees="45">
<shape android:shape="rectangle">
<stroke android:color="@color/colorPrimary" android:width="1dp"/>
</shape>
</rotate>
</item>
<item android:top="5dp" android:width="20dp" android:height="10dp" android:bottom="21dp" android:gravity="center">
<shape android:shape="rectangle">
<solid android:color="#fff"/>
</shape>
</item>
</layer-list>
</item>
</layer-list>
15 changes: 3 additions & 12 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,13 @@

<com.eram.persianlocationpickerlib.widgets.CountryPersianPicker
android:layoutDirection="rtl"
android:layout_margin="10dp"
style="@style/Widget.AppCompat.Spinner.DropDown"
android:background="@drawable/spinner_background"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<View
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="0dp"/>
<View
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_width="match_parent"
android:background="#555"
android:layout_height="1dp"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
Binary file added sc/sc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sc/sc2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sc/sc3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8786dd1

Please sign in to comment.