Skip to content

Commit

Permalink
feat : RTL and ARABE language support
Browse files Browse the repository at this point in the history
  • Loading branch information
samirthebti committed Mar 14, 2017
1 parent 3fbea3c commit 923471e
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions app/src/main/java/in/myinnos/imagepicker/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public void onClick(View v) {
intent.putExtra(ConstantsCustomGallery.INTENT_EXTRA_LIMIT, LIMIT);
startActivityForResult(intent, ConstantsCustomGallery.REQUEST_CODE);
}
}else{
Intent intent = new Intent(MainActivity.this, AlbumSelectActivity.class);
intent.putExtra(ConstantsCustomGallery.INTENT_EXTRA_LIMIT, LIMIT);
startActivityForResult(intent, ConstantsCustomGallery.REQUEST_CODE);
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="10dp"
android:gravity="left" />
android:gravity="start" />
</RelativeLayout>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/layout_album_select"
android:layout_width="match_parent"
android:layout_height="match_parent">
Expand Down Expand Up @@ -32,8 +31,8 @@
android:layout_height="match_parent"
android:layout_below="@id/toolbar"
android:paddingBottom="1dp"
android:paddingLeft="1dp"
android:paddingRight="1dp"
android:paddingStart="1dp"
android:paddingEnd="1dp"
android:paddingTop="1dp"
android:stretchMode="columnWidth" />
</RelativeLayout>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/layout_image_select"
android:layout_width="match_parent"
android:layout_height="match_parent">
Expand Down Expand Up @@ -32,8 +31,8 @@
android:layout_height="match_parent"
android:layout_below="@id/toolbar"
android:paddingBottom="1dp"
android:paddingLeft="1dp"
android:paddingRight="1dp"
android:paddingStart="1dp"
android:paddingEnd="1dp"
android:paddingTop="1dp"
android:stretchMode="columnWidth" />
</RelativeLayout>
24 changes: 15 additions & 9 deletions awesomeimagepicker/src/main/res/layout/custom_gallery_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
android:id="@+id/tvSelectCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerInParent="true"
android:layout_marginLeft="45dp"
android:layout_marginStart="45dp"
android:textColor="#ffffff"
android:textSize="16sp"
android:visibility="gone" />
android:visibility="gone"
android:layout_alignParentLeft="true"
android:layout_marginLeft="45dp" />

<TextView
android:id="@+id/tvProfile"
Expand All @@ -47,14 +49,16 @@
android:id="@+id/tvAdd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_centerInParent="true"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:padding="5dp"
android:text="@string/add"
android:textColor="#ffffff"
android:textSize="16sp"
android:visibility="gone" />
android:visibility="gone"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp" />

<LinearLayout
android:id="@+id/liFinish"
Expand All @@ -64,10 +68,12 @@
<ImageView
android:layout_width="26dp"
android:layout_height="26dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_gravity="center"
android:layout_marginLeft="16dp"
android:src="@drawable/ic_arrow_left" />
android:layout_marginStart="16dp"
android:src="@drawable/ic_arrow_left"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp" />
</LinearLayout>
</RelativeLayout>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
android:layout_height="match_parent"
android:foregroundGravity="center"
android:paddingBottom="1dp"
android:paddingLeft="1dp"
android:paddingRight="1dp"
android:paddingStart="1dp"
android:paddingEnd="1dp"
android:paddingTop="1dp">

<ImageView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
android:paddingBottom="1dp"
android:paddingLeft="1dp"
android:paddingRight="1dp"
android:paddingTop="1dp">
android:paddingTop="1dp"
android:paddingEnd="1dp"
android:paddingStart="1dp">

<ImageView
android:id="@+id/image_view_album_image"
Expand Down
16 changes: 16 additions & 0 deletions awesomeimagepicker/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Awesome Image Picker</string>
<string name="add">إضافة</string>
<string name="album_view">إختر ألبوم الصور</string>
<string name="capture_photo">إلتقاط صورة</string>
<string name="error_null_cursor">لقد حصل خطأ</string>
<string name="image_view">أنقر لختيار صورةأ</string>
<string name="limit_exceeded">\"يمكنك إختيار %d صور \"</string>
<string name="permission_force">التطبيق يحتاج لذن فتح الملفات لمعاينة الصور . أنقر إعدادات لمنح الأذن .</string>
<string name="permission_info">التطبيق يحتاج لذن فتح الملفات لمعاينة الصور . .</string>
<string name="permission_ok">حسنا</string>
<string name="permission_package">المجلد</string>
<string name="permission_settings">الاعدادات</string>
<string name="selected">مختارة</string>
</resources>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 923471e

Please sign in to comment.