Android library that help with manipulating cities in algeria.
implementation 'com.github.ikerfah:AlgeriaCities:0.1'
Name | Description |
---|---|
getWilayaById(int) | Get desired wilaya by identifier |
getWilayaByName(String) | Get desired wilaya by name |
getCommunesByWilayaId(int) | Get desired communes by wilaya identifier |
getAllWilaya() | Get all wilaya |
AlgeriaCities.getWilayaById(44)
Name | Description |
---|---|
WilayaSpinner | Spinner with predefined wilaya list |
CommuneSpinner | Spinner with predefined commune for selected wilaya from WilayaSpinner Check attachCommuneSpinner |
Use wilayaSpinner.attachCommuneSpinner(CommuneSpinner)
Then the communeSpinner will change automatically when the wilaya changed
<com.ikerfah.algeriacities.widgets.WilayaSpinner
android:id="@+id/spinner"
android:spinnerMode="dropdown"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:lang="arabic"/>
<com.ikerfah.algeriacities.widgets.CommuneSpinner
android:id="@+id/spinner_child"
android:layout_width="match_parent"
android:spinnerMode="dropdown"
android:layout_height="wrap_content"
app:lang="french"/>
Name | Description | Values |
---|---|---|
Lang | Default spinner language | french/arabic (Default french) |
app:lang="french"
or
app:lang="arabic"
- If you have a concrete bug report for AlgeriaCites please go to the Issues Tracker, submit your report and tag it "bug".
- If you want to criticize the project, Feel free and contact me at : [email protected]
Copyright 2013 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.