DroidKaigi is a conference tailored for developers on 18th and 19th February 2016.
- Show all sessions
- Manage schedule
- Show map
- Search sessions and speakers
This project uses Java8 and retrolambda.
If you haven't set up Java8 yet, install it from here, and set env JAVA_HOME
or JAVA8_HOME
.
This project tries to use DataBinding.
<TextView
android:id="@+id/txt_place"
style="@style/Tag"
android:layout_marginEnd="@dimen/spacing_xsmall"
android:layout_marginRight="@dimen/spacing_xsmall"
android:layout_marginTop="@dimen/spacing_xsmall"
android:background="@drawable/tag_language"
android:text="@{session.place.name}" /
Custom attributes are also used like below.
<ImageView
android:id="@+id/img_speaker"
android:layout_width="@dimen/user_image_small"
android:layout_height="@dimen/user_image_small"
android:layout_below="@id/tag_container"
android:layout_marginTop="@dimen/spacing_small"
android:contentDescription="@string/speaker"
app:speakerImageUrl="@{session.speaker.imageUrl}" />
BindingAdapter like speakerImageUrl
is written in DataBindingAttributeUtil.java
.
@BindingAdapter("speakerImageUrl")
public static void setSpeakerImageUrl(ImageView imageView, @Nullable String imageUrl) {
if (TextUtils.isEmpty(imageUrl)) {
imageView.setImageDrawable(ContextCompat.getDrawable(imageView.getContext(), R.drawable.ic_speaker_placeholder));
} else {
Picasso.with(imageView.getContext())
.load(imageUrl)
.placeholder(R.drawable.ic_speaker_placeholder)
.error(R.drawable.ic_speaker_placeholder)
.transform(new CropCircleTransformation())
.into(imageView);
}
}
This project uses DI library Dagger2.
See classes in di
package.
src/main/java/io/github/droidkaigi/confsched/di
|
|--scope
| |--ActivityScope.java
| |--FragmentScope.java
|
|--ActivityComponent.java
|--ActivityModule.java
|--AppComponent.java
|--AppModule.java
|--FragmentComponent.java
|--FragmentModule.java
This project uses ORM library Android-Orma. Android-Orma is a lightning-fast and annotation based wrapper library of SQLiteDatabase.
Some model classes in model
package have @Table
annotation.
@Table
public class Session {
@Column(indexed = true)
@SerializedName("id")
public int id;
@Column(indexed = true)
@SerializedName("title")
public String title;
// ...
}
These classes are saved in database via dao/SessionDao
.
To know more about Android-Orma, see document.
This project is under development. Issues are managed by GitHub Project. https://github.com/konifar/droidkaigi2016/projects/1
If you have a feature you want or find some bugs, please write an issue.
If you want to change description of your session, feel free to send PullRequest 👍
You have to fix 3 json files below.
If you can write only English or Japanese, it is good to write same description in sessions_en.json
and sessions_ja.json
.
And if you can translate to Arabic by using GoogleTranslate, please write Arabic description in sessions_ar.json
.
Thanks! Enjoy together!
This project uses some modern Android libraries.
- Android Support Libraries
- CardView
- Design
- RecyclerView
- CustomTabs
- Dagger2 - Google
- Retrofit2 - Square
- Picasso - Square
- OkHttp3 - Square
- Android-Orma - gfx
- RxAndroid - ReactiveX
- ThreeTenABP - JakeWharton
- Stetho - Facebook
- PermissionsDispatcher - hotchemi
- kvs-schema - rejasupotaro
Copyright 2016 Yusuke Konishi
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.